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: unexpected cfg condition value: jack #43

Open
prasad83 opened this issue Jan 16, 2025 · 1 comment
Open

error: unexpected cfg condition value: jack #43

prasad83 opened this issue Jan 16, 2025 · 1 comment

Comments

@prasad83
Copy link

I was greeted with following:

error: unexpected `cfg` condition value: `jack`
  --> src/main.rs:54:9
   |
54 |         feature = "jack"
   |         ^^^^^^^^^^^^^^^^
   |
   = note: expected values for `feature` are: `default`
   = help: consider adding `jack` as a feature in `Cargo.toml`
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
   = note: `-D unexpected-cfgs` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(unexpected_cfgs)]
@prasad83
Copy link
Author

Adding the following in Cargo.toml solved

[features]
default  = []
jack = [] # add this

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