support rust workspace #7

Open
opened 2026-03-01 09:09:20 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @Ludea on GitHub (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

Originally created by @Ludea on GitHub (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`
Author
Owner

@fosskers commented on GitHub (Feb 7, 2023):

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

@fosskers commented on GitHub (Feb 7, 2023): Would it work if you ran `cargo aur` within the subcrate?
Author
Owner

@Ludea commented on GitHub (Feb 7, 2023):

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

@Ludea commented on GitHub (Feb 7, 2023): doesn't work because binaries are into `/workspaceroot/target/release/XXX` and not `/workspaceroot/workspacemember/target/release/XXX`
Author
Owner

@ozwaldorf commented on GitHub (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"
@ozwaldorf commented on GitHub (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" ```
Author
Owner

@fosskers commented on GitHub (Jun 21, 2023):

Thanks for the extra info.

@fosskers commented on GitHub (Jun 21, 2023): Thanks for the extra info.
Author
Owner

@fosskers commented on GitHub (Oct 2, 2023):

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

@fosskers commented on GitHub (Oct 2, 2023): One possible workaround for the detection of `target/` would be to symlink to `target/` from `<subcrate>/target/`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/cargo-aur#7