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
The Rust programming language, in the words of its practitioners.
Replacing the jet engine while still flying. Project Quantum: An effort to incrementally add Servo technologies in Firefox.
Exploring double faults. Part of the series Writing an OS in Rust.
Announcing Alacritty, a GPU-accelerated terminal emulator.
Piston: The image library is now pure Rust.
A guide to compiling Rust to WebAssembly.
Should you convert your C project to Rust?
american fuzzy lop’ing Rust. american fuzzy lop is a fuzzer that employs genetic algorithms in order to efficiently increase code coverage of the test cases.
Inner workings of a search engine written in Rust.
SoA (Structure of Arrays) in Rust with macros 1.1.
Rust makes implicit invariants explicit.
The Rust module system is too confusing.
Rust at OneSignal. OneSignal shares its experience of using Rust in production for more than a year.
Librsvg 2.41.0 requires Rust.
Other Weeklies from Rust Community
This week in Rust docs 38.
These weeks in Servo 86.
[video] Ferris makes emulators 14.
Crate of the Week
This week's Crate of the Week is trust, a Travis CI and AppVeyor template to test your Rust crate on 5 architectures and publish binary releases of it for Linux, macOS and Windows. Thanks to Vikrant 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.
rust: Make Rust on wasm + emscripten a reliable, 1st class Rust target.
[easy] rust: Rvalue static promotion.
[easy] Diesel: Refactorings using macros in type position.
[easy] Diesel: Deny missing docs.
android-rs-glue: Add more arguments and use clap to parse the arguments.
tokei: Add package repositories.
RustCrypto/hashes: Missing hash functions.
RustCrypto/block-ciphers: Missing block ciphers.
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from Rust Core
112 pull requests were merged in the last week. This contains a good number of plugin-breaking changes.
mem::transmute::<U, T>(_) alignment fixed
writeln!()
more specific errors with str slices
Impl From<{Ipv4Addr, Ipv6Addr}> for IpAddr
placement-in for Vec: Vec.place_back() <- _
BinaryHeap::peek_mut().pop()
missing feature gate for {std, core}::{i128, u128}
stability check only public items (fixes ICE)
fix stack overflow when promoting MIR terminators
associated types fixed in Copy implementation
stabilize Macros 1.1
improved diagnostics for Macros 1.1
fix handling of empty types in patterns
fix regression with doubly exported macro rules
const_eval no longer builds fake HIR patterns
negation of unsigned ints no longer typecheck
smaller std::unicode tables
debuginfo for unsized struct members fixed
rustc no longer leaks private scope information in errors
separate ty::Table per Body
don't check global paths for unused_qualifications
closures get drop glue even without reference (went missing in trans)
on Windows, distinct processes no longer get overlapped handles
cargo now builds all workspace members with build --all
rustdoc no longer ICEs with unstable features
dead foreign items are no longer warned against when allowing dead_code
New Contributors
derekdreery
F001
Kyle Aleshire
Mina Naguib
Yamakaky
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 1774: Roadmap for 2017.
RFC 1647: Allow Self to appear in the where clause of trait impls.
RFC 1414: Add Rvalue-static-promotion.
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:
[crates.io] What categories should be available on crates.io?
Abort by default v2. Specify abort-by-default in Cargo.toml when the user does cargo new --bin, as well as various other refinements to the panick strategy system.
Allow uncallable method impls to be omitted.
Macros by example 2.0. A replacement for macro_rules!.
Add syntax for expressing tuples as a head and tail pair, similar to a Lisp cons cell.
Allow coercing non-capturing closures to function pointers.
New RFCs
'fn lifetime ascription. Add a 'fn lifetime that is bound to the scope of the body of the current innermost function or closure.
Remove static bound from type_id.
From<&[T]> for Rc<[T]> + From<&str> for Rc<str>.
Style RFCs
Style RFCs are part of the process for deciding on style guidelines for the Rust community and defaults for Rustfmt. The process is similar to the RFC process, but we try to reach rough consensus on issues (including a final comment period) before progressing to PRs. Just like the RFC process, all users are welcome to comment and submit RFCs. If you want to help decide what Rust code should look like, come get involved!
Ready for PR:
There's a lot of them right now, contributions here would be very welcome. If you want advice or help getting started, please ping nrc, or any other member of the style team, in #rust-style.
Issues in final comment period:
Whitespace in associated type syntax.
Against braces always demanding rightward drift.
Disable trailing comma by default.
Conventions for Cargo.toml files (FCP).
function declarations.
Customisation of Rustfmt should be allowed.
Upcoming Events
1/12. Rust Utrecht.
1/12. Rust release triage.
1/18. Rust Cologne: Ruby meets Rust.
1/18. Rust LA Monthly Meetup - Hack Night.
1/18. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
1/18. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
1/19. Rust Paris: Rust meetup #35.
1/19. GPU enhanced terminals, Counting Votes, and Converting C to Rust.
1/20. Rust Rhein-Main: Rust Table of Regulars Darmstadt.
1/24. Mozilla Meetup Switzerland: Rust January Meetup @ Coredump.ch.
1/25. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
1/25. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
1/25. OpenTechSchool Berlin: Rust Hack and Learn.
1/26. Rust Stockholm: REST in Rust and Rust Hack Night.
1/26. Rust release triage.
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.
fn work(on: RustProject) -> Money
Senior backend developer at OneSignal.
Rust backend developer at 1aim.com.
Rust systems programmer at Hadean.
Tweet us at @ThisWeekInRust to get your job offers listed here!
Quote of the Week
This is the first version to have Rust code in it. The public API
remains unchanged. Apologies in advance to distros who will have to
adjust their build systems for Rust - it's like taking a one-time
vaccine; you'll be better off in the end for it.
— Federico Mena Quintero announcing librsvg 2.41.0.
Thanks to Zbigniew Siciarz for the suggestion.
Submit your quotes for next week!
This Week in Rust is edited by: nasa42, llogiq, and brson.