docs: rust: Improve wording about adding Cargo.lock to src (#340287)
This commit is contained in:
@@ -162,9 +162,10 @@ rustPlatform.buildRustPackage {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that setting `cargoLock.lockFile` or `cargoLock.lockFileContents`
|
If the upstream source repository lacks a `Cargo.lock` file, you must add one
|
||||||
doesn't add a `Cargo.lock` to your `src`, and a `Cargo.lock` is still
|
to `src`, as it is essential for building a Rust package. Setting
|
||||||
required to build a rust package. A simple fix is to use:
|
`cargoLock.lockFile` or `cargoLock.lockFileContents` will not automatically add
|
||||||
|
a `Cargo.lock` file to `src`. A straightforward solution is to use:
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user