Warning
This post was published 72 days ago. The information described in this article may have changed.
Hello and welcome to another issue of This Week in Rust! Rust is a programming language empowering everyone to build reliable and efficient software. This is a weekly summary of its progress and community. Want something mentioned? Tag us at @ThisWeekInRust on X(formerly Twitter) or @ThisWeekinRust on mastodon.social, or send us a pull request. Want to get involved? We love contributions.
This Week in Rust is openly developed on GitHub and archives can be viewed at this-week-in-rust.org. If you find any errors in this week's issue, please submit a PR.
Want TWIR in your inbox? Subscribe here.
This week's crate is diatomic-waker, a spinlock-less library for async task wakeup.
Thanks to Ddystopia for the suggestion!
Please submit your suggestions and votes for next week!
An important step for RFC implementation is for people to experiment with the implementation and give feedback, especially before stabilization. The following RFCs would benefit from user testing before moving forward:
If you are a feature implementer and would like your RFC to appear on the above list, add the new call-for-testing
label to your RFC along with a comment providing testing instructions and/or guidance on which aspect(s) of the feature
need testing.
Always wanted to contribute to open-source projects but did not 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 or through a PR to TWiR or by reaching out on X (Formerly twitter) or Mastodon!
Are you a new or experienced speaker looking for a place to share something cool? This section highlights events that are being planned and are accepting submissions to join their event as a speaker.
If you are an event organizer hoping to expand the reach of your event, please submit a link to the website through a PR to TWiR or by reaching out on X (Formerly twitter) or Mastodon!
402 pull requests were merged in the last week
wasm32-wasip2
target to Tier 2unpack!
for BlockAnd<()>
C-cmse-nonsecure-call
: improved error messagesmacro_metavar_expr_concat
Add support for literalsmacro_metavar_expr_concat
Allow concat
in repetitionstry_new_uninit_slice_in
and try_new_zeroed_slice_in
binary_asm_labels
to only fire on x86 and x86_64
run_make_support
wasm-component-ld
gai_strerror
Cargo.toml
in compiler/
⩵
being recovered as ==
unsafe_op_in_unsafe_fn
in compilerindex out of bounds
in conflicting erroradt_const_params
error_reporting
mod struturepub_use_of_private_extern_crate
show up in cargo's future breakage reportsexpand_until
use
rename suggestion spanaddr_of!
suggestion-> Box<dyn Trait>
or -> impl Trait
.clone()
suggestion when moving a mutable referenceenum
literalcfg
flag, point at itO_NOFOLLOW
flag supportpread
and pwrite
shimsread_unaligned
for reads from DWARFimpl Send + Sync
and override count
for the CStr::bytes
iteratorptr::metadata
: avoid references to extern typesisqrt
to NonZero<uN>
ReentrantLock
Once
#[diagnostic::do_not_recommend]
in the standard libraryoptimize_for_size
TomlPackage::new
, Default
for TomlWorkspace
current
class on sidebar modnavrewrite_result
for ArmWrapperrewrite_path
& rewrite_struct_***
pathbuf_init_then_push
: Checks for calls to push
immediately a…struct
Conf
excessive_precision
suggestions on floats written in scientific notationsingle_element_loop
where parens were missingzero_repeat_side_effects
only if array length is a literal zeroRestPat
in tuple args work as ellipsis like plain RestPat
linked_projects
include!
macro_arg
directly in ExpandDatabase::syntax_context
find_path
improvementsRUSTC_TOOLCHAIN
for runnablesrustc_skip_during_method_dispatch
Light week, with few changes on any dimension (including memory), though overall a slight regression.
Triage done by @simulacrum. Revision range: 5572759b..9629b90b
1 Regression, 1 Improvement, 1 Mixed; 2 of them in rollups 34 artifact comparisons made in total
Changes to Rust follow the Rust RFC (request for comments) process. These are the RFCs that were approved for implementation this week:
Every week, the team announces the 'final comment period' for RFCs and key PRs which are reaching a decision. Express your opinions now.
const {integer}::from_str_radix
i.e. const_int_from_str
Rusty Events between 2024-07-24 - 2024-08-21 🦀
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.
Please see the latest Who's Hiring thread on r/rust
Rust doesn't give you good errors, it gives you control over errors.
Despite a woeful dearth of suggestions, llogiq is content with his choice.
Please submit quotes and vote for next week!
This Week in Rust is edited by: nellshamrell, llogiq, cdmistman, ericseppanen, extrawurst, andrewpollack, U007D, kolharsam, joelmarcey, mariannegoldin, bennyvasquez.
Email list hosting is sponsored by The Rust Foundation
🏷️ Rust_feed