Hello and welcome to another issue of This Week in Rust! Rust is a systems language pursuing the trifecta: safety, concurrency, and speed. This is a weekly summary of its progress and community. Want something mentioned? Tweet us at @ThisWeekInRust or send us a pull request. Want to get involved? We love contributions.
This Week in Rust is openly developed on GitHub. If you find any errors in this week's issue, please submit a PR.
Updates from Rust Community
News & Blog Posts
- Understanding incremental compilation. Now available in Rust nightly.
- Higher-rank and higher-kinded types explained using a Java-like syntax.
- Designing Futures for Rust. Explaining the core design of Futures library.
- The relationship between async libraries in Rust. How Futures, MIO, and Tokio are different from each other.
- Thoughts on trusting types and unsafe code - by Niko Matsakis.
- Learning systems programming with Rust. Transcript of the closing keynote at the first RustConf.
- Writing GStreamer elements in Rust (Part 2). Read part 1 here.
- A critique of Rust's
std::collections
. - Why I’m dropping Rust. (See this reddit discussion thread for responses from the Rust community).
- [podcast] New Rustacean bonus episode 7. Building (and celebrating) all the little, not-so-glorious pieces of the Rust ecosystem.
New Crates & Project Updates
- Reports of a Trojan written in Rust.
- This year in Conrod.
- This week in Servo 77.
- This week in Rust docs 21.
- These months in Amethyst 9.
- This week in Tock embedded OS 4.
- This week in TiKV 2016-09-12.
- What’s coming up in imag 15.
Crate of the Week
This week's crate of the week is tokio, a high-level asynchronous IO library based on futures. Thanks to notriddle for the suggestion.
Submit your suggestions and votes for next week!
Call for Participation
Always wanted to contribute to open-source projects but didn't know where to start? Every week we highlight some tasks from the Rust community for you to pick and get started!
Some of these tasks may also have mentors available, visit the task page for more information.
- [hard] rust: Support Apple app store bitcode.
- [hard] rust: Missed opportunities to eliminate bounds checks.
- [easy] tempdir: make directory removal robust on windows. This bug lets you publish a replacement for the unreliable
std::fs::remove_dir_all
fn. - [moderate] rust: Create official .deb packages.
- [easy] rust-www: Better front-page example. The front page example on the website isn't so special. Make it shine.
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from Rust Core
84 pull requests were merged in the last two weeks.
- Don't double-count nested struct prefixes in DST size calculation
- Individual MIR passes now show up in
-Z time-passes
- Refs to associated sized types no longer result in ICE
impl Trait
now correctly reports the empty lifetime- Errors in macros now note the correct location
- Suggest
self::_
when missing item in current module save-analysis
changes variable value output- Item-like imports are no longer reported as unused
- Compiler controllers can now access the Registry
- Macros are now stacklessly expanded
- Cargo is now Macros-1.1-ready
- Accessing external statics now requires
unsafe
- Cyclic traits no longer allow arbitrary traits to be synthesized (which lead to unsoundness)
- Rustdoc filters out
Deref
fed methods on&mut self
unlessself impl
sDerefMut
New Contributors
- Cobrand
- Jake Goldsborough
- John Firebaugh
- Justin LeFebvre
- Kylo Ginsberg
- Nicholas Nethercote
- orbea
- Richard Janis Goldschmidt
- Ulrich Weigand
Approved RFCs
Changes to Rust follow the Rust RFC (request for comments) process. These are the RFCs that were approved for implementation this week:
Final Comment Period
Every week the team announces the 'final comment period' for RFCs and key PRs which are reaching a decision. Express your opinions now. This week's FCPs are:
mem::discriminant()
. Add a function that extracts the discriminant from an enum variant as a comparable, hashable, printable, but (for now) opaque and unorderable type.- Add a compiler flag that emits crate dependencies on a best-effort basis.
New RFCs
Upcoming Events
- 9/17. Rustfest Europe Conference.
- 9/19. Paris - Rust Paris.
- 9/20. Rust NYC Meetup.
- 9/21. Rust Boulder/Denver Monthly Meeting.
- 9/21. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- 9/22. RustPH Mentors Meeting.
- 9/22. Rust release triage at #rust-triage on irc.mozilla.org.
- 9/26. São Paulo Meetup.
If you are running a Rust event please add it to the calendar to get it mentioned here. Email Erick Tryzelaar or Brian Anderson for access.
fn work(on: RustProject) -> Money
Tweet us at @ThisWeekInRust to get your job offers listed here!
Quote of the Week
No quote was selected for QotW.