Go to file
Fabian Grünbichler bb0df4158e rust-src: ship original Cargo.lock file
since 1.82.0, rust-analyzer unconditionally runs `cargo metadata` in
sysroot_src (/usr/lib/rustlib/src/library) to discover its contents. since that
directory is owned by root and not writable for regular users, the Cargo.lock
file stored there needs to work "as-is".

because vendored crates are heavily patched for building, but not part of
rust-src, the Cargo.lock file generated as part of the build doesn't match the
shipped rust-src contents. the original one does however, so ship that instead.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-10-24 16:06:38 +02:00
.cargo New upstream version 1.80.0+dfsg1 2024-07-31 08:40:13 +02:00
compiler New upstream version 1.82.0+dfsg1 2024-10-21 11:08:01 +02:00
debian rust-src: ship original Cargo.lock file 2024-10-24 16:06:38 +02:00
library New upstream version 1.82.0+dfsg1 2024-10-21 11:08:01 +02:00
src New upstream version 1.82.0+dfsg1 2024-10-21 11:08:01 +02:00
tests New upstream version 1.82.0+dfsg1 2024-10-21 11:08:01 +02:00
vendor New upstream version 1.82.0+dfsg1 2024-10-21 11:08:01 +02:00
Cargo.lock New upstream version 1.82.0+dfsg1 2024-10-21 11:08:01 +02:00
Cargo.toml New upstream version 1.82.0+dfsg1 2024-10-21 11:08:01 +02:00
config.example.toml New upstream version 1.82.0+dfsg1 2024-10-21 11:08:01 +02:00
configure New upstream version 1.78.0+dfsg1 2024-06-21 09:39:33 +02:00
CONTRIBUTING.md New upstream version 1.76.0+dfsg1 2024-06-14 12:43:07 +02:00
COPYRIGHT New upstream version 1.67.1+dfsg1 2023-07-05 13:41:24 +02:00
git-commit-hash New upstream version 1.82.0+dfsg1 2024-10-21 11:08:01 +02:00
git-commit-info New upstream version 1.82.0+dfsg1 2024-10-21 11:08:01 +02:00
LICENSE-APACHE New upstream version 1.42.0+dfsg1 2020-04-04 01:11:41 +01:00
LICENSE-MIT New upstream version 1.21.0+dfsg1 2017-10-16 16:39:26 +02:00
README.md New upstream version 1.79.0+dfsg1 2024-06-24 14:48:22 +02:00
RELEASES.md New upstream version 1.82.0+dfsg1 2024-10-21 11:08:01 +02:00
version New upstream version 1.82.0+dfsg1 2024-10-21 11:08:01 +02:00
x.py New upstream version 1.73.0+dfsg1 2024-05-27 22:45:50 +02:00

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 integrate 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 media guide.

Third-party logos may be subject to third-party copyrights and trademarks. See Licenses for details.