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 language ergonomics initiative. To help bring 2017 vision for Rust to fruition, Rust language team is launching an initiative: improving the ergonomics of the core language.
- What are sum, product, and pi types.
- The future with Futures. Writing asynchronous Rust with Futures and Tokio.
- Designing non-lexical borrows: nested method calls via two-phase borrowing.
- Mitigating underhandedness: Fuzzing your code.
- What I learned from giving a Rust training.
- Trying out Rust for graphics programming.
- Setting up a Rust development environment.
- Rust faster than C? Not so fast…. Follow-up to Rust beating C in The Computer Language Benchmarks Game.
- LabelledGeneric in Rust: What, why, how?
- RESTful microservices in Rust: Part 1, part 2 and part 3.
- Rust Language Server alpha 2 released bringing new features, better stability, and an easier installation than the first alpha.
- Redox releases 0.1.1 which adds support for resizing windows, mouse scroll, changing window titles, and improves the look and feel of many Redox applications.
- [video] Videos from March 2017 Rust Meetup at Mozilla SF. GPU glyph rasterization, Rocket, and the orphan rules.
- [video] LLVM Social Berlin #6: Mull meets Rust. Implementing mutation testing system for Rust.
Other Weeklies from Rust Community
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.
- The Underhanded Rust Contest.
- Rails Girls Summer of Code + Servo.
- [easy] servo: Looking for something to work on.
- [easy] clippy: Extend option-map-unwrap-or-else to Result.
- [easy] clippy: Always true expressions in if expressions.
- [easy] clippy: Spot wrong usage of bitwise and operator.
- [easy] clippy: should_implement_trait should include ToOwned, FromStr.
- [easy] crates.io: bad appveyor badges for projects with underscore.
- [easy] crates.io: Document applying categories/adding new categories.
- [medium] crates.io: Be able to search within a keyword or category.
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from Rust Core
105 pull requests were merged in the last week.
- improve backtrace format (🎉Yay!🎉)
x86-interruptcalling conventions (also update LLVM and the unstable book)
- transmuting from fn item types to pointers is now a hard error (breaking change)
TokenTrees and fix
- indexing (
_[_]) now coerces the argument
- syntax: use
#[proc_macro]for procedural bang!-macros
format!(..)panic on errors
impl FromIterator<&char> for String
- on-demand typeck, const-qualification/eval and MIR building (12/12 would pull at least twice 😁)
- on-demand destructors
- MIR: improved operand lifetimes
- fix ICE on exhaustive-pattern check
- fix some normalization bugs
- fix missing
while letpattern scope
- don't optimize layout for
impl RangeArgument for RangeInclusive
- spring clean
cargo test --all: fix doctest dependencies (also in beta)
benchno longer builds binaries with unselected features
- cargo accepts more historically used underscores instead of dashes
- Ben Schreiber
- Maik Riechert
Changes to Rust follow the Rust RFC (request for comments) process. These are the RFCs that were approved for implementation this week:
No RFCs were approved this week.
Final Comment Period
- [disposition: merge] Write to standard error with
- [disposition: merge] extend
?to operate over other types.
- [disposition: merge]
From<&[T]> for Rc<[T]> + From<&str> for Rc<str>.
- [disposition: close] Add variable-length arrays to the language.
- [disposition: merge] Extend entry API to work on borrowed keys.
- [disposition: merge] Deprecate anonymous parameters.
- Intra Rustdoc Links.
- Polymorphic Numeric Constants.
- Improve match ergonomics.
- Guess diagnostics.
rustfixshould be the semantic companion to
rustfmt, which automatically changes code to be more idiomatic.
- Support the
#[must_use]attribute on arbitrary functions.
- Allow the
?operator to be used in
main, and in
#[test]functions and doctests.
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!
PRs in final comment period:
Issues in final comment period:
Other significant issues:
- Mar 9. San Diego Rust.
- Mar 9. Columbus Rust Society - Monthly Meeting.
- Mar 9. Rust release triage.
- Mar 11. Rust NYC - Rust Hack & Learn.
- Mar 13. Seattle Rust Meetup - Monthly meetup.
- Mar 15. Rust Meetup Hamburg - Rust/Ethereum Meetup.
- Mar 15. Rust Los Angeles - Rust LA Monthly Meetup - Hack Night.
- Mar 15. Rust Dublin - Rust Lightning Talks.
- Mar 15. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- Mar 15. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
- Mar 16. Rust - Modern Systems Programming in Leipzig.
- Mar 16. Thompson Rivers University, BC Canada - Get Rusty.
- Mar 21. Rust Paris Meetup #36.
- Mar 22. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- Mar 22. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
- Mar 23. Rust release triage.
- Mar 29. GNOME+Rust Hackfest 2017, Mexico City.
- Mar 31. Underhanded Rust Contest Submission Deadline
No jobs listed for this week.
Tweet us at @ThisWeekInRust to get your job offers listed here!
Quote of the Week
I sure need to work on my quotes.
Thanks to slashgrin for the suggestion.