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
No official blog posts, newsletters, or research papers this week.
- rust-analyzer Changelog #78
- This Week In TensorBase 4
- rustc_codegen_gcc can now run libcore’s tests and pass most of them!
- Parcel 2 beta 3
- Announcing lettre 0.10.0-rc.1
- Announcing typed-sql beta! Zero-cost ORM with fast compile times
- Announcing Valuable, a library for object-safe value inspection
- Why and how we wrote a compiler in Rust (blog post series 1/X): the context
- 2D Web Rendering with Rust
- A fast-to-sync/search and space-optimized replication algorithm written in Rust, the gun-db data replication model
- Adventures in rustc Forking
- Baseline implementations should be predictable
- Naming Your Lifetimes
- Rucredstash release & Rust experience from a Haskeller
- Creating an Infinite Mixture Model in Rust with the rv crate
- Debug rust application inside container
- Write Rust lints without forking Clippy
- Zig Makes Rust Cross-Compilation Just Work
- Routing traffic in Rust using eBPF
- How to to_string in Rust
- Building small desktop apps with Ember.js and Tauri
- Coming to Rust from Django
- Structural Typing in Rust
- Idiomatic Rust? Implementing binary search
- [ZH] Practice of web crawling with async Rust (使用 Rust 做异步数据采集的实践)
- [video] Lock-Free to Wait-Free Simulation in Rust
Crate of the Week
This week's crate is typed-index-collections, a crate that lets you make Vecs with custom-typed indices.
Thanks to Tim for the nomination
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.
If you are a Rust project owner and are looking for contributors, please submit tasks here.
No issues were proposed for CfP.
Updates from Rust Core
280 pull requests were merged in the last week
- implement more
clone_fromfor some types
- implement the new desugaring from
- fix auto-hide for implementations and implementors
- check for more things in THIR unsafeck
- suppress spurious errors inside
- avoid zero-length
- always produce sub-obligations when using cached projection result
- CTFE core engine allocation & memory API improvemenets
get_alloc_extra_mut: also provide ref to
- fix missing lifetimes diagnostics
- suggest borrowing if a trait implementation is found for
Peekabledue to unsoundness
rustc_on_implementedto improve more
- cargo: add
- rustdoc: don't hide inherent implementations by default
- clippy: fix ICE in
- clippy: fix invalid syntax in
- clippy: fix
- clippy: fix
vec!macro in a closure with arguments
- clippy: don't lint
multiple_inherent_implwith generic arguments
- clippy: early return from
LintPassregistration when collecting metadata
- clippy: adding the default lint level to the metadata collection
Rust Compiler Performance Triage
A somewhat quiet week. Some PRs had performance runs performed on them, but the changes were merged despite this. Also, we still have issues with certain benchmarks being noisy.
Triage done by @rylev. Revision range: 25a277..cdbe2
2 Regressions, 2 Improvements, 1 Mixed 0 of them in rollups
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.
- [disposition: merge] RFC: 2021 Edition
- [disposition: merge] RFC: Overconstraining and omitting unsafe in impls of unsafe trait methods
- [disposition: merge] rustc: Allow safe #[target_feature] on wasm
- [disposition: merge] Show test type during prints
- [disposition: merge] Tracking Issue for VecDeque binary search functions
- [disposition: merge] Tracking issue for WebAssembly SIMD support
- [disposition: merge] Use try_reserve in Vec's io::Write
- ArrayBuilder struct for safe/efficient dynamic array initialisation
- RFC: I/O Safety
- A Cargo profile option trim-path to sanitise absolute paths
- May 27, 2021, London/Remote, UK - Runtime reflection, gRPC at scale, and more
- May 27, 2021, Montréal, QC, CN - Rust MTL: Building a Scrabble AI with the fst crate - Rust Montréal
- June 1, 2021, Dublin, IE - June Remote Meetup - Rust Dublin
- June 1, 2021, Buffalo, NY, US - Buffalo Rust User Group, First Tuesdays - Buffalo Rust Meetup
Tweet us at @ThisWeekInRust to get your job offers listed here!
Quote of the Week
Ok, you wanted it. Let's go full meta:
This time, there were two crates and one quote, which is not much, but ok. Keep it up, folks!
Thanks to Patrice Peterson for the suggestion!