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 apk doesn't respect workspace default-members #6

Open
swiftcoder opened this issue Jan 16, 2021 · 2 comments
Open

Cargo apk doesn't respect workspace default-members #6

swiftcoder opened this issue Jan 16, 2021 · 2 comments
Labels
good first issue Good for newcomers

Comments

@swiftcoder
Copy link

Given a top-level Cargo.toml containing the a single value in the default-members key, then invoking cargo run will build and run that crate in place of the top-level crate.

[workspace]
members = ["foo", "bar"]
default-members = ["foo"]

Invoking cargo apk run currently tries to build and run the top-level crate (i.e. the workspace itself), which in my case doesn't actually contain any executables.

Is it possible for cargo apk to take note of default-members in the future?

@MarijnS95
Copy link
Member

I guess this is an issue for https://github.com/dvc94ch/cargo-subcommand/, if anyone feels like picking this up and implementing it :)

@MarijnS95 MarijnS95 added the good first issue Good for newcomers label Jan 16, 2021
@dvc94ch dvc94ch transferred this issue from rust-mobile/ndk Dec 22, 2022
@MarijnS95
Copy link
Member

rust-mobile/cargo-subcommand#25 (comment) is related, we wired up most support for it but I just haven't bothered threading this in... 🤷

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

No branches or pull requests

2 participants