Rust 1.6 发布，该版本最主要的新特性是 libcore 变稳定，主要更新如下：
#![no_std]attribute causes a crate to not be linked to the
standard library, but only the core library, as described
in RFC 1184. The core library defines common types and traits but
has no platform dependencies whatsoever, and is the basis for Rust
software in environments that cannot support a full port of the
standard library, such as operating systems. Most of the core
library is now stable.
The core library is stable, as are most of its APIs.
assert_eq!macro supports arguments that don't implement
Sized, such as arrays. In this way it behaves more like
Several timer functions that take duration in milliseconds are
deprecated in favor of those that take
The algorithm by which
Vecreserves additional elements wastweaked to not allocate excessive space while still growing
Fromconversions are implemented from integers to floatsin cases where the conversion is lossless. Thus they are not
implemented for 32-bit ints to
f32, nor for 64-bit ints to
f64. They are also not implemented for
usizebecause the implementations would be platform-specific.
also implemented from
From<PathBuf>are implemented for
From<T>is implemented for
IntoIteratoris implemented for
BinaryHeapwas refactored for modest performance
Sorting slices that are already sorted is 50% faster in some
Cargo will look in
$CARGO_HOME/binfor subcommands by default.
Cargo build scripts can specify their dependencies by emitting the
crates.io will reject publication of crates with dependencies that
have a wildcard version constraint. Crates with wildcard
dependencies were seen to cause a variety of problems, as described
in RFC 1241. Disallowing them will create more predictable
development experience and a more stable ecosystem. Since 1.5
publication of such crates has emitted a warning.
cargo cleanaccepts a
--releaseflag to clean the
release folder. A variety of artifacts that Cargo failed to clean
are now correctly deleted.
unreachable_codelint warns when a function call's argument
The parser indicates failures that may be caused by
confusingly-similar Unicode characters
Certain macro errors are reported at definition time, not
The compiler no longer makes use of the
RUST_PATHenvironment variable when locating crates. This was a pre-cargo
feature for integrating with the package manager that was
accidentally never removed.
A number of bugs were fixed in the privacy checker that
could cause previously-accepted code to break.
Modules and unit/tuple structs may not share the same name.
Bugs in pattern matching unit structs were fixed: the tuple
struct pattern syntax (
Foo(..)) no longer can be used with unit
structs; patterns that share the same name as a const are now an
A bug was fixed that causes rustc not to apply default type
parameters when resolving certain method implementations of
traits defined in other crates.
Rust 是 Mozilla 的一个新的编程语言，由web语言的领军人物Brendan Eich（js之父），Dave Herman以及Mozilla公司的Graydon Hoare 合力开发。