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
- [discussion] What, in your opinion is the worst thing about Rust?.
- The epic story of Dropbox’s exodus from the amazon cloud empire (feat. Rust).
- Servo is going to have an alpha release in June: Servo + browser.html.
- Learn you a Rust II - references and borrowing.
- Mozilla looks towards the IoT for Rust.
- Working with C unions in Rust FFI.
- [pdf] Fuzzing the Rust typechecker using CLP.
- This week in Servo 55.
Notable New Crates & Project Updates
- Gtk-rs released 0.0.7 with major changes.
- RustType 0.2 - Now with dynamic GPU font caching.
- libs.rs. A catalogue of Rust community's awesomeness.
- dryad.so.1 - an experimental x86-64 ELF dynamic linker, written entirely in Rust (and some asm)
- Termion (previously called libterm) now supports 256 colour mode, asynchronous key events, special key events, and password input.
Summer of Code Projects
Hi students! Looking for an awesome summer project in Rust? Look no further! Chris Holcombe from Canonical is an experienced Google Summer of Code mentor and has a project to implement CephX protocol decoding. Check it out here.
Servo is also accepting GoSC project submissions under the Mozilla banner. See if any of the project ideas appeal to you and read the advice for applications.
Servo also has a project in Rails Girls Summer of Code. nom is also participating.
Crate of the Week
This week's Crate of the Week is tempfile, a crate that does exactly what it says on the tin. Thanks to Steven Allen 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: OsString could implement the Default trait.
- [easy] Rust: Backtrace contains function names with MIR, but not on MSVC.
- [less easy] Servo: Write a tool that reports unnecessary crate dependencies.
- [easy] Servo/Saltfs: Trim down the symlinks to ARM cross-compilation binaries.
- [easy]
cargo add
: Target specifications. - [easy]
cargo list
: More tests. - [easy/mentored]
multipart
: create sample projects
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from Rust Core
103 pull requests were merged in the last week.
Notable changes
- RFC 1210 impl specialization has landed! Yay!
- MIR is now able to bootstrap itself...into orbit!
- typestrong const integers (breaking change)
- Fast floating point algebra
- #derive now uses intrinsics::unreachable
- *Map-Entries now have a
.key()
method - Rustc platform intrinsics went on a slimming diet
rustc --test -q
: Shorter test output- LLVM assertions disabled on ARM to workaround codegen bug
- Another LLVM update
- Fix an ICE in region inference
- No *into_ascii methods after all (destabilized and removed because of inference regression)
- Warn, not err on inherent overlaps (for now, this will become an error in later versions)
- coercions don't kill rustc anymore
- const_eval now correctly handles right shifts
- Fix overflow when subtracting Instant
New Contributors
- Daniel J Rollins
- pravic
- Stu Black
- tiehuis
- Todd Lucas
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 1479: Unix socket support in the standard library.
- RFC 1498: Add octet-oriented interface to
std::net::Ipv6Addr
. - RFC 1434: Implement a method,
contains()
, forRange
,RangeFrom
, andRangeTo
, checking if a number is in the range.. - RFC 1432: Add a
replace_slice
method toVec<T>
andString
which removes a range of elements, and replaces it in place with a given sequence of values.
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:
- Unsafe expressions.
- Prevent unstable items from causing name resolution conflicts with downstream code.
- Add support for naked functions.
- Expand the current pub/non-pub categorization of items with the ability to say "make this item visible solely to a (named) module tree".
New RFCs
- Allow fields in traits that map to lvalues in
impl
'ing type. as_millis
function onstd::time::Duration
.- Add
global_asm!
for module-level inline assembly.
Upcoming Events
- 3/22. Bay Area Rust: Rust, Data, and Science.
- 3/23. OpenTechSchool Berlin: Rust Hack and Learn.
- 3/31. Tokyo Rust Meetup #4.
- 4/15. Frankfurt/Main Rust Lint Workshop
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
- PhD and postdoc positions at MPI-SWS.
- Rust developer at The Blackbird.
Tweet us at @ThisWeekInRust to get your job offers listed here!
Quote of the Week
<phaazon> ok <phaazon> and what trait is from from? <jix> From :D <phaazon> ok :D <phaazon> so from is from From <phaazon> nice!
Thanks to Thomas Winwood for the suggestion.