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
- OneSignal now sends iOS push notifications 100x faster. Using Rust of course!
- String types in Rust. Andrew explains the difference between
String
,str
,OsStr
,OsString
,CStr
, andCString
. - Installing Rust on Windows.
- Async hyper. Asynchronous IO is coming in hyper.
- Exploring Rust from a C# developer's perspective.
- Linear Algebra written entirely in Rust.
- Rust mutation testing.
- This week in Servo 56.
- These weeks in Amethyst 8.
Notable New Crates & Project Updates
- Erick Tryzelaar joins the core team!
- Jonathan Turner joins Mozilla’s Rust team!
- GFX now supports D3D11 (DX11) as a backend.
- Parity (an Ethereum client in Rust) has released v1.0.
- BitSparrow. Binary serializer to exchange data between Rust and JavaScript.
- Emit. An experimental structured event emitter for Rust.
- Gracer. A Rust code completion plugin for gedit.
- untry. Convert
try!()
into?
s. - cargo-deadlinks. Cargo subcommand for checking your documentation for broken links.
- screenprints. Screenprints acts as a buffer for terminal display continuously printing output at a configured interval.
Crate of the Week
This week's Crate of the Week is gfx, a crate to show stuff on a screen on most available platforms that have one. Thanks to Dzmitry Malyshau 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.
- [medium] buildengine5: Test
net::test::client_server_send
fails. - [less easy] Vulkano: Add a memory pool.
- [easy] Servo: Implement
HTMLScriptElement.type
and similar attributes. - [easy] Servo: Stop re-exporting webrender_traits WebGL types from canvas_traits.
- [less easy] Servo: Using viewport percentage lengths (e.g. vh, vw) causes unnecessary style recalc on resize.
- [easy] Servo: Enable CCACHE for AppVeyor Windows builds.
- [easy]
cargo add
: Target specifications.
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
+=
forstd::time
types- Fix byte order for IPv6 addresses
- Scopes in MIR
- Naked functions
try!(_)
→_?
in the codeRange*::contains(_)
- Poisoning for
Once
- UNIX sockets in
std
- Symbol name improvements
- Lang items must be unique
- removed warnings is now a lint
encode_utf{8,16}(_)
return iterators- Consts in
match
must beEq
- MIR can analyze moves
- Un-hack name resolution for primitive types
- typeck: O(n) → O(1) for equal types
- Most core types are now
Debug
- Forbid out-of-scope trait's methods
New Contributors
- Alejandro Wainzinger
- Andrew Horton
- Cyryl Płotnicki-Chudyk
- David Henningsson
- ituxbag
- Kevin Brothaler
- nicholasf
- Novotnik, Petr
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 1201: Add support for naked functions.
- RFC 1422: Expand the current pub/non-pub categorization of items with the ability to say "make this item visible solely to a (named) module tree".
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:
- Add a contains method to VecDeque and LinkedList.
- Add libutil to scope of libc crate on Linux.
- Stabilize implementing panics as aborts.
- Add a standard allocator interface and support for user-defined allocators.
- Remove some kinds of doc comments.
- Unsafe expressions.
- Prevent unstable items from causing name resolution conflicts with downstream code.
- Amend RFC 1228 with operator fixity and precedence.
New RFCs
Upcoming Events
- 3/31. Tokyo Rust Meetup #4.
- 4/6. OpenTechSchool Berlin: Rust Hack and Learn.
- 4/6. Germany/Cologne - Hack and Learn.
- 4/6. Rust São Paulo Meetup.
- 4/11. Seattle Rust Meetup.
- 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
No quote was selected for QotW.