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
- Announcing the Increasing Rust's Reach project.
- Recapping this week’s Mozilla all-hands.
- Building a container runtime in Rust.
- A Rusty tale of shared memories and passed messages.
- [pdf] Writing parsers like it is 2017. Writing memory-safe parsers using Rust.
- PROST! - A Protocol Buffers implementation for the Rust language.
- Integrating Rocket and Elm with Brunch.
- The new TRust-DNS Resolver, quick overview of the new 100% Rust and Tokio based Resolver.
- DLL hooking in Rust. Rust code to show how hooking in rust with a dll works.
- This week in Rust docs 62.
- [podcast] Request for explanation #1 - Constermash.
- [podcast] New Rustacean - crates you should know: Rocket. An accessible, well-designed web framework in Rust!
- [video] Bootstrapping embedded development in Rust by James Munns.
Crate of the Week
This week's crate is cargo-make, a crate that helps you automate your build workflow beyond what cargo already offers. Thanks to Sagie Gur Ari 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 RustFest Zürich.
- rust-api-guidelines: Mention HashMap::insert and HashSet::insert under c-intermediate.
- rust-api-guidelines: Provide easier navigation/multipage structure.
- PumpkinDB: "builtins" files don't allow for computed constants.
- PumpkinDB: different users would use different naming conventions.
- PumpkinDB: numerous mio deprecation notices.
- PumpkinDB: lack of synchronization primitives.
- PumpkinDB: non-trivial to detect if JSON's value is an integer or a float.
- PumpkinDB: integer constants in builtins get interpreted as instructions.
- rustup: Fix 'show' displaying UNC paths on windows.
- walkdir: Add Error docs to methods that return Result.
- walkdir: Link references to std in docs.
- walkdir: Correct errors in WalkDir type docs.
- walkdir: Document that
Iter
andIterFilterEntry
are the result of trait methods. - walkdir: Add links to other walkdir items in WalkDirIterator docs.
- [easy] rust-bindgen: Default to generating constified enums, rather than generating Rust enums.
- [less-easy] rust-bindgen: Rewrite
is_unsized
as either a graph traversal or fix-point analysis. - [less-easy] rust-bindgen: Rewrite
can_derive_debug
as either a graph traversal or fix-point analysis. - [less-easy] rust-bindgen: Rewrite
can_derive_copy[_in_array]
as either a graph traversal or fix-point analysis.
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from Rust Core
109 pull requests were merged in the last week
- 1.19 stabilizations
- stabilize
sort_unstable
- stabilize some IO
into_inner()
methods - update LLVM to 4.0.1
- LLVM code now contains demangled
fn
names as comments (hooray for readability!) - fix windows32 stack probes
- split signatures off function items (plugin-breaking change)
- issue lint-by-default/by-setting notes only once per lint (yay for reduced clutter!)
- MIR dataflow (another step to MIR-borrowck)
$crate
is a keyword- fix
alloc::alloc_one
- activate jemalloc fill
- speed up
slice::rotate
(same trick asmem::swap
) iterator::for_each
(faster than afor
loop for complex iterators)- detect missing
;
on unit-returning methods (huzzah for better error messages!) - report the total number of errors on compilation failure (about time)
- coerce fields to the correct type
- don't hash single-variant enum discriminant
- correct sign handling for NaNs
#[allow_fail]
attributes for tests that run, but may fail- cargo now infers multi-file binaries by convention
- cargo can now install specific versions
- crates.io now allows multiple API tokens per user
- crates.io images are now SVG
New Contributors
- Lee Bousfield
- Milton Mazzarri
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 1857: Stabilize drop order.
- RFC 1985: Tiered browser support policy for Rust's web content.
- RFC 1758: Specify
#[repr(transparent)]
. - RFC 1789: Conversions from
&mut T
to&Cell<T>
.
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] Experimentally add coroutines to Rust.
- [disposition: merge] Amend #1440: allow
const
items to contain drop types. - [disposition: merge] Prepublication dependencies for Cargo.
New RFCs
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!
Issues in final comment period:
An interesting issue:
Good first issues:
We're happy to mentor these, please reach out to us in #rust-style if you'd like to get involved
Upcoming Events
- Jul 7. Rust Toronto - Game Development in Rust.
- Jul 10. Seattle Rust Meetup.
- Jul 12. OpenTechSchool Berlin - Rust Hack and Learn.
- Jul 12. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- Jul 12. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
- Jul 13. Columbus Rust Society - Monthly Meetup.
- Jul 13. Rust release triage.
- Jul 19. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- Jul 19. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
- Jul 20. Lessons learned integrating Rust with Ruby.
- Jul 20. Mozilla Community Dresden Meetup.
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
- Software Engineer, Systems - Buoyant.
- Rust Software Engineer - Remote working available.
- Senior Research Engineer - Servo at Mozilla.
Tweet us at @ThisWeekInRust to get your job offers listed here!
Quote of the Week
I have rewritten the code that was formerly in c
And which you probably had written very well
Forgive me it was unsafe
Thanks to @balrogboogie for the suggestion.