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? Send me an email! Want to get involved? We love contributions.
This Week in Rust is openly developed on GitHub. If you find any errors or omissions in this week's issue, please submit a PR.
What's cooking on master?
123 pull requests were merged in the last week, and 4 RFC PRs.
Now you can follow breaking changes as they happen!
Breaking Changes
- Rename
should_fail
toshould_panic
. - Implement arithmetic overflow changes.
- Audit
core::num
module forint
/uint
. - Feature gate
static_assert
.
Other Changes
- Implement stdio for
std::io
. - Debugging code inlined from the standard library should work correctly.
- Stabilize portions of the
io
module. - Stabilize the
process
module. - Stabilize the
ffi
module. - The Grand Metadata Reform. lifthrasiir reduces binary sizes by 27% by improving metadata encoding.
- Make
#[derive(Anything)]
desugar to#[derive_Anything]
. Feature-gated.
New Contributors
- Alan Cutter
- Amol Mundayoor
- awlnx
- Camille TJHOA
- Chloe
- Daniel Lobato García
- David King
- Eric Platon
- Ivan Radanov Ivanov
- Łukasz Niemier
- Matt Cox
- Paul Osborne
- Pyry Kontio
Approved RFCs
- RFC 495: Array pattern adjustments.
- RFC 574: Replace Vec::drain by a method that accepts a range parameter.
- RFC 640: Debug improvements.
New RFCs
- Tweaks to std::net address types.
- Relax the ExactSizeIterator trait.
- Extract math from Float trait.
- Split the Copy trait into two traits.
if let
multiple patterns.- The
{:?}
format specifier should not print values in release builds. - Disallow hyphens in crate names.
- Macro escape char.
- Retire RFC 8 (intrinsics) without implementing.
- Add a newtype keyword.
- Ammend I/O reform RFC to address issues with flush.
- Don't allow numeric types with fallback in varargs position.
- Overloaded compound assingment.
- Specify that bool is compatible with _Bool.
- Statementize looping forms.
- Unsafe comparison traits.
Friend of the Tree
The Rust Team likes to occassionally recognize people who have made outstanding contributions to The Rust Project, its ecosystem, and its community. These people are 'friends of the tree'.
This week's friend of the tree was ... Manish Goregaokar!
Manish started working on Servo as part of the GSoC program in 2014, where he implemented XMLHttpRequest. Since then he's become in integral part of the Servo team while finishing his university studies and organizing Rust community events. In 2015 he took an interest in bors' queue and started making rollup PRs to accelerate the integration process. Nursing the PR queue is the kind of time-consuming labor that creates friends of the tree like Manish, the rollup friend of the tree.
Notable Links
- Weekly-meetings/2015-03-03. fott, filling drop, type ascription.
- Starting off in Rust: Trying to write a shell.
- When should my type be Copy?.
- Optimizing by default.
- Completing rustfmt and the Rust style guidelines. A call to arms.
- Mozilla rejected for Google Summer of Code 2015.
- Getting aquainted with MIO. mio is the unix async I/O library by Carl Lerche.
- MaidSafe discusses Rust vs. C++. Security-minded projects are eyeing us intently.
- Shrinking Rust Distribution for Fun and Profit.
- Rust, Travis, and GitHub Pages. Some advice on administering Rust projects.
- Mozilla Research is hiring.
- Rust homepage over time. More nostalgia.
Project Updates
- cargo-build. Compile to JS with Emscripten.
- rust-snake, emscripten, and WebGL. rust-snake is built on Piston, and it runs on the web.
- Device abstraction in gfx-rs. gfx-rs was recently rearchitected to support more graphics backends than just OpenGL.
- gstreamer1.0-rs. Bindings to GStreamer.
- rust-pcre. Recently updated but needs a maintainer.
- synth. A polyphonic Synth type whose multiple oscillators generate sound via amplitude and frequency envelopes, implemented in Rust.
- pcg. A Rust implementation of the PCG PRNG.
- rust-quicklook. An OS X QuickLook plugin for Rust source files.
- marching-squares. A demo of noise-rs plus rustbox.
- This Week in Servo 26.
- Benchmark: Rust/nom VS Haskell/attoparsec VS C/hammer. TL;DR the nom parser combinator is very fast.
- tessel. A modular hardware prototyping board that will support Rust.
- fdringbuf-rs. Ringbuffer with fd signalling - fast IPC without memory copies.
- ecr-rs: (Ab)using macros to get rid of unsafe code and reduce runtime checks.
- Binary Turk. A chess engine.
- rusty-tags. create ctags/etags for Cargo projects.
- podio. Write integers and floats in the specified endianness.
- rust-tcl. Embed TCL in Rust.
- oyashio. Single-producer, multiple-consumer channels, built with rust-promise.
- spinlock.rs. A spinlock!
Upcoming Events
- 3/16. Rust Paris
- 3/18. Copenhagen Tech Polyglot Meetup
- The Bay Area meetup for March has been cancelled due to scheduling difficulties.
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.
Quote of the Week
"Fear not, this is Rust, not some scruffy loosely-typed, garbage-collected, non-blocking language!"
Andrew Hobden, on getting acquainted with mio.
Thanks to Johan Sigfrids for the tip. Submit your quotes for next week!.