mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-22 23:17:15 +03:00
crateNameFromCargoToml: use 0.0.1
as fallback version
This commit is contained in:
parent
92d185d877
commit
13c6a4cdce
@ -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`
|
||||
|
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user