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
News & Blog Posts
- The Rust Herald has been in testing for a while and after fixing some bugs, is now ready for general use. The Herald is meant for small news snippets: your new crate, a meetup announcement, or some short thoughts on a subject. All posts will be shared through RSS and Twitter.
- Announcing the “impl period”, Sep 18 - Dec 17.
- Revisiting Rust’s modules. (Discuss here).
- Announcing the
http
crate. - IntelliJ Rust plugin is now officially supported by JetBrains.
- All contain-rs crates are now in maintenance-mode.
- Implementing a bot for Slack in Rust, Rocket and Anterofit - Part 1.
- Grokking Diesel ORM.
- Parsing NES ROM Headers with nom.
- cortex-m-rtfm v2: simpler, less overhead and more device support.
- Writing GStreamer applications in Rust.
- Rust: Not so great for codec implementing.
- This week in Rust docs 66.
- This week in Redox 27.
Crate of the Week
This week's crate is tarpaulin, a crate to collect test coverage of your Rust code. Thanks to Colin Kiegel for the suggestion.
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.
- Call for Proposals is open for Rust Belt Rust 2017 until 7 August.
- Get in the swing with the libz blitz contest: Win free tickets to RustFest Zürich.
- [less easy] bindgen: Emitting or deriving trait implementations.
- [less easy] bindgen: Emit a "manual" implementation of Debug when it cannot be derived.
- [less easy] bindgen: Derive Hash when we can.
- [less easy] bindgen: "manually" implement Hash when it cannot be derived.
- [less easy] bindgen: "manually" implement PartialEq when it cannot be derived.
- [less easy] bindgen: Derive
Eq
when possible. - [less easy] bindgen: "manually" implement Eq when we cannot derive it.
- [less easy] bindgen: Derive PartialOrd when possible.
- [less easy] bindgen: "manually" implement PartialOrd when we cannot derive it.
- [less easy] bindgen: Derive Ord when possible.
- [less easy] bindgen: "manually" implement Ord when we cannot derive it.
- [doc] same-file: Note why
Handle
methods inwin
won't panic.same-file
is a cross platform Rust library for checking whether two file paths are the same file. - [easy] same-file: Add
html_root
attribute. - [doc] same-file: Note that
dev
andino
methods are unix only. - [doc] same-file: Note why
Handle
methods inunix
won't panic. - [doc] same-file: Clarify Approach to comparing files in docs.
- walkdir: Implement
Clone
forWalkDir
. Walkdir is a Rust library for walking directories recursively. - [doc] rust-ffi-guide: Make the book more consistent.
- [easy] ggez: Input doesn't work on mac using tmux and iterm2. ggez is a Rust library to create good games easily.
- [easy] ggez: SDL controller input doesn't work.
- [doc] ggez: Finish full building-and-install docs for each platform.
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from Rust Core
146 pull requests were merged in the last week
- 1.20 stabilizations
- Better diagnostics and recovery for
mut ref
in patterns - Point at path segment on module not found
- proc macros keep more span information
- simplify syntax path parsing
- no more
-Z
in stable--help
(the option was removed from stable in 1.19.0) - fix
-Z verbose
region printing - save subobligations in projection cache
- Improve checking of conflicting packed and align representation hints on structs and unions
- ARM hard-float supports homogeneous aggregates
- rustdoc: link
[src]
of associatedfn
s inimpl
s - rustdoc: print associated types in traits "implementors" section
- rustdoc: add unions to whitelist of sidebar types
- cargo now applies
--all
on virtual workspaces
New Contributors
- Daiki Mizukami
- Danek Duvall
- Isaac van Bakel
- Joshua Liebow-Feeser
- MaulingMonkey
- Richard Dodd
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 2027: Tweak object safety rules to allow static dispatch.
- RFC 2057: Add replace and swap functions to RefCell.
- "Guide-level" and "Reference-level" explanations to replace how we teach and detailed design sections.
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:
- [disposition: merge] Generic associated types (associated type constructors).
- [disposition: merge] Unsafe pointer methods.
- [disposition: merge] Allow an optional vert at the beginning of a match branch.
- [disposition: postpone] Eager expansion of macros.
- [disposition: merge] Future-proofing enums/structs with
#[non_exhaustive]
attribute. - [disposition: merge] Enable nested method calls.
New RFCs
- Automatically usable external crates.
- Implied bounds.
- Semantic inlining (another try to the unwrap/expect line info problem).
- Allow Irrefutable Patterns in if-let and while-let statements.
- Warning on tautology in if or while statements.
- Add
std::net::MacAddr48
tostd::net
.
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!
The RFC style is now the default style in Rustfmt - try it out and let us know what you think!
Currently being discussed:
Upcoming Events
- Aug 7. Rust Belt Rust 2017 CFP deadline.
- Aug 9. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- Aug 9. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
- Aug 9. OpenTechSchool Berlin - Rust Hack and Learn.
- Aug 10. Rust release triage.
- Aug 10. Columbus Rust Society - Monthly meetup.
- Aug 14. Seattle Rust Meetup.
- Aug 16. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- Aug 16. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
- Aug 18-19. RustConf 2017.
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.
Rust Jobs
Tweet us at @ThisWeekInRust to get your job offers listed here!
Quote of the Week
No quote was selected for QotW.