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 2018 Rust event lineup.
- A vision for portability in Rust.
- Async/await II: Narrowing the scope of the problem.
- Async/await III: Moving forward with something shippable.
- In Rust, ordinary vectors are values.
- Make your own make (build system).
- Introduction to procedural macros.
- Sharing for a Lifetime. Some thoughts on how interior mutability fundamentally affects how we have to think about shared references, and how that relates to the private invariants maintained by a type.
- Writing a command-line program in Rust.
- Writing eBPF tracing tools in Rust.
- Compiling to eBPF from Rust.
- Experimenting with the new I/O framework for embedded systems.
- These weeks in dev-tools 3.
- This week in Rust docs 91.
- [podcast] New Rustacean: e022 –
Send
andSync
: The “marker” traits Rust uses for safe concurrency - [podcast] Rusty Spike Podcast - episode 17. Awards, 2018 roadmap RFC, 2018 conferences, and KubOS.
Crate of the Week
This week's crate is datafusion, a query planner/execution framework for Big Data processing. Thanks to andygrove 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 started with these beginner-friendly issues.
- Help Rayon prepare for 1.0.
- gutenberg: Make content::Section hold references. Gutenberg is an opinionated static site generator with everything built-in.
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from Rust Core
115 pull requests were merged in the last week
- syntax: lower priority of
+
inimpl Trait
/dyn Trait
- improve char escaping in lexer messages
- stabilize
feature(match_beginning_vert)
- add a
-Z no-index-update
for crater and benchmarking - fix ICE when reading non-UTF-8 input from stdin
- use a range to identify SIGSEGV in stack guards
- fix overflow when performing drop check calculations in NLL
- fix ref-to-ptr coercions not working with NLL in certain cases
- fix ICE when assigning references to a static mut with NLL
- make region inference use a dirty list
- add approximate suggestions for rustfix
- add line numbers and columns to error messages spanning multiple files
- don't lint unnecessary parens in function or method arguments inside of nested macros
- avoid underflow in render_source_line
- minimize weird spans involving macro context
- tweak presentation on lifetime trait mismatch
- suggest removing value from
break
when invalid - fix regression: account for trait methods in arg count mismatch error
- cleanup the shim code
- implement
Send
forprocess::Command
on Unix - specialize
StepBy::nth
- move
Duration
to libcore - rustbuild: per-stage
RUSTFLAGS
- cargo: allow configuration of LTO in
[profile]
- rustdoc: fix const evaluation ICE
- rustdoc: fix link title rendering with hoedown
New Contributors
- Araam Borhanian
- dpc
- Jay Strict
- Jonathan Goodman
- Matthias Krüger
- oberien
- Onur Aslan
- penpalperson
- Per Lundberg
Approved RFCs
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
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] Unsized rvalues.
- [disposition: merge] Allow trivial constraints to appear in where clauses.
- [disposition: merge] Fallible collection allocation 1.0.
- [disposition: merge] Type privacy and private-in-public lints.
- [disposition: merge] impl-only-use. The
use …::{… as …}
syntax can now accept_
as alias to a trait to only import the implementations of such a trait. - [disposition: merge] or-patterns in if / while let expressions.
- [disposition: merge] Formally define repr(u32, i8, etc...) and repr(C) on enums with payloads.
- [disposition: merge] Finalize syntax of
impl Trait
anddyn Trait
with multiple bounds. - [disposition: merge]
?
repetition in macro rules. - [disposition: postpone] Allow fields in traits that map to lvalues in impl'ing type.
- [disposition: postpone] Fix the handling of uninhabited types in pattern matching.
- [disposition: postpone] Unions 1.2.
- [disposition: postpone] Allow destructuring of structs that implement Drop.
- [disposition: postpone] Adding unsafe modules and unsafe blocks outside functions.
- [disposition: close] Guard Clause Flow Typing.
- [disposition: close] Legal double reference.
- [disposition: close] Add match/in statements.
New RFCs
- Custom test frameworks.
- Default type parameter fallback revisited.
- Add macro expansion API to proc macros.
Upcoming Events
- Feb 8. Helsinki - Finland Rust-lang Group.
- Feb 8. Columbus Rust Society - Monthly Meeting.
- Feb 8. San Diego Rust February Meetup.
- Feb 8. Rust release triage.
- Feb 9. Rust Table of Regulars Darmstadt / Germany
- Feb 10. Mangalore, India - RUSTCON2k18.
- Feb 11. Rust Dev in Mountain View - Open Table / Icebreaker: what projects are you working on.
- Feb 12. Rust London User Group - LDN Talks: February 2018.
- Feb 12. Rust Amsterdam - Perl FFI && Long-term reliability in Rust projects.
- Feb 12. Seattle Rust Meetup - Monthly meetup.
- Feb 13. Rust Roma - Rust learning and hacking evening #6.
- Feb 13. Rust Community Content Subteam Meeting at #rust-content on irc.mozilla.org
- Feb 14. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- Feb 14. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
- Feb 15. Cambridge Rust Meetup.
- Feb 18. Rust Dev in Mountain View - Open Table / Icebreaker: what projects are you working on.
- Feb 21. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- Feb 21. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
- Feb 22. Rust release triage.
- Feb 22. Rust London User Group - LDN Talks: February 2018.
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
Tweet us at @ThisWeekInRust to get your job offers listed here!
Quote of the Week
Rust has a very high friction coefficient.
We call it grip and it lets us drive fearlessly around hard corners very fast.
Thanks to JustAPerson for the suggestion!