| commit | 2fcea9fb68c8e04f10e5cb15bbfb486de9800afa | [log] [tgz] |
|---|---|---|
| author | Trevor Gross <t.gross35@gmail.com> | Sat Jul 26 02:19:29 2025 -0500 |
| committer | GitHub <noreply@github.com> | Sat Jul 26 02:19:29 2025 -0500 |
| tree | 0e82c77e1c2b335c4998ea5c2351fc022fd9c576 | |
| parent | 75ed6de1eef96753da3497c0f6e2623cc86fc240 [diff] | |
| parent | 6f4d0bdde85f9e2a0e61bb3e16d407540ddc09ba [diff] |
Rollup merge of #143859 - orlp:thread-into-raw-align, r=jhpratt Guarantee 8 bytes of alignment in Thread::into_raw When using `AtomicPtr` for synchronization it's incredibly useful when you've got a couple bits you can stuff metadata in. By guaranteeing that `Thread`'s `Inner` struct is aligned to 8 bytes everyone can use the bottom 3 bits to signal other things, such as a critical section, etc. This guarantee is thus very useful and costs us nothing.
Website | Getting started | Learn | Documentation | Contributing
This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.
Performance: Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrated with other languages.
Reliability: Our rich type system and ownership model ensure memory and thread safety, reducing bugs at compile-time.
Productivity: Comprehensive documentation, a compiler committed to providing great diagnostics, and advanced tooling including package manager and build tool (Cargo), auto-formatter (rustfmt), linter (Clippy) and editor support (rust-analyzer).
Read “Installation” from The Book.
If you really want to install from source (though this is not recommended), see INSTALL.md.
See https://www.rust-lang.org/community for a list of chat platforms and forums.
See CONTRIBUTING.md.
Rust is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.
See LICENSE-APACHE, LICENSE-MIT, and COPYRIGHT for details.
The Rust Foundation owns and protects the Rust and Cargo trademarks and logos (the “Rust Trademarks”).
If you want to use these names or brands, please read the Rust language trademark policy.
Third-party logos may be subject to third-party copyrights and trademarks. See Licenses for details.