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 Rust compiler is getting faster.
- Rand 0.5.0 released with quite significant changes over 0.4.
- Cannoli: A Python compiler written entirely in Rust.
- Auto reloading development web servers with systemfd/listenfd.
- Migrating to Actix Web from Rocket for stability.
- Improving SmallVec's speed by 60% and why that shouldn't matter to you.
- Swapping and dropping to accelerate Rust in a benchmark.
- Building a Datalog engine in under 300 lines of Rust.
- Porting Rust benchmarks to Criterion.
- Compile time prevention of SQL-injections in Rust.
- This week in Rust docs 106.
- The Embedded Working Group newsletter 5.
- [podcast] CoRecursive w/ Adam Bell - 013. Rust and bitter C++ developers with Jim Blandy, one of the authors of Programming Rust.
- [podcast] Rusty Spike Podcast - episode 29. Square, Amazon, the 1.26 release, Cloudflare, Rust’s birthday, and three-fold improvements.
Crate of the Week
This week's crate is Thunder, a crate for creating simple command-line programs. Thanks to Bujiraso 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.
- rustc-guide is a project to write a short guide about how the rust compiler works, and it needs your help. There are some easier issues, issues which might require a bit of investigation/code reading, and issues which probably require some advanced knowledge or a lot of time.
- annotate-snippets - a crate for code snippets visual annotations (think: rustc error display) released 0.1 and is looking for code review, testing, and feedback.
- Get started with these beginner-friendly issues.
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from Rust Core
140 pull requests were merged in the last week
- implement label break value (RFC #2046)
- lexer: fix span override for the first token in a string
- rustc: disallow modules and macros in expansions
- prevent main from having a where clause
- fix
fn main() -> impl Trait
for non-Termination
trait - resolve: don't add unnecessary import candidates for
prefix::{self}
imports - rustc: introduce {ast,hir}::AnonConst to consolidate so-called "embedded constants"
- fix conversion from Miri Value to ConstValue
- unused shorthand field pattern finally fixed(?)
- NLL: stop considering location when computing outlives relationships
- NLL: use
reset_unifications
instead of creating new unification table - cleanup uses of TypeIdHasher and replace them with StableHasher
- ensure derive(PartialOrd) is no longer accidentally exponential
- review proc macro API 1.2
- speed up the macro parser
- speed up
opt_normalize_projection_type
- streamline
StringReader::bump
- tweak
nearest_common_ancestor()
CheckLoopVisitor
: also visit break expressions- don't lint numeric overflows in promoteds in release mode
- add lint checks for unused loop labels
- turn deprecation lint
legacy_imports
into a hard error - make the
const_err
lintdeny
-by-default - remove vestigial diverging !-coercion
- reduce span highlighted code in unused_variables lint
- update LLVM to fix performance regression
- emit noalias on &mut parameters by default (hooray!)
- add auto-impl for primitive type
- fix an ICE when attempting to transmute an uninhabited type
- fix an ICE when casting a nonexistent const
- switch Vec from doubling size on growth to using RawVec's reserve
- ensure that statics are always ByRef
- don't unconditionally set CLOEXEC twice on every fd we open on Linux
- improve format string errors
- rustc_mir: allow promotion of promotable temps indexed at runtime
- add Option::xor method
- implement
[T]::align_to
- implement edition hygiene for keywords
- add implementation of Extend for ()
- implement From for more types on Cow
- stabilize
num::NonZeroU*
- stabilize
inclusive_range_methods
- stabilize opt-level={s,z}
- rustdoc: Add minification process
- rustdoc: replace most (e)println! statements with structured warnings/errors
- fix rustdoc panic with
impl Trait
in type parameters - compiletest: run revisions as independent tests
New Contributors
- bstrie
- Daniel Mueller
- George Burton
- Jane Lusby
- Kyle Stachowicz
- Mikela
- Robin Krahl
- SHA Miao
Approved RFCs
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
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] Keyword unreservations (pure, sizeof, alignof, offsetof).
- [disposition: merge] Unstable features accidentally usable on the Stable release chanel are still unstable.
- [disposition: merge]
#[used]
static variables. - [disposition: merge] Allow
if let
guards inmatch
expressions.
New RFCs
Upcoming Events
The community team is trying to improve outreach to meetup organisers. Please fill out their call for contact info if you are running or used to run a meetup.
- May 24. Madrid, ES - Cuarto meetup de MadRust.
- May 27. Paris, FR - RustFest Paris 2018.
- May 27. Mountain View, US - Open Table / Icebreaker: what projects are you working on.
- May 29. Dallas, US - Last Tuesday Meetup.
- May 30/31. Berlin, DE - Rust/WASM course around JSConf.EU.
- May 30. Berlin, DE - Berlin Mozilla Meetup - Rust Hack and Learn.
- May 30. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- May 30. Vancouver, CA - Rust Study/Hack/Hang-out night.
- May 30. Milano, IT - Rust Exercises.
- Jun 2. Florianópolis, BR - 1º Encontro Rust Floripa.
- Jun 3. Mountain View, US - Open Table / Icebreaker: what projects are you working on.
- Jun 5. Rust Community Content Subteam Meeting at #rust-content on irc.mozilla.org.
- Jun 5. Johannesburg, ZA - Monthly Meetup of the Johannesburg Rustaceans.
- Jun 6. Rust Events Team Meeting.
- Jun 6. Rust Community Team Meeting at #rust-community on irc.mozilla.org.
- Jun 6. Indianapolis, US - Indy.rs.
- Jun 6. Atlanta, US - Grab a beer with fellow Rustaceans.
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
No jobs listed for this week.
Tweet us at @ThisWeekInRust to get your job offers listed here!
Quote of the Week
No quote was selected for QotW.