Main announcements from the Rust 2024 conference
At the annual RustConf 2024 conference, held at the end of September, the Rust language development team presented a number of significant updates that will determine the development of the ecosystem for the coming years. The event gathered over 2000 participants from 50 countries, with the main theme being performance, safety, and cross-language integration. Here are the key announcements that every Rust developer should know.
1. Async Iterators
One of the most anticipated announcements is the stabilization of async iterators in traits. Now developers can create and use iterators that work with asynchronous data streams (for example, from networks or file systems) without having to write complex hand-crafted state machines. This will simplify writing high-load network services and utilities for working with big data.
- New
AsyncIteratortrait in the standard library. - Support for
async forloops. - Backward compatibility with existing code on stable Rust.
2. Improved WebAssembly (WASM) support
Developers announced a significant expansion of compilation capabilities to WebAssembly. Now Rust code can directly interact with the DOM and JavaScript APIs without needing to write JS glue code. This opens the way to creating full-fledged web applications in Rust, especially in areas requiring high performance: games, graphic editors, and scientific simulations.
- Direct access to Web APIs from Rust (DOM, Canvas, WebGL).
- Reduction in the size of final WASM files by 15-20%.
- New
wasm-packtool version 0.12 with improved dependency analysis.
3. New compiler: RustC v2
The announcement of the start of work on the second generation compiler — RustC v2 — was sensational. It will be completely rewritten in Rust (currently partially in C++) and promises a 2-3x speedup in compilation due to parallel module processing and file-system-level caching. The first alpha version is expected in early 2025.
- Average build speedup: from 2x to 3x for large projects.
- Improved error messages with contextual hints.
- Built-in support for incremental compilation without additional flags.
4. Ecosystem and community
In addition to technical innovations, initiatives for community development were announced. First, the RustBridge mentorship program for beginners was launched. Second, a new textbook "Rust by Example 2024" was published, covering the latest language changes. Finally, a partnership with AWS and Google Cloud was announced for free hosting of Rust projects for one year.
- Mentorship program with 500+ mentors.
- Updated Rust by Example with new chapters on async and WASM.
- Free hosting on AWS and Google Cloud for open-source Rust projects.
Conclusion
The RustConf 2024 conference confirmed that the language continues to develop confidently, occupying niches from systems programming to web development. Async iterators, improved WASM support, and