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

esp-println fails to build with anything but auto feature #3053

Open
theembeddedrustacean opened this issue Jan 29, 2025 · 1 comment
Open
Labels
bug Something isn't working

Comments

@theembeddedrustacean
Copy link

The build fails when attempting to activate the jtag-serial or uart features for the esp-println crate. For example, when doing the following:

esp-println = { version = "0.13.0", features = ["esp32c6", "log", "jtag-serial"] }

The build fails with the following error:

ERROR: expected exactly one enabled feature from feature group:
  ["jtag-serial", "uart", "auto"]

error: proc macro panicked
  --> /Users/omarhiari/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-println-0.13.0/build.rs:12:5
   |
12 |     assert_unique_used_features!("jtag-serial", "uart", "auto");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: message: Build failed
   = note: this error originates in the macro `assert_unique_used_features` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `esp-println` (build script) due to 1 previous error

This does not make much sense since exactly one of the listed features is being enabled.

@theembeddedrustacean theembeddedrustacean added bug Something isn't working status:needs-attention This should be prioritized labels Jan 29, 2025
@bjoernQ
Copy link
Contributor

bjoernQ commented Jan 29, 2025

You need to opt-out of the default features (

default = ["critical-section", "colors", "auto"]
) via default-features=false (and add the wanted features since none of them will be enabled then)

@MabezDev MabezDev removed the status:needs-attention This should be prioritized label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

3 participants