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
- 4 years of Rust.
- The 2019 Rust event lineup.
- Understanding zero cost abstractions.
- Using Rust to scale Elixir for 11 million concurrent users.
- Rust in Avast.
- Evaluating pipelined rustc compilation.
- Analysis of various tricky Rust code.
- Get back some compile time from monomorphization.
- mem::uninitialized is deprecated.
- Shell completions in pure Rust.
- Creating C/C++ APIs in Rust.
- How to start Rust chat app.
- WebRender MVP ships in Firefox.
- Rust in Motion - a video series by Carol Nichols and Jake Goulding (requires purchase).
- Rust in Action - a book by Tim McNamara (early access, requires purchase).
Crate of the Week
This week we have two crates: memory-profiler, does what it says on the box. momo is a procedural macro that outlines generic conversions to reduce monomorphized code. Thanks to ehsanmok and llogiq 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.
- Running a Rust Belt RustBridge.
- Submit your experience for newly await syntax.
- www.rust-lang.org: Frontend cleanup: Remove Skeleton.
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from Rust Core
240 pull requests were merged in the last week
- Move token tree related lexer state to a separate struct
- Stop using gensyms in HIR lowering
- Fix more escaping ReScopes
- Perform constant propagation into terminators
- Do some simple constant propagation in the
ConstProp
pass - Test interaction of unions with non-zero/niche-filling optimization
- Forego caching for all participants in cycles, apart from root node
- Mark
core::alloc::Layout::from_size_align_unchecked
const - Remove the unstable and deprecated
mpsc_select
- Stabilize core parts of
MaybeUninit
- Stabilize
vecdeque_rotate
- Add entry-like methods to
HashSet
- Add implementations of
last
in terms ofnext_back
on a bunch ofDoubleEndedIterators
- Fix display of const generics in rustdoc
- rustup: Avoid blocking on
CloseHandle
- rustc-guide: Add documentation about profile-guided optimization
- lint: convert
incoherent_fundamental_impls
into hard error - clippy: Prevent symbocalypse
- crates.io: Fix performance regression on crate search
Approved RFCs
Changes to Rust follow the Rust RFC (request for comments) process. These are the RFCs that were approved for implementation this week:
No RFCs were approved 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.
RFCs
- [disposition: merge] Named custom cargo profiles.
Tracking Issues & PRs
- [disposition: merge] Stabilize RefCell::try_borrow_unguarded.
- [disposition: merge] Tracking issue for reversing the bit pattern in an integer.
- [disposition: merge] BufReader/Writer extension methods: is_empty, buffer.
- [disposition: merge] Bors policy question: Auto-reassignment on r+.
New RFCs
No new RFCs were proposed this week.
Upcoming Events
Africa
Asia
Europe
- May 23. Kharkiv, UA - PeerLab Kharkiv #Rust: Rust Success Stories.
- May 23. Paris, FR - Rust Paris meetup #45.
- May 26. St. Petersburg, RU - St. Petersburg Rust Meetup.
- May 29. Berlin, DE - OpenTechSchool Berlin - Rust Hack and Learn.
- May 28. Vilnius, LT - Rust Vilnius - Rust Safety and Distributed Consensus.
- Jun 6. Wroclaw, PL - Rust Wroclaw Meetup #11.
North America
- May 27. Durham, NC, US - Triangle Rustaceans - Project Night & Lightning Talks.
- May 28. Dallas, TX, US - Dallas Rust - Last Tuesday.
- May 29. Vancouver, CA - Vancouver Rust meetup.
- May 29. Chicago, IL, US - Chicago Rust Meetup - Unsafe Rust.
- Jun 5. Atlanta, GA, US - Grab a beer with fellow Rustaceans.
- Jun 5. Indianapolis, IN, US - Indy.rs.
South America
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
- Senior Software Engineer, Backend - Rust at Kraken, Berlin, DE or remote.
- Blockchain Runtime Engineer at Parity, Berlin, DE or remote.
Tweet us at @ThisWeekInRust to get your job offers listed here!
Quote of the Week
Just the presence of well integrated Algebraic Data Types (ADTs) makes an incredible amount of difference. They are used to represent errors in a meaningful and easy to understand way (
Result<T>
), are used to show that a function may or may not return a meaningful value without needing a garbage value (Option<T>
), and the optional case can even be used to wrap a null pointer scenario in a safe way (Option<Ref<T>>
being the closest to a literal translation I think).That’s just one small feature that permeates the language. Whatever the opposite of a death-of-a-thousand-cuts is, Rust has it.
tomcatfish on the orange website
Thanks to PrototypeNM1 for the suggestion!
Please submit quotes and vote for next week!
This Week in Rust is edited by: nasa42, llogiq, and Flavsditz.