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.
Updates from Rust Community
News & Blog Posts
- 🎈🎉 Announcing Rust 1.26.2. 🎉🎈
- How to speed up the Rust compiler some more in 2018.
- The future of Clippy (the Rust linter).
- Async methods I: generic associated types.
- Async methods II: object safety.
- Avoiding the pyramid of doom.
- The Rust way of OS development.
- The secret life of Cows.
- The state of Gotham.
- Optimising path tracing with SIMD.
- Writing a simple web service in Rust with actix-web.
- Newtype index pattern.
- Tricking the HashMap.
- The Rust language and special cases.
- aturon.log: listening and trust, part 2.
- Introducing feL4: Rust programs for the seL4 microkernel.
- hyper v0.12 is released.
- This week in Rust docs 107.
- This week in Rust and WebAssembly 3.
- [podcast] New Rustacean: Crates you should know: wasm. wasm intro, wasm-bindgen, and wasm-pack.
- [podcast] Rusty Spike Podcast - episode 31. 1.26.1 release, RustFest videos, Rust reach, RustRush 2018, and a bit of behind the scenes look at running Rust.
Crate of the Week
This week's crate, as decreed by llogiq, is im, a library for immutable data structures in Rust.
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.
- wasm-pack has several open good first issues available to new contributors.
- Get started with these beginner-friendly issues.
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from Rust Core
149 pull requests were merged in the last week
- fix building rustc on and for musl hosts
- add polonius compare mode
- make borrowck use polonius output
- register outlives predicates from queries the right way around
- resolve: make sure indeterminate and inconsistent macro resolutions always generate errors
- typeck: do not pass the field check on field error
- make GlobalCtxt thread-safe
- stabilize short error format
- suggest using
as_refon some borrow errors
- merge unused-extern-crate and unnecessary-extern-crate lints
- make anon params lint warn-by-default
- do not promote union field accesses
- make const decoding thread-safe
impl Default for &mut str
- const fn integer operations
- every match arm reads the match's borrowed input
- also check
letarms and nested patterns for mutable borrows
- OOM handling changes
- make the OOM hook return
std::fs::DirEntry.metadata: use fstatat instead of lstat when possible
- add missing Wrapping methods, use doc_comment!
- optimize joining for slices
- hash up to 8 bytes at once with
- two minor parsing tweaks
Layout's align a
- make some std::intrinsics
HashMaplayout calculation by using
- optimize layout calculations in
- fs: copy: use copy_file_range on Linux
From<bool>for int types
- stabilize SliceIndex trait
- stabilize SystemTime::UNIX_EPOCH
- cargo: verify that src dir wasn't modified by
- cargo: fix a deadlock issue
- Rust Logo on a diet
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.
No RFCs are currently in final comment period.
- [disposition: merge] Tracking issue for the GlobalAlloc trait and related APIs.
- [disposition: merge] Stabilize GlobalAlloc and
- [disposition: merge] Tracking issue for
- [disposition: merge] Tracking issue for "macro naming and modularisation" (RFC #1561).
- [disposition: merge] Tracking issue for promoting
!to a type (RFC 1216).
- [disposition: merge] Exhaustive integer matching.
- [disposition: merge] Stabilize
- [disposition: merge] Add ability to apply custom derive to union types.
- Jun 10. Mountain View, US - Open Table / Icebreaker: what projects are you working on.
- Jun 11. Seattle, US - Monthly meetup.
- Jun 12. Rome, IT - Rust learning and hacking evening #9.
- Jun 13. Berlin, DE - OpenTechSchool - Rust Hack and Learn.
- Jun 13. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- Jun 13. Vancouver, CA - Rust Study/Hack/Hang-out night.
- Jun 14. Columbus, US - Columbus Rust Society - Monthly Meeting.
- Jun 14. San Diego, US - San Diego Rust June Meetup.
- Jun 14. Utah Valley, US - Utah Rust meetup.
- Jun 17. Mountain View, US - Open Table / Icebreaker: what projects are you working on.
- Jun 19. Denver, US - Rust Boulder/Denver - June Meetup in Boulder.
- Jun 19. Rust Community Content Subteam Meeting at #rust-content on irc.mozilla.org.
- Jun 20. Rust Events Team Meeting.
- Jun 20. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- Jun 21. Cambridge, GB - Cambridge Rust Meetup.
- Aug 17. Portland, US - RustConf 2018. Registration is now open.
Tweet us at @ThisWeekInRust to get your job offers listed here!
Quote of the Week
When picking up a lentil (Result) a pigeon (?) must consider two options. If the lentil is a good one (Ok), the pigeon simply puts it into the pot (evaluates to the wrapped value). However, if the lentil happens to be a bad one (Err), the pigeon eats it, digests it (from) and finally “returns” it. Also the silhouette of a pigeon kind of resembles a questionmark.
Thanks to Christopher Durham for the suggestion!