cargo-aur
cargo-aur copied to clipboard
support rust workspace
workspace seems to be not supported.
I get workspace with 2 subprojets, but when running cargo aur, get Error: missing field package at line 1 column 1
Would it work if you ran cargo aur within the subcrate?
doesn't work because binaries are into /workspaceroot/target/release/XXX and not /workspaceroot/workspacemember/target/release/XXX
Related:
With a structure like so:
crate1/
- crate2/
- src/
- lib.rs
- Cargo.toml
- src/
- bin.rs
- lib.rs
- Cargo.toml
It fails when the root cargo toml uses workspace.package keys for anything in the package section, for example:
[package]
...
license.workspace = true
[workspace]
members = ["crate2"]
[workspace.package]
license = "MIT"
Thanks for the extra info.
One possible workaround for the detection of target/ would be to symlink to target/ from <subcrate>/target/.