rust-embedded / discovery

Discover the world of microcontrollers through Rust!
https://docs.rust-embedded.org/discovery/
Apache License 2.0
1.48k stars 513 forks source link

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

Open rrajpaul1 opened 8 months ago

rrajpaul1 commented 8 months ago

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

rrajpaul1 commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

Issue fixed as stated above