Skip to content
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

support rust workspace #17

Open
Ludea opened this issue Feb 6, 2023 · 5 comments
Open

support rust workspace #17

Ludea opened this issue Feb 6, 2023 · 5 comments

Comments

@Ludea
Copy link

Ludea commented Feb 6, 2023

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

@fosskers
Copy link
Owner

fosskers commented Feb 7, 2023

Would it work if you ran cargo aur within the subcrate?

@Ludea
Copy link
Author

Ludea commented Feb 7, 2023

doesn't work because binaries are into /workspaceroot/target/release/XXX and not /workspaceroot/workspacemember/target/release/XXX

@ozwaldorf
Copy link

ozwaldorf commented Jun 15, 2023

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"

@fosskers
Copy link
Owner

Thanks for the extra info.

@fosskers
Copy link
Owner

fosskers commented Oct 2, 2023

One possible workaround for the detection of target/ would be to symlink to target/ from <subcrate>/target/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants