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

error: Package led-roulette v0.2.0 does not have the feature v2` #561

Open
rrajpaul1 opened this issue Feb 20, 2024 · 3 comments
Open

error: Package led-roulette v0.2.0 does not have the feature v2` #561

rrajpaul1 opened this issue Feb 20, 2024 · 3 comments

Comments

@rrajpaul1
Copy link

I am getting the above error for 05-led-roulette when running cargo embed --feature v2 --target thumbv7em-non-eabihf

@rrajpaul1
Copy link
Author

I tried adding below to cargo.toml
[features]
default = ["v2"]
v2 = ["microbit-v2"]
error: failed to parse manifest
Caused by: feature v2 includes microbit-v2 which is neither dependency nor another feature

@rrajpaul1
Copy link
Author

fixed the issue by adding
microbit-v2 = { version = "0.13.0", optional = true } and keeping the below section

[features]
default = ["v2"]
v2 = ["microbit-v2"]

@rrajpaul1
Copy link
Author

Issue fixed as stated above

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

1 participant