[HTML payload içeriği buraya]
26.7 C
Jakarta
Sunday, November 24, 2024

Rust 1.82 brings Cargo information subcommand



Additionally in Rust 1.82, aarch64-apple-darwin for macOS on 64-bit Arm CPUs now could be a tier 1 Rust goal, backed by the best assure of working correctly. Each change within the Rust repository should move full exams on each tier 1 goal earlier than it may be merged. This goal had been launched as tier 2 in Rust 1.49, making it obtainable in rustup. The brand new milestone places the aarch64-apple-darwin goal on par with the 64-bit Arm Linux and x86 macOS, Linux, and Home windows targets. Moreover, targets for Mac Catalyst, an Apple know-how for working iOS purposes natively on the Mac, now are tier 2.

Rust 1.82 follows the September 5 launch of Rust 1.81, which stabilized the Error trait within the Rust core library. Elsewhere in Rust 1.82:

  • Rust now helps the use<..> syntax inside sure impl Trait bounds to manage which generic lifetime parameters are captured. Return-position impl Trait (RPIT) varieties in Rust seize sure generic parameters. Capturing a generic parameter permits the parameter for use within the hidden sort. That, in flip, impacts borrow checking.
  • Native syntax for making a uncooked pointer is featured. 
  • It’s the accountability of individuals writing the extern block to make sure that all signatures contained inside it are right; thus, builders now can write unsafe extern. A good thing about that is that gadgets inside an unsafe extern block will be marked as secure to make use of.
  • Some Rust attributes, reminiscent of no-mangle, can be utilized to trigger undefined habits with none unsafe block. If this had been common code, it could be required that these be positioned in an unsafe {} block, however up to now, attributes haven’t had comparable syntax. To mirror that these attributes can undermine Rust security ensures, these now are thought of “unsafe” and needs to be written as follows: #unsafe(no_mangle)] pub fn my global_function (){}
  • Patterns that match empty varieties now will be omitted.
  • Rust 1.82 standardizes on a algorithm for a way NaN (not a quantity) values behave.
  • The const meeting operand now presents a method to make use of integers as immediates with out first storing them in a register.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles