Rust-1.31.0 stable + Rust 2018
https://blog.rust-lang.org/2018/12/06/Rust-1.31-and-rust-2018.html
- Rust 2018 - work over the past 3 years + cohesive package
- Tooling (IDE support, rustfmt, clippy)
- Documentation
- Domain working groups work
- new web site
- new key in Cargo.toml: package -> “edition: 2018” (or 2015 by default)
- backward and forward compatible: 2018 vs 2015
- 2015 -> 2018: “cargo fix”
- non-lexical lifetime: more clever borrow checker
- module system simplified (important for newcomers)
- more lifetime elision rules (автовыведение lifetime)
- “const fn” - compile time generated functions, may be used in any constant context
- New Tools
- clippy: rust linter (v 1.0)
- rustfmt
- IDE support (vscode, intellij, atom, sublime, eclipse) vim????
- tool attributes (for linter)
- Documentation. New Book (TRPL = The Rust Programming Language)
- Working groups. Announced the formation of 4 working groups:
- Network Services
- Command-line applications
- WebAssembly
- Embedded Devices
- New Website
- Library Stabilization