#141 cargo-inspector support for virtual/workspace Cargo.toml recursion
Closed: Fixed a year ago by decathorpe. Opened 2 years ago by pbrobinson.

Currently cargo-inspector doesn't support transversal of Cargo.toml from a Workspace Cargo.toml and it would be useful to be able to support that option.

While some projects release these as multiple crates for each sections of the workspace there's some that don't, or the packaging is from a single git repo because the project isn't published as individual crates. Also it could be the versions are intrinsically linked, where it doesn't make sense to do that because they don't operate or are used independently outside of the explicit client/server architecture.

4 /usr/bin/cargo-inspector -BR Cargo.toml
error: manifest path `Cargo.toml` is a virtual manifest, but this command requires running against an actual package in this workspace

I think this is out of scope. Rust Packaging Guidelines mandate that everything that is published separately to crates.io is also packaged separately. For projects that don't publish to crates.io and have some internal workspace / project structure, it's pretty easy to support that with the existing macros - look for example at the zola package.

Meh, I've changed my mind. It would be good to support this for the cases that you've outlined (i.e. projects that are not published as separate crates).

see also #85

Metadata Update from @decathorpe:
- Issue set to the milestone: 23

2 years ago

This will require a complete rewrite of the dynamic BuildRequires generator (which I am planning to do, but don't have time for right now). Moving to the v24 milestone.

Metadata Update from @decathorpe:
- Issue set to the milestone: 24 (was: 23)

2 years ago

%cargo_generate_buildrequires should support cargo workspaces as of version 24 of rust-packaging.

Metadata Update from @decathorpe:
- Issue close_status updated to: Fixed
- Issue set to the milestone: None (was: 24)
- Issue status updated to: Closed (was: Open)

a year ago

Login to comment on this ticket.

Metadata