crateNameFromCargoToml: use 0.0.1 as fallback version

This commit is contained in:
Ivan Petkov 2022-01-15 19:58:31 -08:00
parent 92d185d877
commit 13c6a4cdce
No known key found for this signature in database
GPG Key ID: BB6F9EFC065832B6
2 changed files with 2 additions and 2 deletions

View File

@ -271,7 +271,7 @@ raised during evaluation.
- Default value: `"cargo-package"` if the specified Cargo.toml file did not
include a name
* `version`: the version of the crate
- Default value: `"unknown"` if the specified Cargo.toml file did not
- Default value: `"0.0.1"` if the specified Cargo.toml file did not
include a version
### `lib.downloadCargoPackage`

View File

@ -14,5 +14,5 @@ let
in
{
pname = toml.package.name or "cargo-package";
version = toml.package.version or "unknown";
version = toml.package.version or "0.0.1";
}