Skip to content

Releases: rust-lang/rust

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

Rust 1.2.0

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

Highlights

Breaking Changes

Language

  • Patterns with ref mut now correctly invoke DerefMut when matching against dereferenceable values.

Libraries

  • The Extend trait, which grows a collection from an iterator, is implemented over iterators of references, for String, Vec, LinkedList, VecDeque, EnumSet, BinaryHeap, VecMap, BTreeSet and BTreeMap. RFC.
  • The iter::once function returns an iterator that yields a single element, and iter::empty returns an iterator that yields no elements.
  • The matches and rmatches methods on str return iterators over substring matches.
  • Cell and RefCell both implement Eq.
  • A number of methods for wrapping arithmetic are added to the integral types, wrapping_div, wrapping_rem, wrapping_neg, wrapping_shl, wrapping_shr. These are in addition to the existing wrapping_add, wrapping_sub, and wrapping_mul methods, and alternatives to the Wrapping type.. It is illegal for the default arithmetic operations in Rust to overflow; the desire to wrap must be explicit.
  • The {:#?} formatting specifier displays the alternate, pretty-printed form of the Debug formatter. This feature was actually introduced prior to 1.0 with little fanfare.
  • fmt::Formatter implements fmt::Write, a fmt-specific trait for writing data to formatted strings, similar to io::Write.
  • fmt::Formatter adds 'debug builder' methods, debug_struct, debug_tuple, debug_list, debug_set, debug_map. These are used by code generators to emit implementations of Debug.
  • str has new to_uppercase and to_lowercase methods that convert case, following Unicode case mapping.
  • It is now easier to handle poisoned locks. The PoisonError type, returned by failing lock operations, exposes into_inner, get_ref, and get_mut, which all give access to the inner lock guard, and allow the poisoned lock to continue to operate. The is_poisoned method of RwLock and Mutex can poll for a poisoned lock without attempting to take the lock.
  • On Unix the FromRawFd trait is implemented for Stdio, and AsRawFd for ChildStdin, ChildStdout, ChildStderr. On Windows the FromRawHandle trait is implemented for Stdio, and AsRawHandle for ChildStdin, ChildStdout, ChildStderr.
  • io::ErrorKind has a new variant, InvalidData, which indicates malformed input.

Misc