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
- ππ Announcing Rust 1.24. ππ
- Rayon 1.0 is released.
- Initial support for Rust has landed in quicktype. quicktype generates types and converters from JSON.
- Announcement: Rust team structure revamp.
- Embedded Rust: Zero cost stack overflow protection for ARM Cortex-M devices.
- Borrow cycles in Rust: arenas v.s. drop-checking.
- Porting Rust to WebAssembly.
- Mutation testing Rust in earnest.
- βThe expressive C++17 coding challenge (in Rust)β revisited.
- Write a plugin system and script your app in Rust.
- Sorting in Rust: selection, insertion, and counting sort.
- Learning Rust: A small set of pitfalls a novice might encounter, and how to avoid them.
- This week in Rust docs 93.
- [podcast] Rusty Spike Podcast - episode 19. new teams, humble bundle, SIMD, being special, quicktype, and deps.rs.
Crate of the Week
This week's crate is afl.rs, a by now pretty well-known fuzzing tool for Rust. Thanks to Philipp Hansch 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.
- Get started with these beginner-friendly issues.
- Mutagen: A mutation testing framework needs help with some beginner-friendly issues.
- [good first issue] errno: Port library to winapi 0.3.
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from Rust Core
95 pull requests were merged in the last week
- don't promote the result of dereferences to
'static
- rustc: persist LLVM's
Linker
in Fat LTO - incr.comp.: run cache directory garbage collection before loading dep-graph
- continue parsing function after finding
...
arg - remove allocation from width of character function
- unimplement Send/Sync for ::env::{Args,ArgsOs,Vars,VarsOs}
- support
default impl
for specialization PanicInfo
andLocation
API changes (RFC #2070)- optimize
Vec::retain
- early exit for empty HashMap
- add
Range(Inclusive)::is_empty
- add
std
/core::iter::repeat_with
cargo new
defaults to bin- cargo conflict tracking
- remove hoedown from rustdoc
- compiletest: delete the compiled program once its test is done
And my personal favourite:
New Contributors
- Alex Crawford
- Antoni Boucher
- Artyom Pavlov
- Brad Gibson
- Jacob Hughes
- Mazdak Farrokhzad
- Paolo Teti
- Pramod Bisht
- roblabla
- Ross Light
- Shaun Steenkamp
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 2195: Formally define repr(u32, i8, etc...) and repr(C) on enums with payloads.
- RFC 2056: Allow trivial constraints to appear in where clauses.
- RFC 2175: or-patterns in if / while let expressions.
- RFC 2166: impl-only-use. The
use β¦::{β¦ as β¦}
syntax can now accept_
as alias to a trait to only import the implementations of such a trait. - Issues are not feature requests.
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:
- [disposition: merge] Rust 2018 roadmap.
- [disposition: merge] Stable SIMD in Rust.
- [disposition: merge] Cargo profile dependencies.
- [disposition: merge] Prior art. A section to the RFC template where RFC authors may discuss the experience of other programming languages.
- [disposition: merge] Amend RFC 0141 Lifetime elision: Mention deduplicated lifetimes.
- [disposition: merge] Hexadecimal integers with fmt::Debug, including within larger types.
- [disposition: merge] Raw identifiers. Add a raw identifier format
r#ident
, so crates written in future language epochs/versions can still use an older API that overlaps with new keywords. - [disposition: merge] label-break-value. Allow a break not only out of
loop
, but of labelled blocks with no loop - [disposition: merge] Finalize syntax of
impl Trait
anddyn Trait
with multiple bounds. - [disposition: merge]
?
repetition in macro rules. - [disposition: postpone] Immovable types. Add built-in trait
Move
which all existing types will implement. Types which do not implement it cannot move after they have been borrowed - [disposition: postpone] Proper tail calls. Explicit proper tail calls to Rust via the
become
keyword. - [disposition: postpone] Movable array iterators.
- [disposition: close] Implement Add for OsString.
New RFCs
- Allow
if
andmatch
in constants. - Allow locals and destructuring in const fn.
- Type alias enum variants.
Upcoming Events
The community team is trying to improve outreach to meetup organisers. Please fill out their call for contact info if you are running or used to run a meetup.
- Feb 22. Rust release triage.
- Feb 22. London, GB - LDN Talks: February 2018.
- Feb 22. Minneapolis, US - February 2018 Meetup.
- Feb 25. Mountain View, US - Open Table / Icebreaker: what projects are you working on.
- Feb 26. Durham, US - Triangle Rustaceans - Rust 102 -- Choose Your Own Adventure.
- Feb 27. Rust Community Content Subteam Meeting at #rust-content on irc.mozilla.org.
- Feb 28. Milano, IT - Rust Language Milano - Da Rust a Firefox Quantum passando da Servo.
- Feb 28. Denver, US - denver.rs reactivate!().
- Feb 28. Moscow, RU - Rust Meetup from Exonum & Parity developers.
- Feb 28. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- Feb 28. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
- Feb 28. Rust Events Team Meeting.
- Mar 4. Mountain View, US - Open Table / Icebreaker: what projects are you working on.
- Mar 5. London, GB - Rust learning and hacking evening #8.
- Mar 6. Johannesburg, SA - Monthly Meetup of the Johannesburg Rustaceans.
- Mar 7. Berlin, DE - OpenTechSchool Berlin - Rust Hack and Learn.
- Mar 7. Atlanta, US - Grab a beer with fellow Rustaceans.
- Mar 7. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- Mar 7. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
- Mar 8. Rust release triage.
- Mar 8. Columbus, US - Columbus Rust Society - Monthly Meeting.
If you are running a Rust event please add it to the calendar to get it mentioned here. Email the Rust Community Team for access.
Rust Jobs
Tweet us at @ThisWeekInRust to get your job offers listed here!
Quote of the Week
No quote was selected for QotW.