nixpkgs/pkgs/development/compilers/rust
Asad Mehmood 9ee10432a4 rust: cargo: Use rustc and cargo built on Build
When cross-compiling a rust package, all we need is the std library compiled
for the target. This uses the final stage compiler which was built for Build
and then uses that as a stage0 compiler for target std library.

It also copies the rust binary from pkgsBuildBuild so that it find the new
lib/rustlib directory.

We also need to create a cargo wrapper which will use the "new" rust compiler

Also makes sure man pages and doc pages are propagated

Co-authored-by: Alyssa Ross <hi@alyssa.is>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Co-authored-by: Rick van Schijndel <Mindavi@users.noreply.github.com>
2023-09-10 14:48:39 +02:00
..
1_72.nix rust: cargo: Use rustc and cargo built on Build 2023-09-10 14:48:39 +02:00
binary.nix rustc: 1.70.0 -> 1.71.0 2023-07-14 10:16:41 -04:00
bootstrap.nix
cargo_cross.nix rust: cargo: Use rustc and cargo built on Build 2023-09-10 14:48:39 +02:00
cargo-auditable-cargo-wrapper.nix cargo-auditable-cargo-wrapper: don't wrap if cargo-auditable is meta.broken (#250615) 2023-08-26 16:07:05 -05:00
cargo-auditable.nix cargo-auditable: fix cross compilation 2023-08-11 09:40:05 +01:00
cargo.nix cargo: mark broken for cross compilation to x86 2023-05-23 01:23:44 +00:00
clippy.nix treewide: don't use rustPlatform.rust 2023-05-12 15:31:21 +00:00
default.nix rust: cargo: Use rustc and cargo built on Build 2023-09-10 14:48:39 +02:00
make-rust-platform.nix rustPlatform.rust: deprecate 2023-05-12 15:31:21 +00:00
print-hashes.sh rust: add mips64el to list of bootstrap tarballs 2022-03-18 13:00:34 +10:00
rust-lib-src.nix rust-{lib-}src: deprecate phases 2022-02-25 22:57:59 +01:00
rust-src.nix rust-{lib-}src: deprecate phases 2022-02-25 22:57:59 +01:00
rustc.nix rust: cargo: Use rustc and cargo built on Build 2023-09-10 14:48:39 +02:00
rustfmt.nix rustfmt: fix warning 2023-05-12 19:49:14 -04:00
setup-hook.sh