nixpkgs/pkgs/build-support/rust
Alyssa Ross e3e57b8f18 lib.systems: elaborate Rust metadata
We need this stuff to be available in lib so make-derivation.nix can
access it to construct the Meson cross file.

This has a couple of other advantages:

 - It makes Rust less special.  Now figuring out what Rust calls a
   platform is the same as figuring out what Linux or QEMU call it.

 - We can unify the schema used to define Rust targets, and the schema
   used to access those values later.  Just like you can set "config"
   or "system" in a platform definition, and then access those same
   keys on the elaborated platform, you can now set "rustcTarget" in
   your crossSystem, and then access "stdenv.hostPlatform.rustcTarget"
   in your code.

"rustcTarget", "rustcTargetSpec", "cargoShortTarget", and
"cargoEnvVarTarget" have the "rustc" and "cargo" prefixes because
these are not exposed to code by the compiler, and are not
standardized.  The arch/os/etc. variables are all named to match the
forms in the Rust target spec JSON.

The new rust.target-family only takes a list, since we don't need to
worry about backwards compatibility when that name is used.

The old APIs are all still functional with no warning for now, so that
it's possible for external code to use a single API on both 23.05 and
23.11.  We can introduce the warnings once 23.05 is EOL, and make them
hard errors when 23.11 is EOL.
2023-11-09 10:02:24 +01:00
..
build-rust-crate lib.systems: elaborate Rust metadata 2023-11-09 10:02:24 +01:00
build-rust-package lib.systems: elaborate Rust metadata 2023-11-09 10:02:24 +01:00
fetch-cargo-tarball rustPlatform.fetchCargoTarball: remove explicit sparse protocol 2023-06-02 21:28:57 -04:00
hooks lib.systems: elaborate Rust metadata 2023-11-09 10:02:24 +01:00
lib lib.systems: elaborate Rust metadata 2023-11-09 10:02:24 +01:00
sysroot build-support/rust/sysroot: let cargo-src crate become no_std 2023-03-12 12:24:23 +01:00
test/import-cargo-lock tests.importCargoLock.maturin: reexport maturin.tests.pyo3 2023-06-19 10:42:24 -04:00
default-crate-overrides.nix default-crate-overrides: add libseat-sys 2023-08-26 01:08:29 -07:00
fetchcargo-default-config.toml
fetchcrate.nix fetchCrate: fix registryDl 2023-05-28 13:20:03 -04:00
import-cargo-lock.nix importCargoLock: fix git dep config file 2023-06-29 21:47:27 +08:00
replace-workspace-values.py rustPlatform.importCargoLock: fix [package] section handling 2023-04-29 21:05:05 +02:00