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.
This Week in Rust is openly developed on GitHub. If you find any errors in this week's issue, please submit a PR.
Updates from Rust Community
Blog Posts
- Making terminal applications in Rust with Termion.
- Optimising string processing in Rust.
- Bare minimum crates.io mirror plus one. Setting up & using download-API mirror of crates.io and registry index mirror of crates.io-index.
- The arduous journey of porting C to Rust.
- IntelliJ/Rust are fast becoming buddies.
- Using
mem::replace
to keep owned values in changed enums. - How to teach X to people who've never learned X.
- Using Rust for webdev as a hobby programmer.
- Rust and Automake.
- Type-Safe Unions in C++ and Rust.
- Servo: Wrapping up Google Summer of Code 2016.
- [videos] RustConf 2016 - YouTube Playlist.
- [discussion] Tricky corner cases in design of Rust programming language.
News & Project Updates
- GDB 7.12 is released with Rust debugging support.
- CodeLLDB: a LLDB front end for Visual Studio Code - now supports Rust debugging.
- Diesel 0.8.0 is released with diesel_codegen rewritten to use the Macros 1.1 framework.
- rustup is now available in
Community
repo of Arch Linux. - Macros (and syntax extensions and compiler plugins) - where are we at?
- imag pre-1.0.0 release strategy.
Other Weeklies from Rust Community
- This week in Servo 80. Servo is a prototype web browser engine written in Rust.
- This week in Rust docs 25. Updates from the Rust documentation team.
- This week in Ruma 2016-10-09. Ruma is a Matrix homeserver written in Rust.
- This week in Tock OS 6. Tock is a safe, multitasking operating system for low-power, low-memory microcontrollers.
- This week in Ruru 2. Ruru lets you write native Ruby extensions in Rust.
- What's coming up in imag (17). imag is a text based personal information management suite.
New Crates
- SvgBobRus. Convert your ASCII diagram scribbles into happy little SVG.
- Curryrs. A library for providing easy to use bindings between Rust and Haskell code.
- NetBricks. A new network function framework based on Rust.
- F3. A crate to play with STM32F3DISCOVERY development board with a Cortex-M4 microcontroller.
- derivative: A set of attribute-enhanced
#[derive]
for built-in traits using Macro 1.1.
Crate of the Week
No crate was selected for CotW.
Submit your suggestions and votes 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: tidy script no longer checks lang features.
- [easy] Servo: Stylo: Implement font-kerning.
- [hard] rust: Optimize emscripten targets with emcc.
- [hard] rust: Tell emscripten to remove exception handling code when the panic runtime is used.
- [moderate] super: Coloring errors in the console.
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from Rust Core
135 pull requests were merged in the last week.
- std: Stabilize and deprecate APIs for 1.13.
- Add ThreadId for comparing threads.
- Add support for per-target rustflags in
.cargo/config
. - Speed up
plug_leaks
. - Cargo: Add
--message-format
flag. - Add Thumbs target definitions to the compiler.
- rustc: Rename
rustc_macro
toproc_macro
. - Clarify HashMap's capacity handling.
- Enforce the shadowing restrictions from RFC 1560 for today's macros.
- Restrict where in the tree platform-specific cfgs may be mentioned.
- Improve error message and snippet for "did you mean
x
". - Cargo: Warn about path overrides that won't work.
- Refactoring/bugfixing around definitions for struct/variant constructors.
- std: Correct stability attributes for some implementations.
New Contributors
- Anthony Ramine
- Christopher
- Eric Roshan-Eisner
- Florian Diebold
- KillTheMule
- Mathieu Borderé
- Nick Stevens
- p512
- Razican
- Stephen M. Coakley
- 石博文
Approved RFCs
Changes to Rust follow the Rust RFC (request for comments) process. These are the RFCs that were approved for implementation this week:
No RFCs were approved this week.
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:
- Propose a shorthand syntax for constructing struct-like values with named fields.
- Let a
loop { ... }
expression return a value viabreak my_value;
.
New RFCs
- Extend entry API to work on borrowed keys.
- Abort by default v2. Specify abort-by-default in
Cargo.toml
when the user doescargo new --bin
, as well as various other refinements to the panick strategy system.
Style RFCs
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!
FCP issues:
Other issues getting a lot of discussion:
No PRs this week.
Upcoming Events
- 10/13. Rust Orange County Inaugural Meetup.
- 10/13. Columbus Rust Society.
- 10/15. South Florida Rust Meetup.
- 10/18. London Rust User Group Meetup #9.
- 10/19. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- 10/19. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
- 10/20. Rust release triage.
- 10/27 and 10/28 Rust Belt Rust in Pittsburgh, US. Tickets still available.
If you are running a Rust event please add it to the calendar to get it mentioned here. Email the Rust Community Team for access.
fn work(on: RustProject) -> Money
No jobs listed for this week.
Tweet us at @ThisWeekInRust to get your job offers listed here!
Friends of the Forest
Our community likes to recognize people who have made outstanding contributions to the Rust Project, its ecosystem, and its community. These people are 'friends of the forest'.
This week's friends of the forest are:
- From jimmycuadra:
dtolnay for outstanding work on Serde, taking it from a great library into an outstanding library, improving documentation significantly, being on top of the macros 1.1 transition, and even developing a new high level library for making custom derive under macros 1.1 easier to work with.
sgrif for outstanding work on Diesel, an ORM that will change the game for ORMs, and for being incredibly helpful and friendly with early adopters.
- From Mark_Simulacrum:
njn (on IRC) or nnethercote1 on GitHub for outstanding work on compiler perf. They've removed an allocation during HashSet creation, made TypedArena lazily allocate the first chunk, and more. They also have helped with adding a benchmarking script to compare two different compiler versions against the benchmarks in http://perf.rust-lang.org, which helps future work in this area.
- From nmatsakis:
I nominate TimNN for Friend of the Forest for his repeated and invaluable work minimizing and bisecting (example). Keep up the good work!
- From dzamlo:
I'd like to nominate BurntSushi for Friend of the Forest. I think the multiples crates he contributed are both important and high quality. In addition to his code contributions to the ecosystem, he also did some good and informative write up about some of them.
- From pmarcelll:
I'd like to nominate GuillaumeGomez for the "Rust documentation superhero" title as well.
Submit your Friends-of-the-Forest nominations for next week!
Quote of the Week
< Celti> I just had a recruiter contact me for a Rust job requiring 3+ years of professional experience with it.
— From #rust.
Thanks to bluss for the suggestion.