Rollup of 18 pull requests Successful merges: - rust-lang/rust#159898 (Add intrinsic-test alias and set sample rate) - rust-lang/rust#158247 (hermit/fs: Return `unsupported()` instead of `from_raw_os_error(22)`) - rust-lang/rust#158649 (Hermit: fix `readdir()` ) - rust-lang/rust#158693 (Add type-check to offload intrinisc calls) - rust-lang/rust#159049 (Avoid ICE in From/TryFrom cast suggestion when encountering HRTBs) - rust-lang/rust#159411 ([rustdoc] Correctly handle output options with --show-coverage) - rust-lang/rust#160053 (test: add test suite for the 85681 issue) - rust-lang/rust#160087 (Add regression test for nested associated-type projection ICE) - rust-lang/rust#160090 (rustc_resolve: Further reduce mutability in resolver) - rust-lang/rust#160099 (Resolver: split module resolutions into local and external resolutions) - rust-lang/rust#160106 (Add suggestions for `must_implement_one_of`) - rust-lang/rust#160117 (Remove unnecessary format usage) - rust-lang/rust#160134 (Work around Wine bug 60084 by calling WSAStartup at most once) - rust-lang/rust#160139 (iter: specialize Take::count using advance_by) - rust-lang/rust#160142 (bootstrap: remove use-lld config alias) - rust-lang/rust#160148 (Rename `errors.rs` file to `diagnostics.rs` (15/N)) - rust-lang/rust#160151 (Mark a doctest as requiring unwinding) - rust-lang/rust#160166 (Use correct feature gates for `f16`/`f128` `From` impls)
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.
For a detailed explanation of the compiler's architecture and how to begin contributing, see the rustc-dev-guide.
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.