Skip to content

Get "required-features" for target and set them #68

Description

@little-arhat

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions