Skip to content

Commit

Permalink
Look in [workspace.package] for the version number
Browse files Browse the repository at this point in the history
Since Rust 1.64.0, a workpackage can define a version number that packages
in the workspace can inherit.
  • Loading branch information
Jos van den Oever authored and Patryk27 committed Aug 16, 2023
1 parent 9bbe32c commit 746ac49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

0 comments on commit 746ac49

Please sign in to comment.