mirror of
https://github.com/nix-community/naersk
synced 2024-11-10 06:04:17 +00:00
Look in [workspace.package] for the version number
Since Rust 1.64.0, a workpackage can define a version number that packages in the workspace can inherit.
This commit is contained in:
parent
9bbe32cccf
commit
275010712c
1 changed files with 3 additions and 1 deletions
|
@ -408,7 +408,9 @@ let
|
|||
packageVersion =
|
||||
if ! isNull attrs.version
|
||||
then attrs.version
|
||||
else toplevelCargotoml.package.version or "unknown";
|
||||
else toplevelCargotoml.package.version
|
||||
or toplevelCargotoml."workspace.package".version
|
||||
or "unknown";
|
||||
};
|
||||
in
|
||||
buildPlanConfig // { inherit buildConfig; }
|
||||
|
|
Loading…
Reference in a new issue