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.
Updates from Rust Community
- A quantum leap for the web. Project Quantum is an effort to develop Mozilla’s next-generation web engine, with a number of its components written in Rust.
- Corrode update: support from Mozilla, and new features. Corrode is a C to Rust translator.
- Librsvg gets Rusty. Part of The GNOME Project, librsvg is a library to render SVG files using cairo.
- Porting a few C functions to Rust. Follow-up to Librsvg gets Rusty.
- Thoughts on DX: GNOME and Rust. Alberto Ruiz on embracing Rust in GNOME libraries.
- Builder Rust. GNOME Builder IDE now supports Rust via Rust Language Service.
- Exploring possible alternative compiler backend: Cretonne.
- Rewinding time with rr & Rust to debug a terrible error message.
- Elysian: Behind the scenes. Elysian is a demo written in Rust that generates a full audiovisual presentation, realtime, with zero external media files. Watch the video here.
- A game in Rust. Developing Ruga, a video game made in Rust.
- WebVR coming to Servo: Part 1.
- Text analysis in Rust - Tokenization.
- Hacking on the Rust language — error messages. Short guide on getting started working on Rust compiler — example of adding a previously missing error code explanation.
- Creating a Dalvik parser in Rust (Part 1). First part of a series of articles describing how SUPER is building an Android Dalvik executable file parser.
- Team JaM in Systems Wonderland. Jeena Lee and Malisa Smith talk about their summer of hacking on Servo and learning Rust as beginners.
News & Project Updates
- Happy Halloween from Ferris! . (Credit: carols10cents & kibwen).
- The community team is hosting a hybrid hack event on November 19th/20th centered around the African/European time zones. If you are interested in participating, or supplying topics to work on, please head to the novemb.rs website.
- Spectral fluent assertions 0.5.0 released.
Other Weeklies from Rust Community
- This week in Rust docs 28. Updates from the Rust documentation team.
- This week in TiKV 2016-10-31. TiKV is a distributed Key-Value database.
- app_dirs. Put your app's data in the right place on every platform.
- Spongedown converts markdown to html with support for svgbob diagrams.
- loc. A tool for counting lines of code. It's a Rust implementation of cloc, but it's more than 100x faster.
- cargo-update. A cargo subcommand for checking and applying updates to installed executables.
- rustbreak - a daybreak inspired self-contained file database.
Crate of the Week
- This week's Crate of the Week is app_dirs. app_dirs lets you put your app's data in the right place on every platform.
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] git-series: Highlight trailing whitespace.
- [easy] git-series: Support rebase --exec.
- [easy] rust: incr.comp.: Create Test Case for Incr. Comp. Hash for unary and binary expressions.
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from Rust Core
88 pull requests were merged in the last week.
- Add Fuchsia support.
- Add ArrayVec and AccumulateVec to reduce heap allocations during interning of slices.
- Deprecate no_debug and custom_derive.
- Disallow Unsized Enums.
Selfin struct expressions and patterns.
- Make sufficiently old or low-impact compatibility lints deny-by-default.
- Small improvement to SipHasher.
- Avoid more allocations when compiling html5ever.
- libc: Enable musl with aarch64.
- rustc_typeck: Allow reification from fn item to unsafe ptr.
- Disable jemalloc on aarch64/powerpc.
- Replace all uses of SHA-256 with BLAKE2b.
- Shrink Expr_::ExprInlineAsm.
- Bunts Thy Unholy
- Federico Mena Quintero
- Konrad Borowski
- Pieter Frenssen
- Vadzim Dambrouski
- Zoffix Znet
Changes to Rust follow the Rust RFC (request for comments) process. These are the RFCs that were approved for implementation this week:
Final Comment Period
- Warn by default when casting a pointer to an integer smaller than usize.
- Add Cargo post-build scripts.
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!
Issue 17 (comments) is ready for a PR, we'd love someone to help out with that, if you're interested ping someone in #rust-style.
Final comment period:
New P-high issues:
- 11/3. Rust release triage.
- 11/5. Servo / Rust Hackathon.
- 11/8. Introduction to Rust Programming Language, Manila PH.
- 11/9. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- 11/9. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
- 11/9. Rust Boulder/Denver Monthly Meeting.
- 11/10. Columbus Rust Society.
- 11/14. Seattle Rust Meetup.
fn work(on: RustProject) -> Money
Tweet us at @ThisWeekInRust to get your job offers listed here!
Quote of the Week
Every once in a while someone discovers a bug in librsvg that makes it all the way to a CVE security advisory. We've gotten double free()s, wrong casts, and out-of-bounds memory accesses. Recently someone did fuzz-testing with some really pathological SVGs, and found interesting explosions in the library. That's the kind of 1970s bullshit that Rust prevents.
Thanks to /u/robinst and /u/cjstevenson1 for the suggestion.