cargo-hack
cargo-hack copied to clipboard
publish --all to detect required order to publish
publish --all
fails for https://github.com/Electron100/butane because the order in https://github.com/Electron100/butane/blob/master/Cargo.toml is not the order required to publish. For that project, butane_core
has the no dependencies on the other workspace members, while all the others have dependencies on butane_core
. So butane_core
should be published first, then butane_codegen
, etc, etc.
This required order can be determined automatically, and IMO the nature of publish
should mean the --all
/--workspace
flags use this altered ordering , departing slightly for the docs which say
Workspace members will be performed according to the order of the 'packages' fields of cargo metadata.