-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Built-in support for multiple Rust workspaces in same repo #487
Comments
@mystor WDYT? |
This wouldn't be trivial to implement, but it wouldn't be too bad. We currently always invoke In terms of where we'd want to add the config, perhaps it would make more sense to have this information in [package.metadata.vet]
additional-manifests = ["path/to/Cargo.toml", "path/to/other/Cargo.toml"] We'd probably end up doing the check by looking for the configuration in the metacfg after parsing it. After that, we'd need to run an additional metadata command for each manifest path provided. We can't just naively merge the metadata together, as e.g. I think a new type like |
nice, sounds like a plan but yes not super trivial. having it as metadata in the workspace |
Some of our more complex repositories have multiple Rust workspaces to cover different isolated aspects of the project and we would like to audit the crates in all of the workspaces.
We can do this by doing
cargo vet init
for each sub-directory & workspace but this is tedious and error prone to manage and update and as they are all in the same repository we would like to have a single record and./supplychain/
folder for the audits of all of the crates in the workspaces.In the longer term I'm hoping for native support in Cargo of nested workspaces (rust-lang/cargo#5042), but don't think there is much active development towards that.
Could we consider in
./supplychain/config.toml
to have list of paths to additionalCargo.toml
workspaces to include in the processing? Or any other way to configure and include multiple workspaces in a single auditing database to manage?The text was updated successfully, but these errors were encountered: