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
- Announcing Rust 1.18.
- Rustup 1.4.0 released.
- How MutexGuard was Sync when it should not have been.
- Exploring Rust's standard library: system calls and errors.
- Exploring MIR Semantics through miri.
- Docs.rs now supports building non-default features.
- [video] "Rust: Hack without fear!" as the opening talk at C++Now 2017.
- This week in Redox 21.
- This week in Rust docs 60 .
Crate of the Week
This week's crate is structopt, a crate that lets your auto-derive your command-line options from a struct to parse them into. Thanks to m4b 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.
- stdx: Set up testing of every stdx crate. stdx is a collection of curated Rust libraries.
- stdx: Create stdx-check tool.
- stdx: Add num_cpus, threadpool to stdx.
- [easy] lyon: Make the basic_shapes tessellation routines provide vertex normals. Lyon is a library for GPU-based 2D graphics rendering in Rust.
- [easy] lyon: Implement rounded rectangle stroke tessellation.
- [easy] lyon: Implement circle stroke tessellation.
- [easy] lyon: Add fuzz testing for the fill tesselator.
- [easy] lyon: Lyon should conform to the rust API guidelines.
- [easy] lyon: Implement computing the bounding rect for LineSegment and Triangle.
- [medium] lyon: Implement clipping line joins at the miter limit.
- [medium] lyon: Implement round line caps.
- [medium] lyon: Implement round line joins.
- [medium] lyon: Implement bevel line joins.
- lyon: Make the source code easier to understand and discover.
- perceptia: Add support for offscreen mode with VNC or Spice. Perceptia is a dynamic window manager with support for Wayland.
- perceptia: Add support for libinput.
- perceptia: Add configuration for panel.
- [easy] perceptia: Generate better name for screenshot file.
- [easy] perceptia: Add more options for setting background.
- rustup: Create and publish a snap of rustup.
- rust: Create and publish a snap of Rust.
- rust: Update docker images to share scripts when possible.
- corrode-but-in-rust: let-defined lambdas aren't combined.
- [easy] rust-url: Modify docs to put error conditions into
Errors
sections. - log: Remove env_logger from this repository.
- log: Support construction of
Record
s andMetadata
.
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.
- epic macro expansion speedup
unimplemented!(..)
now allows message- better suggestions for missing trait impls
- disentangle
InferCtxt", "MemCategorizationContext",
ExprUseVisitor` (plugin-breaking, but clippy already fixed) - convert
StdIo
fromFile
,ChildStdout
,ChildStderr
- disallow "String"_ literals (No clue why this compiled in the first place?)
- speed up
mem::swap(..)
- improve codegen for
.next_power_of_two
(and others) - our tests need more jokes! (look at the change list for some laughs)
- don't panic,
rust_eh_parsonality()
! - don't store zero-sized pair fields
#[inline]
io::Error::from
use foo::self;
is now only one error- everything outlives the
'empty
lifetime - doctests skip files without three backticks
- speed up cargo
New Contributors
- Arthur Arnold
- Campbell Barton
- Fuqiao Xue
- gentoo90
- Inokentiy Babushkin
- Michael Killough
- Nick Whitney
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] Specify
#[repr(transparent)]
. - [disposition: merge] Conversions from
&mut T
to&Cell<T>
. - [disposition: merge] Tiered browser support policy for Rust's web content.
- [disposition: merge] Prepare global allocators for stabilization.
New RFCs
- Privacy for enum variants and trait items.
- Tweak object safety rules to allow static dispatch.
- Enable nested method calls.
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!
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:
- [macro_use] on the same line as crate
- trait bounds
- Specify rules for breaking long
where
conditions - Single-line
where
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
- Jun 15. Rust DC Learn + Try: Embedded Rust.
- Jun 15. Rust release triage.
- Jun 16. RainOfRust Camp Nashik - III.
- Jun 17. Rust Bangalore - Rust 'core' Workshop on Types, Memory and Interfacing with other languages.
- Jun 17. RainOfRust Camp Gandhinagar, Gujarat.
- Jun 17. Rust Activate - Ciudad de México.
- Jun 17. Rust Day Mexico City 2017.
- Jun 18. #RainOfRust Workshop in Pune.
- Jun 19. First Belgian Rust meetup.
- Jun 21. Rust Meetup Dresden.
- Jun 21. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- Jun 21. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
- Jun 24. RainOfRust Camp Ahmedabad, Gujarat.
- Jun 27. Let's Rust - Hyderabad.
- Jun 27. RainOfRust Camp Patan, Gujarat.
- Jun 28. Boston Rust - Tutorial Bug-fixing Hackathon.
- Jun 28. OpenTechSchool Berlin - Rust Hack and Learn.
- Jun 28. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- Jun 28. Rust Documentation Team Meeting at #rust-docs on irc.mozilla.org.
- Jun 29. Rust release triage.
- Jul 4. Rust Utrecht - Rust Workshop.
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
- Open Source Rust Engineer at Buoyant.
- Rust Developer at 1aim.
- Rust Developer at Anixe.
- Rust Legend at Between Lines.
- Student Research Assistant for developing Clippy in Karlsruhe (contact oliver.schneider \at kit.edu).
Tweet us at @ThisWeekInRust to get your job offers listed here!
Quote of the Week
No quote was selected for QotW.