summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-10-19 15:12:40 +0200
committerGitHub <noreply@github.com>2021-10-19 15:12:40 +0200
commitced3db168bec6fc8394fd994b4e5b310af7704ff (patch)
tree5a8a4145852384a833cc00df8470b3dd241d7e20 /doc
parent47d7fa29311d957caf49b96953176d8e43ee1857 (diff)
parentc1a440b6cc781696ac23373f2b71e895cfc2c517 (diff)
downloadnixpkgs-ced3db168bec6fc8394fd994b4e5b310af7704ff.tar
nixpkgs-ced3db168bec6fc8394fd994b4e5b310af7704ff.tar.gz
nixpkgs-ced3db168bec6fc8394fd994b4e5b310af7704ff.tar.bz2
nixpkgs-ced3db168bec6fc8394fd994b4e5b310af7704ff.tar.lz
nixpkgs-ced3db168bec6fc8394fd994b4e5b310af7704ff.tar.xz
nixpkgs-ced3db168bec6fc8394fd994b4e5b310af7704ff.tar.zst
nixpkgs-ced3db168bec6fc8394fd994b4e5b310af7704ff.zip
Merge pull request #142173 from baloo/baloo/rust/doc-target-escape
Diffstat (limited to 'doc')
-rw-r--r--doc/languages-frameworks/rust.section.md16
1 files changed, 0 insertions, 16 deletions
diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md
index b2f045b11b3..26eb9e26bd0 100644
--- a/doc/languages-frameworks/rust.section.md
+++ b/doc/languages-frameworks/rust.section.md
@@ -237,22 +237,6 @@ where they are known to differ. But there are ways to customize the argument:
    --target /nix/store/asdfasdfsadf-thumb-crazy.json # contains {"foo":"","bar":""}
    ```
 
-Finally, as an ad-hoc escape hatch, a computed target (string or JSON file
-path) can be passed directly to `buildRustPackage`:
-
-```nix
-pkgs.rustPlatform.buildRustPackage {
-  /* ... */
-  target = "x86_64-fortanix-unknown-sgx";
-}
-```
-
-This is useful to avoid rebuilding Rust tools, since they are actually target
-agnostic and don't need to be rebuilt. But in the future, we should always
-build the Rust tools and standard library crates separately so there is no
-reason not to take the `stdenv.hostPlatform.rustc`-modifying approach, and the
-ad-hoc escape hatch to `buildRustPackage` can be removed.
-
 Note that currently custom targets aren't compiled with `std`, so `cargo test`
 will fail. This can be ignored by adding `doCheck = false;` to your derivation.