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

cargo: forward "unproven" feature dependency #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ repository = "https://github.com/chrysn/efm32gg-hal"
[dependencies]
cortex-m = "0.5.2"

# version is a wild guess. dependency on unproven features should only be
# present if own unproven feature is active (but how do i do that?).
embedded-hal = { version = "0.2.0", features = ["unproven"] }
# version is a wild guess.
embedded-hal = "0.2.0"

# for efm32gg, it's probably convenient to depend on the biggest available
# svd2rust-generated crate (the chips will let us; FWICT all EFM32GG are the
Expand All @@ -32,8 +31,8 @@ efr32xg1 = { version = "0.2.0", optional = true }

[features]

default = ["unproven"]
unproven = []
default = [ "unproven" ]
unproven = [ "embedded-hal/unproven" ]

# Used by the newer generation of chips where peripherals have their individual
# functions routable, not only peripherals as a whole.
Expand Down