Skip to content

Commit

Permalink
Update Cargo.tomls
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Sep 5, 2023
1 parent f33b1d2 commit d0485d0
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 44 deletions.
22 changes: 19 additions & 3 deletions esp-wifi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,22 @@ ps-min-modem = []
esp-now = [ "wifi" ]
big-heap = []
ipv6 = ["smoltcp?/proto-ipv6"]
defmt = ["dep:defmt", "smoltcp?/defmt"]
log-defmt = ["defmt"]
log = ["dep:log"]
defmt = [
"dep:defmt",
"smoltcp?/defmt",
"esp32c3-hal?/defmt",
"esp32c2-hal?/defmt",
"esp32c6-hal?/defmt",
"esp32-hal?/defmt",
"esp32s2-hal?/defmt",
"esp32s3-hal?/defmt",
]
log = [
"dep:log",
"esp32c3-hal?/log",
"esp32c2-hal?/log",
"esp32c6-hal?/log",
"esp32-hal?/log",
"esp32s2-hal?/log",
"esp32s3-hal?/log",
]
16 changes: 9 additions & 7 deletions examples-esp32/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
embedded-svc.workspace = true
bleps.workspace = true
embassy-executor.workspace = true
embassy-executor = { workspace = true, optional = true }
embassy-time.workspace = true
embassy-futures.workspace = true
futures-util.workspace = true
Expand All @@ -20,15 +20,17 @@ embassy-net = { workspace = true, optional = true }

esp32-hal.workspace = true
examples-util = { path = "../examples-util", features = ["esp32"] }
esp-println = { workspace = true, features = [ "esp32" ] }
esp-backtrace = { workspace = true, features = ["esp32"] }
esp-wifi = { path = "../esp-wifi", features = ["esp32"] }
embedded-hal-async = { workspace = true, optional = true }

[dev-dependencies]
esp-println = { workspace = true, features = ["esp32", "log"] }

[features]
default = ["esp32"]
esp32 = ["embassy-executor/arch-xtensa"]
async = ["esp-wifi/async", "bleps/async", "dep:embedded-hal-async", "esp32-hal/async", "esp32-hal/embassy-time-timg0"]
default = ["esp32", "log"]
esp32 = []
async = ["esp-wifi/async", "bleps/async", "dep:embedded-hal-async", "esp32-hal/async", "esp32-hal/embassy-time-timg0", "dep:embassy-executor", "embassy-executor?/arch-xtensa"]
embassy-net = ["esp-wifi/embassy-net","dep:embassy-net"]
wifi-logs = ["esp-wifi/wifi-logs"]
dump-packets = ["esp-wifi/dump-packets"]
Expand All @@ -42,5 +44,5 @@ ps-min-modem = ["esp-wifi/ps-min-modem"]
esp-now = ["esp-wifi/esp-now"]
ipv6 = ["esp-wifi/ipv6"]
coex = ["esp-wifi/coex"]
log = ["esp-println/log", "esp-wifi/log", "dep:log"]
log-defmt = ["esp-wifi/log-defmt"]
log = ["esp-wifi/log", "dep:log"]
defmt = ["esp-wifi/defmt"]
16 changes: 9 additions & 7 deletions examples-esp32c2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
embedded-svc.workspace = true
bleps.workspace = true
embassy-executor.workspace = true
embassy-executor = { workspace = true, optional = true }
embassy-time.workspace = true
embassy-futures.workspace = true
futures-util.workspace = true
Expand All @@ -20,15 +20,17 @@ embassy-net = { workspace = true, optional = true }

esp32c2-hal.workspace = true
examples-util = { path = "../examples-util", features = ["esp32c2"] }
esp-println = { workspace = true, features = [ "esp32c2" ] }
esp-backtrace = { workspace = true, features = ["esp32c2"] }
esp-wifi = { path = "../esp-wifi", features = ["esp32c2"] }
embedded-hal-async = { workspace = true, optional = true }

[dev-dependencies]
esp-println = { workspace = true, features = [ "esp32c2", "log" ] }

[features]
default = ["esp32c2"]
esp32c2 = ["embassy-executor/arch-riscv32"]
async = ["esp-wifi/async", "bleps/async", "dep:embedded-hal-async", "esp32c2-hal/async", "esp32c2-hal/embassy-time-timg0"]
default = ["esp32c2", "log"]
esp32c2 = []
async = ["esp-wifi/async", "bleps/async", "dep:embedded-hal-async", "esp32c2-hal/async", "esp32c2-hal/embassy-time-timg0", "dep:embassy-executor", "embassy-executor?/arch-riscv32"]
embassy-net = ["esp-wifi/embassy-net","dep:embassy-net"]
wifi-logs = ["esp-wifi/wifi-logs"]
dump-packets = ["esp-wifi/dump-packets"]
Expand All @@ -43,5 +45,5 @@ ps-min-modem = ["esp-wifi/ps-min-modem"]
esp-now = ["esp-wifi/esp-now"]
ipv6 = ["esp-wifi/ipv6"]
#coex = ["esp-wifi/coex"]
log = ["esp-println/log", "esp-wifi/log", "dep:log"]
log-defmt = ["esp-wifi/log-defmt"]
log = ["esp-wifi/log", "dep:log"]
defmt = ["esp-wifi/defmt"]
16 changes: 9 additions & 7 deletions examples-esp32c3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
embedded-svc.workspace = true
bleps.workspace = true
embassy-executor.workspace = true
embassy-executor = { workspace = true, optional = true }
embassy-time.workspace = true
embassy-futures.workspace = true
futures-util.workspace = true
Expand All @@ -20,15 +20,17 @@ embassy-net = { workspace = true, optional = true }

esp32c3-hal.workspace = true
examples-util = { path = "../examples-util", features = ["esp32c3"] }
esp-println = { workspace = true, features = [ "esp32c3" ] }
esp-backtrace = { workspace = true, features = ["esp32c3"] }
esp-wifi = { path = "../esp-wifi", features = ["esp32c3"] }
embedded-hal-async = { workspace = true, optional = true }

[dev-dependencies]
esp-println = { workspace = true, features = [ "esp32c3", "log" ] }

[features]
default = ["esp32c3"]
esp32c3 = ["embassy-executor/arch-riscv32"]
async = ["esp-wifi/async", "bleps/async", "dep:embedded-hal-async", "esp32c3-hal/async", "esp32c3-hal/embassy-time-timg0"]
default = ["esp32c3", "log"]
esp32c3 = []
async = ["esp-wifi/async", "bleps/async", "dep:embedded-hal-async", "esp32c3-hal/async", "esp32c3-hal/embassy-time-timg0", "dep:embassy-executor", "embassy-executor?/arch-riscv32"]
embassy-net = ["esp-wifi/embassy-net","dep:embassy-net"]
wifi-logs = ["esp-wifi/wifi-logs"]
dump-packets = ["esp-wifi/dump-packets"]
Expand All @@ -43,5 +45,5 @@ ps-min-modem = ["esp-wifi/ps-min-modem"]
esp-now = ["esp-wifi/esp-now"]
ipv6 = ["esp-wifi/ipv6"]
coex = ["esp-wifi/coex"]
log = ["esp-println/log", "esp-wifi/log", "dep:log"]
log-defmt = ["esp-wifi/log-defmt"]
log = ["esp-wifi/log", "dep:log"]
defmt = ["esp-wifi/defmt"]
16 changes: 9 additions & 7 deletions examples-esp32c6/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
embedded-svc.workspace = true
bleps.workspace = true
embassy-executor.workspace = true
embassy-executor = { workspace = true, optional = true }
embassy-time.workspace = true
embassy-futures.workspace = true
futures-util.workspace = true
Expand All @@ -20,14 +20,16 @@ embassy-net = { workspace = true, optional = true }

esp32c6-hal.workspace = true
examples-util = { path = "../examples-util", features = ["esp32c6"] }
esp-println = { workspace = true, features = [ "esp32c6" ] }
esp-backtrace = { workspace = true, features = ["esp32c6"] }
esp-wifi = { path = "../esp-wifi", features = ["esp32c6"] }

[dev-dependencies]
esp-println = { workspace = true, features = [ "esp32c6", "log" ] }

[features]
default = ["esp32c6"]
esp32c6 = ["embassy-executor/arch-riscv32"]
async = ["esp-wifi/async", "esp32c6-hal/embassy-time-timg0"]
default = ["esp32c6", "log"]
esp32c6 = []
async = ["esp-wifi/async", "esp32c6-hal/embassy-time-timg0", "dep:embassy-executor", "embassy-executor?/arch-riscv32"]
embassy-net = ["esp-wifi/embassy-net", "dep:embassy-net"]
wifi-logs = ["esp-wifi/wifi-logs"]
dump-packets = ["esp-wifi/dump-packets"]
Expand All @@ -42,5 +44,5 @@ ps-min-modem = ["esp-wifi/ps-min-modem"]
esp-now = ["esp-wifi/esp-now"]
ipv6 = ["esp-wifi/ipv6"]
#coex = ["esp-wifi/coex"]
log = ["esp-println/log", "esp-wifi/log", "dep:log"]
log-defmt = ["esp-wifi/log-defmt"]
log = ["esp-wifi/log", "dep:log"]
defmt = ["esp-wifi/defmt"]
15 changes: 9 additions & 6 deletions examples-esp32s2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
embedded-svc.workspace = true
bleps.workspace = true
embassy-executor.workspace = true
embassy-executor = { workspace = true, optional = true }
embassy-time.workspace = true
embassy-futures.workspace = true
futures-util.workspace = true
Expand All @@ -20,14 +20,16 @@ embassy-net = { workspace = true, optional = true }

esp32s2-hal.workspace = true
examples-util = { path = "../examples-util", features = ["esp32s2"] }
esp-println = { workspace = true, features = [ "esp32s2" ] }
esp-backtrace = { workspace = true, features = ["esp32s2"] }
esp-wifi = { path = "../esp-wifi", features = ["esp32s2"] }

[dev-dependencies]
esp-println = { workspace = true, features = [ "esp32s2", "log" ] }

[features]
default = ["esp32s2"]
esp32s2 = ["embassy-executor/arch-xtensa"]
async = ["esp-wifi/async", "esp32s2-hal/embassy-time-timg0"]
default = ["esp32s2", "log"]
esp32s2 = []
async = ["esp-wifi/async", "esp32s2-hal/embassy-time-timg0", "dep:embassy-executor", "embassy-executor?/arch-xtensa"]
embassy-net = ["esp-wifi/embassy-net","dep:embassy-net"]
wifi-logs = ["esp-wifi/wifi-logs"]
dump-packets = ["esp-wifi/dump-packets"]
Expand All @@ -40,4 +42,5 @@ phy-enable-usb = ["esp-wifi/phy-enable-usb"]
ps-min-modem = ["esp-wifi/ps-min-modem"]
esp-now = ["esp-wifi/esp-now"]
ipv6 = ["esp-wifi/ipv6"]
log = ["esp-println/log", "esp-wifi/log", "dep:log"]
log = ["esp-wifi/log", "dep:log"]
defmt = ["esp-wifi/defmt"]
16 changes: 9 additions & 7 deletions examples-esp32s3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
embedded-svc.workspace = true
bleps.workspace = true
embassy-executor.workspace = true
embassy-executor = { workspace = true, optional = true }
embassy-time.workspace = true
embassy-futures.workspace = true
futures-util.workspace = true
Expand All @@ -20,15 +20,17 @@ embassy-net = { workspace = true, optional = true }

esp32s3-hal.workspace = true
examples-util = { path = "../examples-util", features = ["esp32s3"] }
esp-println = { workspace = true, features = [ "esp32s3" ] }
esp-backtrace = { workspace = true, features = ["esp32s3"] }
esp-wifi = { path = "../esp-wifi", features = ["esp32s3"] }
embedded-hal-async = { workspace = true, optional = true }

[dev-dependencies]
esp-println = { workspace = true, features = [ "esp32s3", "log" ] }

[features]
default = ["esp32s3"]
esp32s3 = ["embassy-executor/arch-xtensa"]
async = ["esp-wifi/async", "bleps/async", "dep:embedded-hal-async", "esp32s3-hal/async", "esp32s3-hal/embassy-time-timg0"]
default = ["esp32s3", "log"]
esp32s3 = []
async = ["esp-wifi/async", "bleps/async", "dep:embedded-hal-async", "esp32s3-hal/async", "esp32s3-hal/embassy-time-timg0", "dep:embassy-executor", "embassy-executor?/arch-xtensa"]
embassy-net = ["esp-wifi/embassy-net","dep:embassy-net"]
wifi-logs = ["esp-wifi/wifi-logs"]
dump-packets = ["esp-wifi/dump-packets"]
Expand All @@ -43,5 +45,5 @@ ps-min-modem = ["esp-wifi/ps-min-modem"]
esp-now = ["esp-wifi/esp-now"]
ipv6 = ["esp-wifi/ipv6"]
coex = ["esp-wifi/coex"]
log = ["esp-println/log", "esp-wifi/log", "dep:log"]
log-defmt = ["esp-wifi/log-defmt"]
log = ["esp-wifi/log", "dep:log"]
defmt = ["esp-wifi/defmt"]

0 comments on commit d0485d0

Please sign in to comment.