The distinctive method of the Rust programming language ends in higher code with fewer compromises than C, C++, Go, and the opposite languages you most likely use. It additionally will get up to date repeatedly, usually each month.
Where to obtain the newest Rust model
If you have already got a earlier model of Rust put in through rustup
, you possibly can entry the newest model through the next command:
$ rustup replace steady
The new options in Rust 1.47.0
Announced October 8, 2020, Rust 1.47.Zero has no new language options however enhances the usual library. Quality of life and toolchain enhancements in addition to library stabilizations are featured within the launch. Release notes have been printed for the improve.
Specific capabilities in Rust 1.47.Zero embrace:
- A “const generics” function, impacting traits on bigger arrays. The function nonetheless must be stabilized. Rust has lacked a solution to be generic over integer values, which has induced issues with arrays. This functionality is meant to handle this concern and make arrays extra helpful.
- An improve to LLVM 11 compiler infrastructure, making it the default.
- Shorter backtraces, making it simpler to search out points.
rustc
now helps-C control-flow-guard
, an choice that can swap on the Control Flow Guard safety functionality on Windows. Other platforms ignore this flag.- Rustdoc now helps the Ayu theme.
- Nine APIs in the usual library have been stabilized: Ident::new_raw, Range::is_empty, RangeInclusive::is_empty, Result::as_deref, Result::as_deref_mut, Vec::leak, pointer::offset_from, f32::TAU, and f64::TAU.
The new options in 1.46.0
Rust 1.46, introduced on August 27, 2020, contains the next capabilities:
- Several core language options now can be utilized in
const fn
, together withif
,if let
,match
, and several other others. - A
#[track_caller]
attribute, designed to enhance error messages whenunwrap
and associated capabilities panic, is now steady. - In a change to the library,
std::mem::neglect
is now aconst fn
. Also within the library, two new APIs have been stabilized:Option::zip
andvec::Drain::as_slice
. - For the compiler, the
citylib
goal can be utilized on Apple iOS and tvOS platforms. - Recursively indexing into tuples now not requires parentheses.
The new options in Rust 1.45.0
Announced on July 16, 2020, Rust 1.45 contains the next additions and enhancements:
- A repair is obtainable to fix some longstanding unsoundness when casting between integers and floats.
- Stabilization is obtainable for function-like procedural…