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:
Jos van den Oever 2023-08-16 13:09:53 +02:00 committed by Patryk Wychowaniec
parent 9bbe32cccf
commit 275010712c

View file

@ -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; }