discovery icon indicating copy to clipboard operation
discovery copied to clipboard

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

Open rrajpaul1 opened this issue 1 year ago • 3 comments

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

rrajpaul1 avatar Feb 20 '24 14:02 rrajpaul1

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 avatar Feb 20 '24 15:02 rrajpaul1

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 avatar Feb 20 '24 16:02 rrajpaul1

Issue fixed as stated above

rrajpaul1 avatar Feb 20 '24 16:02 rrajpaul1