summary refs log tree commit diff
path: root/doc/languages-frameworks/rust.section.md
diff options
context:
space:
mode:
authorYureka <yuka@yuka.dev>2023-03-26 00:25:35 +0100
committerYureka <yuka@yuka.dev>2023-03-26 01:52:04 +0100
commitf3a1640e49f093c42322944675930eb1fe136ac4 (patch)
tree264c7b620db9f3446c0184bdfd67a88f42e0b2d5 /doc/languages-frameworks/rust.section.md
parent4329de1264ecb7cca8709dc1984b86beb11bcc4e (diff)
downloadnixpkgs-f3a1640e49f093c42322944675930eb1fe136ac4.tar
nixpkgs-f3a1640e49f093c42322944675930eb1fe136ac4.tar.gz
nixpkgs-f3a1640e49f093c42322944675930eb1fe136ac4.tar.bz2
nixpkgs-f3a1640e49f093c42322944675930eb1fe136ac4.tar.lz
nixpkgs-f3a1640e49f093c42322944675930eb1fe136ac4.tar.xz
nixpkgs-f3a1640e49f093c42322944675930eb1fe136ac4.tar.zst
nixpkgs-f3a1640e49f093c42322944675930eb1fe136ac4.zip
docs/rust: add note about git dependencies
Diffstat (limited to 'doc/languages-frameworks/rust.section.md')
-rw-r--r--doc/languages-frameworks/rust.section.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md
index 7ee2dea2daf..689dd938d7a 100644
--- a/doc/languages-frameworks/rust.section.md
+++ b/doc/languages-frameworks/rust.section.md
@@ -50,6 +50,11 @@ package. `cargoHash256` is used for traditional Nix SHA-256 hashes,
 such as the one in the example above. `cargoHash` should instead be
 used for [SRI](https://www.w3.org/TR/SRI/) hashes. For example:
 
+Exception: If the application has cargo `git` dependencies, the `cargoHash`/`cargoSha256`
+approach will not work, and you will need to copy the `Cargo.lock` file of the application
+to nixpkgs and continue with the next section for specifying the options of the`cargoLock`
+section.
+
 ```nix
   cargoHash = "sha256-l1vL2ZdtDRxSGvP0X/l3nMw8+6WF67KPutJEzUROjg8=";
 ```