Since it's currently impossible to define additional dependencies for a binary, some projects use workaround with required-features (link). To build such target one need to provide these required features:
cargo build --bin pwm
error: target `pwm` in package `proving_ground` requires the features: `with_device`
Consider enabling them by passing e.g. `--features="with_device"`
flycheck-rust should extract required-features and configure rust-cargo checker to use it.
rust-cargo will have to be extended as well to support --features flag, I guess?
Since it's currently impossible to define additional dependencies for a binary, some projects use workaround with
required-features(link). To build such target one need to provide these required features:flycheck-rustshould extractrequired-featuresand configurerust-cargochecker to use it.rust-cargowill have to be extended as well to support--featuresflag, I guess?