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
- A final proposal for await syntax.
- Cargo in 2019.
- Const generics: a summary of progress so far.
- Rust parallelism for non-C/C++ developers.
- Writing an OS in Rust: Updates in April 2019.
- A guide to Rust graphics libraries as of 2019.
- World's first private Cargo registry.
- Compile-time coprocessor codegen, with Rust macros.
- Using Wasmer for plugins part 4
Crate of the Week
This week's crate is select-rustc, a crate for conditional compilation according to rustc version. Thanks to ehsanmok 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.
No issues were proposed for CfP.
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from Rust Core
235 pull requests were merged in the last week
- Stop
-O
/-C opt-level
and-g
/-C debuginfo
conflicting - The Genesis of Generic Germination
- Avoid repeated interning of static strings
- Suggest
try_into
when possible - Suggest using an inclusive range instead of an exclusive range when the endpoint overflows by 1
- Search for incompatible universes in borrow errors
- Constrain all regions in the concrete type for an opaque type
- Const propagation refactoring
- Implement
BorrowMut<str>
forString
- Stabilize vectored IO
- Stabilize
str::as_mut_ptr
- Add
Option::flatten
andInto<Option<_>> for Option<Option<_>>
- cargo: Add some help with updating the registry in offline mode
Approved RFCs
Changes to Rust follow the Rust RFC (request for comments) process. These are the RFCs that were approved for implementation this week:
- RFC 2689: Introduce "compiler-team contributors".
- RFC 2363: Allow arbitrary enums to have explicit discriminants.
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.
RFCs
- [disposition: merge] Symbol Mangling v2.
Tracking Issues & PRs
- [disposition: merge] Document the order of {Vec,VecDeque,String}::retain.
- [disposition: merge] const-stabilize NonNull::dangling and NonNull::cast.
- [disposition: merge] std: Derive
Default
forio::Cursor
. - [disposition: merge] Implement DoubleEndedIterator for CaseMappingIter.
- [disposition: merge] Stabilize the core::array module and reexport in std (for TryFromSliceError).
- [disposition: merge] Tracking issue for DoubleEndedIterator::nth_back.
New RFCs
Upcoming Events
Europe
- May 9. Wrocław, PL - Rust Wroclaw Meetup #10.
- May 9. Berlin, DE - Rust+GNOME 2019 Hackfest#5.
- May 14. Barcelona, ES - BcnRust Meetup.
- May 15. Berlin, DE - Rust and Rust Berlin Birthday Party.
- May 15. Helsinki, FI - Rust meetup May.
- May 15. Stuttgart, DE - Workshop: Ownership, Borrowing & Lifetimes.
- May 22. Erlangen, DE - Rust Franken Meetup #0.
- May 22. Hamburg, DE - Rust Hack & Learn May 2019.
- May 23. Paris, FR - Rust Paris meetup #45.
North America
- May 9. Lehi, UT, US - Meetup #12: Happy Anniversary, Utah Rust.
- May 9. San Diego, US - San Diego Rust May Meetup.
- May 9. Arlington, US - Rust DC — Mid-month Rustful.
- May 9. Columbus, US - Columbus Rust Society - Monthly Meeting.
- May 14. Seattle, US - Monthly meetup.
- May 15. Mexico City, MX - Rust MX - Taller de desarrollo con Rocket.
- May 15. Vancouver, CA - Vancouver Rust meetup.
- May 22. Ann Arbor, US - Ann Arbor Rust Meetup - Monthly Gathering.
- May 22. Mesa, AZ, US - Desert Rust - Rust: Backend Web Frameworks.
If you are running a Rust event please add it to the calendar to get it mentioned here. Please remember to add a link to the event too. Email the Rust Community Team for access.
Rust Jobs
- Blockchain Runtime Engineer at Parity, Berlin, DE or remote.
- Senior Software Engineer, Backend - Rust at Kraken, Remote.
Tweet us at @ThisWeekInRust to get your job offers listed here!
Quote of the Week
A compile_fail test that fails to fail to compile is also a failure.
David Tolnay in the try-build README
Llogiq is pretty self-congratulatory for picking this awesome quote.
Please submit quotes and vote for next week!
This Week in Rust is edited by: nasa42, llogiq, and Flavsditz.