nixpkgs/pkgs/build-support/rust
Alyssa Ross 6f8fa05acf
wrapRustc: wrap rustdoc
We need to set -crt-static on musl for rustdoc as well, so let's unify
the wrappers.  Ideally, rather than wrapping rustdoc, we'd have
rustdoc use the wrapped rustc, but that's currently only possible with
an unstable option (--test-builder).

The options set by the wrapper, -C target-feature and --sysroot, are
supported by both rustdoc and rustc, but other flags maybe not be
supported by both, so I've introduced different environment
variables (the existing NIX_RUSTFLAGS and a new NIX_RUSTDOCFLAGS) to
allow those to be set independently.

This fixes cargo-auditable in pkgsMusl., which broke because its
doctests stopped working when -crt-static was moved to the wrapper.

Fixes: 79156bf13a ("rustc: move crt-static default override to wrapper (#291829)")
2024-03-02 13:09:07 +01:00
..
build-rust-crate Merge pull request #274440 from bouk/missing-build-rust-env 2024-01-29 17:31:54 +01:00
build-rust-package buildRustPackage: disable cargo-auditable on pkgsStatic aarch64 2024-01-15 22:34:02 +01:00
fetch-cargo-tarball
hooks rust: allow linker to be different from compiler 2024-01-15 22:34:02 +01:00
lib rust.envVars: use wrapped LLD for aarch64 musl 2024-01-23 17:25:50 +01:00
rustc-wrapper wrapRustc: wrap rustdoc 2024-03-02 13:09:07 +01:00
sysroot
test/import-cargo-lock
default-crate-overrides.nix
fetchcargo-default-config.toml
fetchcrate.nix
import-cargo-lock.nix rustPlatform.importCargoLock: fix workspace_root detection 2023-12-21 19:40:43 -05:00
replace-workspace-values.py rustPlatform.importCargoLock: copy lints from workspace 2023-12-16 05:36:59 +00:00