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 an email! 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.
This week's edition was edited by: Vikrant and llogiq.
Updates from Rust Community
News & Blog Posts
- Introducing Helix. Rust + Ruby, without the glue.
- Taking Rust everywhere with rustup. Push-button cross-compilation with rustup.
- Non-lexical lifetimes: Adding the outlives relation.
- Deep Learning in Rust: a walk in the park
- Rust for Node.js developers - Part 1 - Introduction to Rust.
- Writing documentation in Rust.
- Fancy Rust development with Emacs.
- Quick check: does your code work? Using QuickCheck to do property based testing.
- Autoconf for Rust projects.
- This week in Servo 62.
- This week in Rust docs 3.
- This week in intermezzOS 1. intermezzOS is a learning operating system with a companion book, written in Rust.
- [video] Ferris makes emulators: Episode 8. Live stream of Ferris developing a N64 emulator in Rust (also on Twitch).
New Crates & Project Updates
- Announcing RustFest Berlin 2016 (17-18 September 2016).
- hydrogen. Multithreaded, non-blocking Linux server framework in Rust.
- cargo-profiler. Cargo subcommand to profile binaries.
- cargo clippy subcommand for convenient production of annoying warnings.
- rfmt. Rust source code formatter.
- RustDT 0.6.0 is out with improved build target support and experimental auto-check.
Crate of the Week
This week's Crate of the Week is cargo-profiler, which lets us profile our code directly from cargo using a variety of tools, notably valgrind's callgrind and cachegrind. Thanks to kbknapp for the suggestion!
Submit your suggestions 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.
- [easy] rust: Participate in 2016 State of Rust Survey.
- [easy] redox: Participate in Redox Survey.
- [easy] clippy: Participate in Rust Clippy Survey.
- [easy] rust: Add error explanations for all error codes.
- [medium] rustup: Make
rustup default x86_64-unknown-linux-gnu
do something smarter. - [easy] servo: Remove
--no-ssl
option.
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from Rust Core
132 pull requests were merged in the last two weeks.
- custom panic runtimes (finally implements RFC #1513 – embedded Rust users rejoice!)
- cache ast-ty-to-ty again
- AtomicBools are now 8 bits wide (used to surprisingly be one ptr wide)
- reduce LLVM IR bloat in simple switches for large enums
- reduce LLVM IR bloat on CFG simplification
- split the type context into a local/global one for some memory savings
- MIR: CFG block merging
- MIR: allow mutable slicing of arbitrarily long arrays
- MIR: Prettier MIR pretty printing
- more MIR blockers fixed
- save-analysis format changes
- correct temp drop scheduling order
- don't use
env::current_exe
with libbacktrace - Better derived impls for large (mostly) C-like enums
- std::sync::OnceState now public (though unstable)
- normalize trait refs before use
- const_eval can now cast byte slices to bare ptrs
- earlier name resolution
- allow repr attribute on single variant enum
- `impl (Partial)Ord for Cell
+RefCell where T: (Partial)Ord std::process::ExitStatus::from_raw(_)
- integer atomic types
- fix gdb pretty printing
- the playpen now uses the new error format
- rustdoc no longer skips blanket impls
- make lifetime error reporting less confusing
- There were a lot of documentaion improvements, too numerous to mention each.
New Contributors
- billyevans
- bnewbold
- Brian Green
- Cristian Oliveira
- Dan Fockler
- Geordon Worley
- Haiko Schol
- mrmiywj
- Pavel Sountsov
- silvo38
- Stefan Schindler
- Steven Burns
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 1358: Add
#[repr(align = "N")]
. - RFC 1492: Permit the
..
pattern fragment in more contexts. - Amendment to RFC 1214: All but the last field of a tuple must be Sized.
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:
No RFCs are currently in final comment period.
New RFCs
Upcoming Events
- 5/17. Moscow Rust Conference.
- 5/18. Rust Meetup Taipei #2.
- 5/18. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- 5/18. Rust Berlin: Rust 1.0 Anniversary Meetup.
- 5/24. Rust Brisbane Meetup #1.
- 5/24. Rust Barcelona - Cross compiling for ARM linux targets + accessing the GPIO in a Raspberry Pi.
- 5/25. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- 5/25. Boston Rust Meetup w/ Steve Klabnik and Andrew Gallant.
- 5/26. Rust DC - Inaugural Meetup.
If you are running a Rust event please add it to the calendar to get it mentioned here. Email Erick Tryzelaar or Brian Anderson for access.
fn work(on: RustProject) -> Money
No jobs listed for this week.
Tweet us at @ThisWeekInRust to get your job offers listed here!
Quote of the Week
No quote was selected for QotW.