Navigation
Recherche
|
Rust 1.31 Released As 'Rust 2018' In Major Push For Backwards Compatibility
samedi 8 décembre 2018, 16:34 , par Slashdot
'The Rust programming language team has announced the first major edition of Rust since 1.0 was released in 2015,' reports SD Times -- specifically, Rust 1.31, the first edition of 'Rust 2018,' described by Rust's developers as 'the culmination of feature stabilization.'
An anonymous reader writes: The Rust team is working hard to maintain backwards compatibility, for example with the way they're handling the ongoing addition of an async/await feature. 'Even though the feature hasn't landed yet, the keywords are now reserved,' notes the Rust Team. 'All of the breaking changes needed for the next three years of development (like adding new keywords) are being made in one go, in Rust 1.31.' The keyword 'try' has now also been reserved, but 'Almost all of the new features are 100% compatible with Rust as it is. They don't require any breaking changes... New versions of the compiler will continue to support 'Rust 2015 mode', which is what you get by default... [Y]ou could think of Rust 2018 as the specifier in Cargo.toml that you use to enable the handful of features that require breaking changes.' The Rust language's blog adds, 'Your 2018 project can use 2015 dependencies, and a 2015 project can use 2018 dependencies. This ensures that we don't split the ecosystem, and all of these new things are opt-in, preserving compatibility for existing code. Furthermore, when you do choose to migrate Rust 2015 code to Rust 2018, the changes can be made automatically, via cargo fix.' Tooling improvements include faster and smarter 'incremental' compilation (along with better IDE support), plus the addition of function-like and attribute-like (procedural) macros. There's also a rustfmt tool which can automatically reformat your code's style 'like clang format does for C++ and Prettier does for JavaScript,' plus an optional diagnostics linter named clippy, and automated code fixes via rustfix. There's even upgrades to Rust's module system and other path clarity improvements. But this is only the beginning, SD Times reports: With the release of Rust 2018, the team is now starting to look at Rust's future. The team is asking developers to reflect on what they liked, didn't like or hoped to see in Rust during the last year, and propose any goals or directions for the upcoming year. Read more of this story at Slashdot.
rss.slashdot.org/~r/Slashdot/slashdot/~3/dxoU13BFf9o/rust-131-released-as-rust-2018-in-major-push-fo...
|
56 sources (32 en français)
Date Actuelle
ven. 22 nov. - 03:18 CET
|