Rust 1.62 Released With Faster Mutexes On Linux, Bare Metal x86_64 Target Promoted

Written by Michael Larabel in Programming on 30 June 2022 at 01:45 PM EDT. 100 Comments
PROGRAMMING
Rust 1.62 is out today as the latest update to this popular systems programming language with a few notable changes.

First up, Rust's x86_64-unknown-none target has been promoted to tier two status, which is their "guaranteed to build" state. Rust's x86_64-unknown-none target is for generating freestanding/bare-metal x86_64 ELF binaries for firmware, kernels, and other low-level software. This cross-compiled target lacks Rust standard library support, no default allocator, does not use any vector or FP registers, but should work for bare metal x86_64 programs.


Also notable with Rust 1.62 is the Rust standard library on Linux now shipping a raw Futex-based implementation. The Mutex/Condvar/RwLock Rust behavior has been implemented using the pthreads library while now for Linux is raw Futex-based implementations for these locking primitives so they are lighter weight, don't require extra allocations, and basically amount to being "thinner and faster" than the prior implementations.

Rust 1.62 also stabilizes a number of new APIs, introduces the cargo add command for adding dependencies directly from the command-line, and other improvements.

Downloads and more details on Rust 1.62 via Rust-Lang.org.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week