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.43.1
- Rust concurrency: the single-writer principle.
- This Month in Rust OSDev (April 2020)
- A no_std Rust binary
- Notes on io_uring
- no_std async/await - soon on stable
- "try fn" without special-casing Result
- time_it: A case study in Rust macros
- Dynamic stylesheets and Yew
- A practical introduction to async programming in Rust
- Rust Closures in FFI
- Collecting many errors from an iterator of Results.
- Auto-currying Rust Functions
- Converting bits to integers in Rust using generics
- Magnifying Glasses for Rust Assembly
- More Rust and Load Balancer Adventures
- Porting North Korean Dictionaries with Rust
- Rust verification tools
- Series Announcement - Zero to Production in Rust
- What I Learned Contributing to Rust-Analyzer
- What’s the difference between a Rust char and a Go rune?
- Writing A Wayland Compositor In Rust
- Yak shaving conditional compilation in Rust
- Oxidize Global Workshop and CfP announcement
- Collecting many errors from an iterator of Results.
- Writing Python inside your Rust code - Part 3
- Rust FFI - Building an ASN1 codec
- [video] Building a simple GraphQL API with Actix and Juniper
- [video] Named Field Init in C, C++20, Zig, Rust, & D
Crate of the Week
This week's crate is cargo-workspaces, a cargo subcommand to manage your cargo workspace.
Thanks to Pavan Kumar Sunkara 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.
- s3rename: Atomic renames and asynchronous destructors
- sedregex: Add support for translation commands y/ and tr/
- clap: Usage suggests help subcommand when using DisableHelpSubcommand
- displaydoc: Add support for
thiserror
attributes - GitUI is looking for contributors
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from Rust Core
375 pull requests were merged in the last week
- Define UB in float-to-int casts to saturate
- Improve bitcode generation for Apple platforms
- Don't force rustc to do codegen for LTO builds
- Correctly handle UEFI targets as Windows-like when emitting sections for LLVM bitcode
- Prevent compiler stack overflow for deeply recursive code
- resolve: Relax fresh binding disambiguation slightly to fix regression
- upgrade chalk and use chalk-solve/chalk-ir/chalk-rust-ir
- Report cannot move errors in promoted MIR
- Simplify the
tcx.alloc_map
API - Suggest removing semicolon in last expression only if it's type is known
- Skip attempting to run
coerce_unsized
on an inference variable - Unify the undo log of all snapshot types
- Reduce
TypedArena
creations incheck_match
- Shrink
LocalDecl
- Add
remove_current_as_list
toLinkedList
'sCursorMut
- Add
Arc::
{incr
,decr
}_strong_count
- Add Option to Force Unwind Tables
- Make
BTreeMap::new
andBTreeSet::new
const Btreemap
iter intertwined- Add
core::future::
{pending
,ready
} - futures: Refactor to reduce the amount of unsafe and duplicated code
- cargo: Update assertions in LTO calculations
- cargo: Try to remove secrets from http.debug
- cargo features: allow activated_features_unverified to communicate not-present
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.
RFCs
Tracking Issues & PRs
- [disposition: merge] Stablilize saturating_abs and saturating_neg
- [disposition: merge] Tweak and stabilize AtomicN::fetch_update
- [disposition: merge] impl
From<Cow>
for Box, Rc, and Arc - [disposition: merge] Stabilize fn-like proc macros in expression, pattern and statement positions
- [disposition: merge] Tracking issue for Weak::into_raw/from_raw & similar
- [disposition: clone] Tracking issue for non_static_type_id
New RFCs
Upcoming Events
Online
- May 12. Seattle, WA, US - Seattle Rust Meetup
- May 14. San Diego, CA, US - San Diego Rust
- May 14, Berlin, DE - Berlin Rust Hack and Learn
- May 20. Vancouver, BC, CA - Vancouver Rust - Rust Study/Hack/Hang-out night.
- May 21. Turin, IT - Rust Turin Meetup
- May 26. Dallas, TX, US - Dallas Rust - Last Tuesday
North America
- May 13. Vancouver, BC, CA - Vancouver Rust Meetup
- May 14. Columbus, OH, US - Columbus Rust Society - Monthly Meeting.
- May 25. Durham, NC, US - Triangle Rustaceans - Project Night and Lightning Talks
If you are running a Rust event please add it to the calendar to get it mentioned here. Please remember to add a link to the event too. Email the Rust Community Team for access.
Rust Jobs
Tweet us at @ThisWeekInRust to get your job offers listed here!
Quote of the Week
Ownership is purely conceptual: it is not something you can see in a disassembler.
Thanks to Daniel H-M for the suggestions!
Please submit quotes and vote for next week!
This Week in Rust is edited by: nellshamrell, llogiq, srikwit, and cdmistman.