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
- I made a game in Rust.
- Achieving warp speed with Rust. Rust code performance tips.
- Two years of Rust. From Rust's official blog.
- Two years of Rust.
- Going to the edge of space safely, with OpenStratos and Rust.
- The story of a Rust bug — a trip down a rabbit hole.
- Implementing an atomic hash table in Rust.
- Mentally modelling Rust modules.
- How to write build.rs scripts properly.
- Rust on AVR: Beyond blinking. AVR is a family of 8-bit microcontrollers.
- Implementing an E-Ink clock controlled by an ARM microcontroller (LPC1227) in Rust.
- Writing a GitHub webhook with Rust! Part 1: Rocket.
- Rust FFI: Sending strings to the outside world.
- A simple Rust memory management overview.
- Cheatsheet for Future combinators.
- All Rustfest Kyiv 2017 talks are now online.
- nom 3.0 is released.
- This week in Rust docs 56.
- This week in Servo 102.
Crate of the 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.
- Rust libz blitz status update 2017-05-12. 11 issues were closed last week and 8 new cookbook examples added. This week, the libz blitz is in need of someone to lead the walkdir evaluation.
- rust-url is looking for maintainers.
- rust: Get test suite working with wasm.
- [easy] rust-cookbook: Switch error handling setup to quick_main! macro from error-chain.
- rustup: Optimize disk access during install.
- rustup: Improve error message when override doesn't exist.
- [easy] rustup: Use ShellExecute to open docs on windows.
- [easy] rustup: No info printed on
rustup target remove.
- [easy] rustup: rustup tries to sync channel updates for non-updatable channels.
- [easy] rustup: Windows confirmation prompt not disabled with -y.
- [easy] rustup: Please show me the version I'm downloading/updatin.
- [easy] rustup:
component addshould succeed if target/component is already installed.
- rustup: Build with panic=abort.
- rustup: zero exit code on failing
- rustup: Teach rustup/rustbuild about optional components.
- rustup: Support dependencies between optional components/extensions.
- [easy] rusoto: SQS: bring back integration tests. Rusoto is an AWS SDK for Rust.
- [easy] quackin: Better documentation for the recommender module. Quackin is a recommender systems framework for Rust.
- [easy] quackin: Item based recommender.
- [medium] quackin: Benchmarks for recommenders.
- [easy] quackin: Support similarities like Jaccard and Pearson correlation.
- [medium] quackin: Performance metrics like Precision, Recall, RMSE and MAE.
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from Rust Core
125 pull requests were merged in the last week.
._in float literal (breaking change, but...who does this?), also
- enforce well-formedness after generalizing
span_label(reduces plugin ceremony)
- diagnostics: allow multiple suggestions
- remove no longer needed libsyntax features
- remove unused macros
- more crate metadata queries
- include crate root in
- finer crate hashing for incremental compilation
- Windows io::Error improvements
impl Clone for .split_whitespace()
- allow bare CR in doc comments
- box large MIR variants
- fix exponential LLVM code growth on inlining drops
- RLS crash fixed
- fix lvalue ops
- fix error with
- don't deny outer type parameters in embedded constants
- equate items ignoring variance
- cargo fetches only registry index master branch
- cargo now ignores malformed manifests on git deps
- cargo build script search path fixed
- cargo now retries requests that failed with 5XX
- cargo no longer checks out the whole crates.io index
- (mostly) rewrite the Rust installer in Rust
- Bastien Orivel
- Dennis Schridde
- Eduardo Pinho
- Liran Ringel
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] Specify
- [disposition: close] Add Cargo post-build scripts.
- [disposition: close] Reject crates.io uploads which declare a feature named
- [disposition: merge] Expand and stabilize
- [disposition: close] Allow any Displayable type for expect.
- [disposition: merge] Make RangeInclusive just a two-field struct (amend 1192).
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!
We're making good progress and the style is coming together. If you want to see the style in practice, check out our example or use the Integer32 Playground and select 'Proposed RFC' from the 'Format' menu. Be aware that implementation is work in progress.
Issues in final comment period:
- Spaces around
- Return type on new line - proposed to close
- Single-line where - proposed to close
- Attribute/doc comment ordering
- Ordering of types of groups within a module
- Function calls and chains of calls
- Combining opening and closing delims
- Where clauses
Good first issues:
We're happy to mentor these, please reach out to us in #rust-style if you'd like to get involved
- May 17. Rust LA May Meetup - Rust Birthday Party!
- May 17. South Florida Rust - Rust Birthday Party!
- May 17. Rust Atlanta - Heterogeneous Collections in Rust at Tech Square Labs (Midtown).
- May 17. OpenTechSchool Berlin - Rust Hack and Learn.
- May 17. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- May 17. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
- May 18. Rust release triage.
- May 20. Rust Bangalore community meetup.
- May 20-21. Hackathon TupperRust (Lyon).
- May 24. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- May 24. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
- May 30. Rust Oslo - Fearless programming with Rust - Adventures with Asynchronous I/O.
- May 30. Rust Toronto meetup - Hands-on parsing in Rust.
- May 31. OpenTechSchool Berlin - Rust Hack and Learn.
- May 31. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- May 31. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
- Jun 1. Rust release triage.
- Rust Developer at Anixe
- Rust Legend at Between Lines
- Research Engineer (Big Data) at Hadean
- Rust Engineer at Suitable Technologies.
- Core Developer for Parity Technologies
Tweet us at @ThisWeekInRust to get your job offers listed here!
Quote of the Week
Spent the last week learning rust. The old martial arts adage applies. Cry in the dojo, laugh in the battlefield.
Thanks to Ayose Cazorla for the suggestion.