Rollup of 12 pull requests Successful merges: - rust-lang/rust#145768 (Offload device) - rust-lang/rust#145992 (Stabilize `vec_deque_pop_if`) - rust-lang/rust#147416 (Early return if span is from expansion so we dont get empty span and ice later on) - rust-lang/rust#147808 (btree: cleanup difference, intersection, is_subset) - rust-lang/rust#148520 (style: Use binary literals instead of hex literals in doctests for `highest_one` and `lowest_one`) - rust-lang/rust#148559 (Add typo suggestion for a misspelt Cargo environment variable) - rust-lang/rust#148567 (Fix incorrect precedence caused by range expression) - rust-lang/rust#148570 (Fix mismatched brackets in generated .dir-locals.el) - rust-lang/rust#148575 (fix dev guide link in rustc_query_system/dep_graph/README.md) - rust-lang/rust#148578 (core docs: add notes about availability of `Atomic*::from_mut_slice`) - rust-lang/rust#148603 (Backport 1.91.1 relnotes to main) - rust-lang/rust#148609 (Sync str::rsplit_once example with str::split_once) r? `@ghost` `@rustbot` modify labels: rollup
This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.
Why Rust?
-
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).
Quick Start
Read "Installation" from The Book.
Installing from Source
If you really want to install from source (though this is not recommended), see INSTALL.md.
Getting Help
See https://www.rust-lang.org/community for a list of chat platforms and forums.
Contributing
See CONTRIBUTING.md.
License
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.
Trademark
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.