Skip to content

Commit

Permalink
Don't add smoltcp if only using BLE (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani authored Feb 11, 2025
1 parent a92c597 commit ec12817
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- No longer include `smoltcp` as a dependency for BLE-only configurations (#108)

### Removed

## [0.2.2] - 2025-01-16
Expand Down
38 changes: 19 additions & 19 deletions template/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,31 @@ esp-alloc = { version = "0.6.0" }
embedded-io = "0.6.1"
#IF option("embassy")
embedded-io-async = "0.6.1"
#ENDIF embassy
#IF option("wifi")
embassy-net = { version = "0.6.0", features = [ "tcp", "udp", "dhcpv4", "medium-ethernet"] }
#ENDIF
#ENDIF
smoltcp = { version = "0.12.0", default-features = false, features = [
"medium-ethernet",
"multicast",
"proto-dhcpv4",
"proto-dns",
"proto-ipv4",
"socket-dns",
"socket-raw",
"socket-tcp",
"socket-udp",
"socket-icmp",
] }
#ENDIF wifi
#IF option("embassy") && option("wifi")
# for more networking protocol support see https://crates.io/crates/edge-net
#ENDIF embassy && wifi
esp-wifi = { version = "0.12.0", default-features=false, features = [
#REPLACE esp32c6 mcu
"esp32c6",
"utils",
#IF option("wifi")
"wifi",
"utils",
#ENDIF
#IF option("ble")
"ble",
Expand All @@ -69,25 +84,10 @@ esp-wifi = { version = "0.12.0", default-features=false, features = [
#ENDIF
] }
heapless = { version = "0.8.0", default-features = false }
smoltcp = { version = "0.12.0", default-features = false, features = [
"medium-ethernet",
"multicast",
"proto-dhcpv4",
"proto-dns",
"proto-ipv4",
"socket-dns",
"socket-raw",
"socket-tcp",
"socket-udp",
"socket-icmp",
] }
#IF option("embassy")
# for more networking protocol support see https://crates.io/crates/edge-net
#ENDIF
#ENDIF
#IF option("ble")
#+bleps = { git = "https://github.com/bjoernQ/bleps", package = "bleps", rev = "a5148d8ae679e021b78f53fd33afb8bb35d0b62e", features = [ "macros", "async"] }
#ENDIF
#ENDIF wifi || ble
#IF option("embassy")
embassy-executor = { version = "0.7.0", features = [
"task-arena-size-20480",
Expand Down

0 comments on commit ec12817

Please sign in to comment.