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
News & Blog Posts
- Rust's 2017 roadmap, six months in.
- How Rust is tested.
- Shipping specialization: a story of soundness.
- RustBelt: Securing the foundations of the Rust programming language.
- Why you should, actually, rewrite it in Rust.
- Oracle releases an OCI-Based container runtime in Rust.
- Speeding up crypto on Wire desktop apps.
- Iterators and Streams in Rust and Haskell.
- Diesel 0.14.0 released - now supporting arbitrary number of joints and new data types.
- My experience with the libz blitz.
- Working on Rust Language Server for GSoC 2017.
- GSoC project: Making Redox self-hosting, status report 2.
- The semver trick: how to avoid complicated coordinated upgrades.
- A collection of notable Rust blog posts.
- ggez: A Rust library to create good games easily.
- Monochord: implementing a musical tunings library.
- This week in Redox 24.
- [podcast] Request for Explanation #2 - Stealing chickens on the Internet. Discussing the Evolving Rust through Epochs RFC.
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'.
Crate of the Week
Sadly, no crate was nominated this 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 is in great need of volunteers interested in making a dent in some of the libz blitz crates.
- Rust libz blitz status update 2017/07/05.
- Out of band crate evaluation for 2017-07-06: env_logger.
- Out of band crate evaluation for 2017-07-06: threadpool.
- Crate evaluation for 2017-07-11: gcc.
- Help wanted: parser-c (and parser-haskell, corollary, and rust-corrode).
- 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.
- [easy] stdx: Add semver crate.
- [easy] stdx: Add encoding_rs crate.
- [hard] maud: Port to new proc-macro interface.
- sass-rs: Fix build on OSX and Windows.
- walkdir: Correct errors in WalkDir type docs.
- walkdir: Add links to other walkdir items in WalkDirIterator docs.
- walkdir: Add Error docs to methods that return Result.
- [easy] rust-url: Modify docs to put error conditions into
- [easy] flate2-rs: Rename internal types to match the public types.
- 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.
- [easy] rust-bindgen: Default to generating constified enums, rather than generating Rust enums.
- [less-easy] rust-bindgen: Rewrite
is_unsizedas either a graph traversal or fix-point analysis.
- [less-easy] rust-bindgen: Rewrite
can_derive_debugas 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
113 pull requests were merged in the last week
- stack probes on X86 (Hooray!)
- skip main thread stack guard on Linux
- rustc no longer crashes on ambiguous
<in type ascription
repr(align(x))now goes to
- fix silent NaN encoding on certain architectures
associated_constsare now stable
Froms where applicable
- avoid inlining
HashMap::resize(..)(to reduce stack usage)
- specialize O(1)
- improved error message on
- suggestions now include line numbers
- switch to nursery
- AST/HIR now store method call generic arguments
resolve_trait_on_defaulted_unitlints are now
- stronger type privacy checking
- update libstd_unicode to Unicode 10.0.0
cargo bench --no-fail-fast
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
- [disposition: merge] Tweak object safety rules to allow static dispatch.
- [disposition: postpone] Allow the usage of
- [disposition: postpone] Warn by default when casting a pointer to an integer smaller than usize.
- [disposition: merge] Amend #1440: allow
constitems to contain drop types.
- [disposition: merge] Add
extern typedeclarations for declaring types from external libraries which have an unknown size/layout.
- [disposition: merge] Prepublication dependencies for Cargo.
- [disposition: merge] Support the
#[must_use]attribute on arbitrary functions.
- [disposition: merge] Allow the
?operator to be used in
main, and in
#[test]functions and doctests.
- Make unreachable patterns error, not warning.
- Move "How do we teach this?" before "Detailed design".
- Allow destructuring of structs that implement Drop.
- Add replace and swap functions to RefCell.
- Allow trivial constraints to appear in where clauses.
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
- Jul 13. Columbus Rust Society - Monthly Meetup.
- Jul 13. Rust release triage.
- Jul 15. Rust Bangalore - Rust 'ORBL' workshop.
- 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. Rust DC: Lessons learned integrating Rust with Ruby.
- Jul 20. Mozilla Community Dresden Meetup.
- 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.
- 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
Unsafe is your friend! It's maybe not a friend like you would invite to your sister's wedding, or the christening of her first-born child. But it's sort of the friend who lives in the country and has a pick-up truck and 37 guns. And so you might not want to hang out with them all the time, but if you need something blown up he is there for you.