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

cargo package --manifest-path foo/Cargo.toml uses foo/target instead of ./target #875

Closed
SimonSapin opened this issue Nov 14, 2014 · 2 comments

Comments

@SimonSapin
Copy link
Contributor

When a project contains multiple crates, they have to be packaged and published separately (#849). So I’m using --manifest-path to tell Cargo which crate to publish, starting with leaves on the dependency tree.

This crates and uses a target directory next to the respective Cargo.toml, while I expected it to use the shared target at the project’s root, like e.g. cargo build does when building path dependencies. Is this a bug, or deliberate?

@alexcrichton
Copy link
Member

I think this is a dupe of #482 as it would basically be a prerequisite for this, and this would also fall out of #482.

@alexcrichton
Copy link
Member

As in, this is currently intended (btw)

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

2 participants