Rust 1.77.0

Rust is systems programming language, which is intended to be fast and memory-safe through stronger typing, and prevent race conditions. It's developed by Mozilla, multi-paradigm, supports concurrent execution, procedural, imperative, actor-based, object-oriented and pure-functional design schemes, with a syntax close to C++. The self-hosting compiler utilizes LLVM and its resulting binaries are comparable in performance to C++. It also features algebraic data types, pattern matching, closures, type inference, zero-cost abstractions, guaranteed memory safety, minimal runtime, and efficient C bindings.

Tags rust programming-language compiler concurrent type-safe
License MITL
State stable

Recent Releases

1.77.022 Mar 2024 03:15 minor feature: lt;p gt; lt;a id="user-content-1.77.0-Language" gt; lt;/a gt; lt;/p gt;. lt;h2 gt;Language lt;/h2 gt;. lt;ul gt;. lt;li gt; lt;a href="https://github.com/rust-lang/rust/pull/116821/" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/116821/hovercard" gt;Reveal opaque types within the defining body for exhaustiveness checking. lt;/a gt; lt;/li gt;. lt;li gt; lt;a href="https://github.com/rust-lang/rust/pull/117472/" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/117472/hovercard" gt;Stabilize C-string literals. lt;/a gt; lt;/li gt;. lt;li gt; lt;a href="https://github.com/rust-lang/rust/pull/117673/" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/117673/hovercard" gt;Stabilize THIR unsafeck. lt;/a gt; lt;/li gt;. lt;li gt; lt;a href="https://github.com/rust-lang/rust/pull/117556/" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/117556/hovercard" gt;Add lint lt;code gt;static_mut_refs lt;/code gt; to warn on references to mutable statics. lt;/a gt; lt;/li gt;. lt;li gt; lt;a href="https://github.com/rust-lang/rust/pull/117703/" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/117703/hovercard" gt;Support async recursive calls (as long as they have indirection). lt;/a gt; lt;/li gt;. lt;li gt; lt;a href="https://github.com/rust-lang/rust/pull/118639/" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/118639/hovercard" gt;Undeprecate lint lt;code gt;unstable_features lt;/code gt; and make use of it in the compiler. lt;/a gt; lt;/li gt;. lt;li gt; lt;a href="https://github.com/rust-lang/rust/pull/118649/" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/118649/hovercard" gt;Make inductive cycles in coherence ambiguous always. lt;/a gt; lt;/li gt;. lt;li gt; lt;a href="https://github.com/rust-lang/rust/pull/119044/" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/
1.76.018 Mar 2024 12:23 major feature: Language Document Rust ABI compatibility between various types Also: guarantee that char and u32 are ABI-compatible Add lint ambiguous_wide_pointer_comparisons that supersedes clippy::vtable_address_comparisons Compiler Lint pinned # must_use pointers (in particular, Box where T is # must_use ) in unused_must_use. Soundness fix: fix computing the offset of an unsized field in a packed struct Soundness fix: fix dynamic size/align computation logic for packed types with dyn Trait tail Add message_type field to distinguish json diagnostic outputs Enable Rust to use the EHCont security feature of Windows Add tier 3 x86_64,i686 -win7-windows-msvc targets Add tier 3 aarch64-apple-watchos target Add tier 3 arm64e-apple-ios arm64e-apple-darwin targets Refer to Rust's platform support page for more information on Rust's tiered platform support. Libraries Add a column number to dbg!() Add std::hash:: DefaultHasher, RandomState exports Fix rounding issue with exponents in fmt Add T: ?Sized to RwLockReadGuard and RwLockWriteGuard's Debug impls. Windows: Allow File::create to work on hidden files Stabilized APIs Arc::unwrap_or_clone Rc::unwrap_or_clone Result::inspect Result::inspect_err Option::inspect type_name_of_val std::hash:: DefaultHasher, RandomState These were previously available only through std::collections::hash_map. ptr:: from_ref, from_mut ptr::addr_eq
1.0.015 May 2015 20:25 major feature: Around 1500 changes, numerous bugfixes. Highlights: The vast majority of the standard library is now stable. It is no longer possible to use unstable features with a stable build of the compiler. Many popular crates on crates.io now work on the stable release channel. Arithmetic on basic integer types now checks for overflow in debug builds. Language: Several restrictions have been added to trait coherence in order to make it easier for upstream authors to change traits without breaking downsteam code. Digits of binary and octal literals are lexed more eagerly to improve error messages and macro behavior. For example, 0b1234 is now lexed as 0b1234 instead of two tokens, 0b1 and 234 . Trait bounds are always invariant, eleminating the need for the PhantomFn and MarkerTrait lang items, which have been removed. "-" is no longer a valid character in crate names, the extern crate "foo" as bar syntax has been replaced with extern crate foo as bar , and Cargo now automatically translates "-" in package names to underscore for the crate name. Lifetime shadowing is an error. Send no longer implies 'static . UFCS now supports trait-less associated paths like MyType::default() . Primitive types now have inherent methods, obviating the need for extension traits like SliceExt . Methods with Self: Sized in their where clause are considered object-safe, allowing many extension traits like IteratorExt to be merged into the traits they extended. You can now refer to associated types whose corresponding trait bounds appear only in a where clause. The final bits of OIBIT landed, meaning that traits like Send and Sync are now library-defined. A Reflect trait was introduced, which means that downcasting via the Any trait is effectively limited to concrete types. This helps retain the potentially-important "parametricity" property: generic code cannot behave differently for different type arguments except in minor ways. The unsafe_destructor feature is
0.12.014 Oct 2014 22:05 major feature: The introductory documentation (now called The Rust Guide) has been completely rewritten, as have a number of supplementary guides. Rust's package manager, Cargo, continues to improve and is sometimes considered to be quite awesome. Many API's in std have been reviewed and updated for consistency with the in-development Rust coding guidelines. The standard library documentation tracks stabilization progress. Minor libraries have been moved out-of-tree to the rust-lang org on GitHub: uuid, semver, glob, num, hexfloat, fourcc. They can be installed with Cargo. Lifetime elision allows lifetime annotations to be left off of function declarations in many common scenarios. Rust now works on 64-bit Windows.