about summary refs log tree commit diff
path: root/src/libstd/lib.rs
AgeCommit message (Collapse)AuthorLines
2015-07-16Rollup merge of #26977 - brson:stddoc, r=GankroManish Goregaokar-28/+128
Yet another attempt to make the prose on the std crate page clearer and more informative. This does a lot of things: tightens up the opening, adds useful links (including a link to the search bar), offers guidance on how to use the docs, and expands the prelude docs as a useful newbie entrypoint. r? @steveklabnik cc @aturon
2015-07-14Address more feedbackBrian Anderson-3/+3
2015-07-14Address more feedbackBrian Anderson-4/+5
2015-07-14Use Vec::drain in BufWriterUlrik Sverdrup-0/+1
I happened past a comment that asked for functionality that we now have.
2015-07-13Address feedbackBrian Anderson-31/+35
2015-07-13Fix local pathBrian Anderson-1/+1
2015-07-13std: Refining crate docsBrian Anderson-26/+121
Yet another attempt to make the prose on the std crate page clearer and more informative. This does a lot of things: tightens up the opening, adds useful links (including a link to the search bar), offers guidance on how to use the docs, and expands the prelude docs as a useful newbie entrypoint.
2015-07-09Test that CStr and CString have equivalent hashes.Jonathan Reem-1/+1
2015-07-08Improve Vec::resize so that it can be used in Read::read_to_endUlrik Sverdrup-0/+1
We needed a more efficient way to zerofill the vector in read_to_end. This to reduce the memory intialization overhead to a minimum. Use the implementation of `std::vec::from_elem` (used for the vec![] macro) for Vec::resize as well. For simple element types like u8, this compiles to memset, so it makes Vec::resize much more efficient.
2015-07-01msvc: Fix TLS destructorsAlex Crichton-0/+1
Just like the original article our Windows TLS support is based on predicted, this symbol must be linked in on MSVC to pull in the necessary support for TLS variables. This commit fixes a number of unit tests which require that TLS destructors are run.
2015-06-24Fix capitalization in std docsBrian Anderson-1/+1
"Rust" and "The Rust Standard Library" are capitalized.
2015-06-22sys/unix/c.rs: Remove unused codeGeoffrey Thomas-2/+0
It looks like a lot of this dated to previous incarnations of the io module, etc., and went unused in the reworking leading up to 1.0. Remove everything we're not actively using (except for signal handling, which will be reworked in the next commit).
2015-06-18Fix libstd testsAlex Crichton-1/+4
2015-06-17More test fixes and fallout of stability changesAlex Crichton-1/+0
2015-06-17Fallout in tests and docs from feature renamingsAlex Crichton-2/+2
2015-06-17std: Split the `std_misc` featureAlex Crichton-1/+1
2015-06-17collections: Split the `collections` featureAlex Crichton-0/+5
This commit also deprecates the `as_string` and `as_slice` free functions in the `string` and `vec` modules.
2015-06-17alloc: Split apart the global `alloc` featureAlex Crichton-0/+3
2015-06-17core: Split apart the global `core` featureAlex Crichton-6/+20
This commit shards the broad `core` feature of the libcore library into finer grained features. This split groups together similar APIs and enables tracking each API separately, giving a better sense of where each feature is within the stabilization process. A few minor APIs were deprecated along the way: * Iterator::reverse_in_place * marker::NoCopy
2015-05-27Use `const fn` to abstract away the contents of UnsafeCell & friends.Eduard Burtescu-0/+1
2015-05-23Rollup merge of #25709 - MatejLach:stdlib_style, r=steveklabnikOliver Schneider-1/+1
Sounds better to me this way. r @steveklabnik ?
2015-05-22better describe the stdlibMatej Ľach-1/+1
2015-05-19Stabilize debug builders for 1.2.0Steven Fackler-1/+0
2015-05-16Auto merge of #25462 - alexcrichton:favicon-https, r=nrcbors-1/+1
Helps prevent mixed content warnings if accessing docs over HTTPS. Closes #25459
2015-05-15libs: Move favicon URLs to HTTPSAlex Crichton-1/+1
Helps prevent mixed content warnings if accessing docs over HTTPS. Closes #25459
2015-05-15std: fix a linkIvan Ukhov-1/+1
2015-05-14Rollup merge of #25414 - apasel422:patch-1, r=alexcrichtonSteve Klabnik-1/+1
2015-05-14s/Iterater/Iterator/Andrew Paseltiner-1/+1
2015-05-14Fix crates.io link.Wangshan Lu-1/+1
2015-05-12doc: Address feedbackBrian Anderson-10/+11
2015-05-08std: Update crate docsBrian Anderson-51/+47
Attempted to organize them in a way more relevant to what newbies would be interested in hearing.
2015-04-29FalloutTamir Duberstein-8/+9
2015-04-29`bitflags!` is no longer used in `std`Tamir Duberstein-2/+1
2015-04-28Register new snapshotsTamir Duberstein-1/+0
2015-04-21std: Bring back f32::from_str_radix as an unstable APIAlex Crichton-0/+1
This API was exercised in a few tests and mirrors the `from_str_radix` functionality of the integer types.
2015-04-21std: Remove deprecated/unstable num functionalityAlex Crichton-0/+1
This commit removes all the old casting/generic traits from `std::num` that are no longer in use by the standard library. This additionally removes the old `strconv` module which has not seen much use in quite a long time. All generic functionality has been supplanted with traits in the `num` crate and the `strconv` module is supplanted with the [rust-strconv crate][rust-strconv]. [rust-strconv]: https://github.com/lifthrasiir/rust-strconv This is a breaking change due to the removal of these deprecated crates, and the alternative crates are listed above. [breaking-change]
2015-04-16deprecate Unicode functions that will be moved to crates.iokwantam-2/+2
This patch 1. renames libunicode to librustc_unicode, 2. deprecates several pieces of libunicode (see below), and 3. removes references to deprecated functions from librustc_driver and libsyntax. This may change pretty-printed output from these modules in cases involving wide or combining characters used in filenames, identifiers, etc. The following functions are marked deprecated: 1. char.width() and str.width(): --> use unicode-width crate 2. str.graphemes() and str.grapheme_indices(): --> use unicode-segmentation crate 3. str.nfd_chars(), str.nfkd_chars(), str.nfc_chars(), str.nfkc_chars(), char.compose(), char.decompose_canonical(), char.decompose_compatible(), char.canonical_combining_class(): --> use unicode-normalization crate
2015-04-14test: Fixup many library unit testsAlex Crichton-1/+1
2015-04-14std: Reexport some unstable rand functionality for nowAlex Crichton-0/+11
Needed to get modules like rustc_back::tempdir compiling.
2015-04-14std: Remove old_io/old_path/rand modulesAlex Crichton-5/+1
This commit entirely removes the old I/O, path, and rand modules. All functionality has been deprecated and unstable for quite some time now!
2015-04-07std: Deny most warnings in doctestsAlex Crichton-1/+2
Allow a few specific ones but otherwise this helps ensure that our examples are squeaky clean! Closes #18199
2015-04-03Don't speak of old_ioSteve Klabnik-3/+2
from https://news.ycombinator.com/item?id=9317822
2015-04-01rollup merge of #23939: nikomatsakis/fn-boxAlex Crichton-0/+1
Conflicts: src/liballoc/boxed.rs
2015-04-01Collect the definition of the `Error` trait into `libstd` for now. ThisNiko Matsakis-1/+1
sidesteps a coherence difficulty where `liballoc` had to prove that `&str: !Error`, which didn't involve any local types.
2015-04-01Add (unstable) FnBox trait as a nicer replacement for `Thunk`. The docNiko Matsakis-0/+1
comment includes a test that also shows how it can be used.
2015-03-31rollup merge of #23873: alexcrichton/remove-deprecatedAlex Crichton-2/+0
Conflicts: src/libcollectionstest/fmt.rs src/libcollectionstest/lib.rs src/libcollectionstest/str.rs src/libcore/error.rs src/libstd/fs.rs src/libstd/io/cursor.rs src/libstd/os.rs src/libstd/process.rs src/libtest/lib.rs src/test/run-pass-fulldeps/compiler-calls.rs
2015-03-31rollup merge of #23875: aturon/revise-convert-2Alex Crichton-2/+1
* Marks `#[stable]` the contents of the `std::convert` module. * Added methods `PathBuf::as_path`, `OsString::as_os_str`, `String::as_str`, `Vec::{as_slice, as_mut_slice}`. * Deprecates `OsStr::from_str` in favor of a new, stable, and more general `OsStr::new`. * Adds unstable methods `OsString::from_bytes` and `OsStr::{to_bytes, to_cstring}` for ergonomic FFI usage. [breaking-change] r? @alexcrichton
2015-03-31std: Clean out #[deprecated] APIsAlex Crichton-2/+0
This commit cleans out a large amount of deprecated APIs from the standard library and some of the facade crates as well, updating all users in the compiler and in tests as it goes along.
2015-03-31Stabilize `std::convert` and related codeAaron Turon-2/+1
* Marks `#[stable]` the contents of the `std::convert` module. * Added methods `PathBuf::as_path`, `OsString::as_os_str`, `String::as_str`, `Vec::{as_slice, as_mut_slice}`. * Deprecates `OsStr::from_str` in favor of a new, stable, and more general `OsStr::new`. * Adds unstable methods `OsString::from_bytes` and `OsStr::{to_bytes, to_cstring}` for ergonomic FFI usage. [breaking-change]
2015-03-30Update lib.rsCamille Roussel-1/+1
Removed duplicate words