You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.
I have a repo with two workspaces, structured like so:
my_repo
├── Cargo.toml
├── a
│ ├── Cargo.toml
│ └── src
└── b
├── Cargo.toml
└── src
I want to make an ebuild for each workspace. When I use the --manifest-path flag, cargo ebuild uses the Cargo.toml in the root of the repo instead of the one in the argument, ex.
machinefossil@pc ~/my_repo $ cargo ebuild --manifest-path a/Cargo.toml
Error: cargo metadata failed: Error during execution of `cargo metadata`: error: failed to parse manifest at `/home/machinefossil/my_repo/Cargo.toml`
If I rename/remove the Cargo.toml in the root of the repo, --manifest-path then uses the path given to it as an argument.
The text was updated successfully, but these errors were encountered:
At least by looking your directory structure, it seems that there is only a single workspace containing two crates a and b. If you want to have two different workspaces, then it is not necessary to have a Cargo.toml at the repository root, but only inside the directories which the workspaces are in.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a repo with two workspaces, structured like so:
I want to make an ebuild for each workspace. When I use the
--manifest-path
flag,cargo ebuild
uses the Cargo.toml in the root of the repo instead of the one in the argument, ex.If I rename/remove the Cargo.toml in the root of the repo,
--manifest-path
then uses the path given to it as an argument.The text was updated successfully, but these errors were encountered: