Rust 2021 edition promises better ‘feel’
Rust 2021, the planned third edition of the Rust programming language due in October, is expected to significantly improve how Rust feels in practice, resulting from a number of small changes.In a May 11 bulletin, the Rust 2021 edition working group cited changes including a new prelude to the standard library, which is the module containing everything automatically imported in every module. The new prelude will fix an issue in which adding a trait can subtly break code. This will be done with three additions:std::convert::TryInto std::convert::TryFrom std::iter::FromIterator Also in Rust 2021, the new feature resolver introduced in Rust 1.51 in March will become the default. This resolver no longer merges all requested features for crates that are depended on in multiple ways.To read this article in full, please click here
Rust 2021, the planned third edition of the Rust programming language due in October, is expected to significantly improve how Rust feels in practice, resulting from a number of small changes.
In a May 11 bulletin, the Rust 2021 edition working group cited changes including a new prelude to the standard library, which is the module containing everything automatically imported in every module. The new prelude will fix an issue in which adding a trait can subtly break code. This will be done with three additions:
Also in Rust 2021, the new feature resolver introduced in Rust 1.51 in March will become the default. This resolver no longer merges all requested features for crates that are depended on in multiple ways.