Skip to content

Releases: rust-lang/rust

Rust 1.12.0

10 Sep 05:53
Compare
Choose a tag to compare

Highlights

Compiler

Diagnostics

Language

Stabilized APIs

Libraries

Cargo

Performance

Tooling

Read more

Rust 1.11.0

10 Sep 05:53
Compare
Choose a tag to compare

Language

Stabilized APIs

Libraries

Cargo

Performance

Rustdoc

Tooling

Misc

Compatibility Notes

Rust 1.10.0

10 Sep 08:08
Compare
Choose a tag to compare

Language

Stabilized APIs

Libraries

Cargo

Read more

Rust 1.9.0

10 Sep 08:08
Compare
Choose a tag to compare

Language

Stabilized APIs

Read more

Rust 1.8.0

10 Sep 08:08
Compare
Choose a tag to compare

Language

Libraries

Performance

Misc

Cargo

Compatibility Notes

Read more

Rust 1.7.0

10 Sep 08:07
Compare
Choose a tag to compare

Libraries

Misc

Cargo

Compatibility Notes

  • Soundness fixes to the interactions between associated types and lifetimes, specified in RFC 1214, now generate errors for code that violates the new rules. This is a significant change that is known to break existing code, so it has emitted warnings for the new error cases since 1.4 to give crate authors time to adapt. The details of what is changing are subtle; read the RFC for more.
  • Several bugs in the compiler's visibility calculations were fixed. Since this was found to br...
Read more

Rust 1.6.0

10 Sep 08:08
Compare
Choose a tag to compare

Language

  • The #![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.

Libraries

Cargo

  • Cargo will look in $CARGO_HOME/bin for subcommands by default.
  • Cargo build scripts can specify their dependencies by emitting the rerun-if-changed key.
  • 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. Since 1.5 publication of such crates has emitted a warning.
  • cargo clean accepts a --release flag to clean the release folder. A variety of artifacts that Cargo failed to clean are now correctly deleted.

Misc

Compatibility Notes

Rust 1.5.0

10 Sep 08:08
Compare
Choose a tag to compare
  • ~700 changes, numerous bugfixes

Highlights

Breaking Changes

Language

  • When evaluating expressions at compile-time that are not compile-time constants (const-evaluating expressions in non-const contexts), incorrect code such as overlong bitshifts and arithmetic overflow will generate a warning instead of an error, delaying the error until runtime. This will allow the const-evaluator to be expanded in the future backwards-compatibly.
  • The improper_ctypes lint no longer warns about using isize and usize in FFI.

Libraries

Read more

Rust 1.4.0

10 Sep 05:53
Compare
Choose a tag to compare
  • ~1200 changes, numerous bugfixes

Highlights

  • Windows builds targeting the 64-bit MSVC ABI and linker (instead of GNU) are now supported and recommended for use.

Breaking Changes

Language

Libraries

Miscellaneous

Rust 1.3.0

10 Sep 08:08
Compare
Choose a tag to compare
  • ~900 changes, numerous bugfixes

Highlights

  • The new object lifetime defaults have been turned on after a cycle of warnings about the change. Now types like &'a Box<Trait> (or &'a Rc<Trait>, etc) will change from being interpreted as &'a Box<Trait+'a> to &'a Box<Trait+'static>.
  • The Rustonomicon is a new book in the official documentation that dives into writing unsafe Rust.
  • The Duration API, has been stabilized. This basic unit of timekeeping is employed by other std APIs, as well as out-of-tree time crates.

Breaking Changes

Language

Libraries

Misc

  • Rust can now, with some coercion, produce programs that run on Windows XP, though XP is not considered a supported platform.
  • Porting Rust on Windows from the GNU toolchain to MSVC continues (1, 2, 3, 4). It is still not recommended for use in 1.3, though should be fully-functional in the 64-bit 1.4 beta.
  • On Fedora-based systems installation will properly configure the dynamic linker.
  • The compiler gained many new extended error descriptions, which can be accessed with the --explain flag.
  • The dropck pass, which checks that destructors can't access destroyed values, has been rewritten. This fixes ...
Read more