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
News & Blog Posts
- cargo-audit v0.11: Introducing the
fixfeature, yanked crate detection, and more.
- Bitfields forever: Why we need a C-compatible Rust crate.
- Units of measure in Rust with refinement types.
- std.rs: go directly to stable rust docs.
- A stack-less Rust coroutine library under 100 LoC.
- How Zebra used Tower to replace Zcash's legacy Bitcoin C++ networking code with modern, async Rust.
- Build your own
- Packaging a Rust project for Debian.
- Byte ordered streams.
- Tide channels.
- Lessons learnt updating a library to std::future.
- Returning trait objects.
- Debug Rust+Mynewt firmware for PineTime on Raspberry Pi.
- rust-analyzer changelog 9.
Crate of the Week
This week's crate is test-case, a framework for parameterized testing.
Thanks to Synek317 for the suggestions!
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.
- rust: fs::remove_dir_all rarely succeeds for large directories on windows.
- arcs: Interactive tools for drawing geometric items. Arcs is a Rust CAD System.
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from Rust Core
261 pull requests were merged in the last week
?constopt-out for trait bounds
- unbreak linking with lld 9 on FreeBSD 13.0-CURRENT i386
- export weak symbols used by MemorySanitizer
#[track_caller]and function pointers
- micro-optimize OutputFilenames
- perf: avoid creating a SmallVec if nothing changes during a fold
- suggest borrowing
Vec<NonCopy>in for loop
- further improve
- typeck: simplify the handling of
- don't discard marker trait impls when inference variables are present
- account for non-types in substs for opaque type error messages
- avoid declaring a fake dependency edge
- render const pointers in MIR more compactly
- filter and test predicates using
- make pointers to statics internal
- avoid overflow in
- simplify NodeHeader by avoiding slices in BTreeMaps with shared roots
- add leading_ones and trailing_ones methods to the primitive integer types
- futures: avoid starvation from FuturesUnordered::poll_next
- futures: add StreamExt::scan
- stdarch: add Icelake avx512 features
- cargo: store maximum queue length
- cargo: search for root manifest with ephemeral workspaces
- rustdoc: fix handling of compile errors when running
- docs.rs: fix various bugs in match_version
- compiletest: simplify multi-debugger support
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.
- [disposition: merge] Correct inference of primitive operand type behind binary operation.
- [disposition: merge] Mutex and RwLock are unsound in presence of discriminant elision.
- Feb 2. Brussels, BE - Rust devroom @ FOSDEM.
- Feb 5. Berlin, DE - OpenTechSchool Berlin - Rust Hack and Learn.
- Feb 7. Darmstadt, DE - Rust Rhein-Main - Rust Meetup – Show Your Project.
- Feb 11. Zurich, CH - Rust Zurich - From cargo to kubernetes and back-up - February Meetup.
- Feb 5. Vancouver, BC, CA - Vancouver Rust meetup.
- Feb 5. Atlanta, GA, US - Rust Atlanta - Static Assertions Internals.
- Feb 5. Indianapolis, IN, US - Indy.rs.
- Feb 12. Houston, TX, US - Houston Linux Users Group - Rust Study Group.
- Feb 12. Portland, OR, US - PDXRust - WASM: Run Rust in the browser.
- Feb 13. Columbus, OH, US - Columbus Rust Society - Monthly Meeting.
- Feb 13. San Diego, CA, US - San Diego Rust February 2020 Meetup.
- Feb 18. Redmond, WA, US - Seattle Rust Meetup - Monthly meetup in Redmond.
- Windows App Developer at 1Password, Toronto, ON, CA.
- Rust Developer for privacy software at Cosmian, Paris (EU Remote available)
- Systems Engineer (Rust) at Consensys, Remote.
- Software Engineer at Open Analytics, Antwerp, BE.
Tweet us at @ThisWeekInRust to get your job offers listed here!
Quote of the Week
Rust is basically Haskell's athletic younger brother. Not as intellectual, but still smart and lifts weights.
Thanks to Duane for the suggestion!