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 2017 Rust conference lineup.
- Ashley and Sebastián join the Rust community team!
- The official Rust Playground now has the top 100 crates available.
- The Rustdoc redux. A ground-up re-write of rustdoc is coming.
- Non-lexical lifetimes: draft RFC and prototype available.
- Inner workings of a search engine written in Rust part 2: Super fast indexing.
- Rocket v0.3: Fairings, TLS, and private cookies.
- Avoiding logic bugs in Rust with traits and types.
- How to rewrite your project in Rust.
- Multithreading in Rust part 2: Pointers to shared memory.
- Undefined behavior and unsafe code guidelines.
- Building a microservice in Rust (with actors).
- Types as contracts.
- Rusoto codegen part three: crategen. Rusoto, an AWS SDK, generates a crate for each AWS service. This post details how that's done.
- Rust On L4Re — Safe Language Meets Safe Microkernel. L4Re is a microkernel featuring strict isolation and virtualisation. The article gives an overview about the porting work.
- libsolv - A case study in interfacing with C - Part 1.
- This week in Redox 25.
- This week in Rust docs 64.
Crate of the Week
This week's crate is extfsm, a crate to help build finite state machines. Thanks to Tony P. 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.
- Get in the swing with the libz blitz contest: Win free tickets to RustFest Zürich.
- Rust libz blitz status update 2017/07/14.
- gcc: Rename crate.
- gcc: Extract windows_registry module into its own crate.
- gcc: Add panic conditions to various functions.
- gcc: Clarify behavior of
expand
. - gcc: Rename
Config
type. - gcc: Add warning control.
- gcc: Add try_compile and try_expand.
- gcc: Mention in the crate docs that this crate also supports assembly.
- gcc: Explain what metadata is emitted by
cargo_metadata
. - gcc: Document the
rayon
feature. - gcc: Backward spans are displayed strangely.
- rust-cookbook: Add "Extract phone numbers from text" example.
- rust-cookbook: Add "Filter a log file by matching multiple regular expressions" example.
- rust-cookbook: Add "Extract all unique links from a webpage" example.
- rust-cookbook: Use a custom environment variable to set up logging.
- rust-cookbook: Add "Obtain backtrace of complex error scenarios" example.
- rust-cookbook: Add "Avoid discarding errors during error conversions" example.
- semver: Implement serde Serialize/Deserialize for VersionReq.
- skeptic: Produce better names for test cases.
- [easy] skeptic: Allow lines that begin with
#!
. - [easy] rustup: Replace rustup_utils::remove_dir_all with remove_dir_all crate.
- [easy] stdx: Add encoding_rs crate.
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
- don't panic, compiler-builtins
- thread-local
pub(restricted)
- thread-local try-with
- macro parsing improvements (fixes a lot of issues around old macros), also identifiers in patterns no longer cause problems
- revert some SIMD annotations causing problems on PowerPC
- More Rust/RLS integration
cargo
conventions around libs / binaries streamlined (epic refactor)
New Contributors
- Luca Barbato
- Lynn
- Sam Cappleman-Lynes
- Valentin Brandl
- William Brown
- Yorwba
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 1937: Allow the
?
operator to be used inmain
, and in#[test]
functions and doctests. - RFC 1969: Prepublication dependencies for Cargo.
- RFC 1940: Support the
#[must_use]
attribute on arbitrary functions.
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] Put the RFCs repo under license terms.
- [disposition: merge] Tweak object safety rules to allow static dispatch.
- [disposition: postpone] Warn by default when casting a pointer to an integer smaller than usize.
- [disposition: merge] Amend #1440: allow
const
items to contain drop types. - [disposition: merge] Add
extern type
declarations for declaring types from external libraries which have an unknown size/layout. - [disposition: merge] Intra Rustdoc Links.
- [disposition: postpone] Allow the usage of
use
insideimpl
blocks andmatch
blocks. - [disposition: merge] Enable nested method calls.
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!
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 20. Rust DC: Lessons learned integrating Rust with Ruby.
- Jul 20. Mozilla Community Dresden Meetup.
- Jul 24. Triangle Rustaceans - Durham, NC - Hack Night.
- Jul 26. Ciudad de México, México - Rust Meetup #6.
- Jul 26. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- Jul 26. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
- Jul 26. OpenTechSchool Berlin - Rust Hack and Learn.
- Jul 27. Rust release triage.
- Aug 2. Rust User Group Cologne - Crate Polishing.
- Aug 2. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- Aug 2. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
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
No jobs listed for this week.
Tweet us at @ThisWeekInRust to get your job offers listed here!
Quote of the Week
Good farmers use their bare hands, average farmers use a combine harvester.
— /u/sin2pifx in response to "Good programmers write C, average programmers write Rust".
Thanks to Rushmore for the suggestion.