• Fri. Sep 20th, 2024

Rust 1.81 stabilizes Error trait

Byadmin

Sep 9, 2024



Rust 1.81 is now available, with the newest version of the memory-safe language, featuring a stabilization of the Error trait in the Rust core library.

Rust 1.81 was released September 5. Developers with a previous version of Rust installed via rustup can upgrade using the rustup update stable command. Developers can install rustup from the rust-lang.org.

With Rust 1.81, the Error trait is stabilized in core, allowing usage of the trait in #![no_std] libraries. Error is a trait representing the basic expectations for error values. The stabilization primarily enables the wider Rust ecosystem to standardize on the same Error trait, regardless of the environments targeted by the library. The no_std attribute allows developers to build Rust applications without using the Rust standard library (std).



Source link