-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update esp-hal to 0.23.0, esp-wifi to 0.12.0. Deduplicate mTLS exampl…
…es (#66) * chore: Update esp-hal to 0.23.0, esp-wifi to 0.12.0 * clippy * chore: Deduplicate mTLS examples behind a feature. mTLS and non-mTLS examples are essentially the same, structurally, but with different parameters. This merge removes a huge maintenance burden by reducing the amount of example files. * Update README.md
- Loading branch information
1 parent
9cce6c2
commit 1806f8f
Showing
22 changed files
with
276 additions
and
1,143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ jobs: | |
- uses: dtolnay/rust-toolchain@v1 | ||
with: | ||
target: riscv32imc-unknown-none-elf | ||
toolchain: nightly-2024-12-01 | ||
toolchain: nightly | ||
components: rust-src,rustfmt | ||
- uses: esp-rs/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ version = "0.1.0" | |
authors = ["bjoernQ <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT OR Apache-2.0" | ||
rust-version = "1.82" | ||
rust-version = "1.84" | ||
|
||
[profile.release] | ||
debug = true | ||
|
@@ -24,39 +24,32 @@ opt-level = "z" | |
opt-level = 3 | ||
|
||
[dependencies] | ||
esp-hal = { version = "0.22.0", optional = true } | ||
esp-backtrace = { version = "0.14.0", optional = true, features = [ | ||
esp-hal = { version = "0.23.0", optional = true } | ||
esp-backtrace = { version = "0.15.0", optional = true, features = [ | ||
"panic-handler", | ||
"println", | ||
"exception-handler", | ||
] } | ||
esp-println = { version = "0.12.0", optional = true, features = ["log"] } | ||
esp-hal-embassy = { version = "0.5.0", optional = true } | ||
esp-println = { version = "0.13.0", optional = true, features = ["log"] } | ||
esp-hal-embassy = { version = "0.6.0", optional = true } | ||
|
||
embassy-time = { version = "0.3.0", optional = true } | ||
embassy-executor = { version = "0.6", package = "embassy-executor", features = [ | ||
embassy-time = { version = "0.4.0", optional = true } | ||
embassy-executor = { version = "0.7", package = "embassy-executor", features = [ | ||
"nightly", | ||
"integrated-timers", | ||
], optional = true } | ||
embassy-net = { version = "0.5.0", features = [ | ||
embassy-net = { version = "0.6.0", features = [ | ||
"tcp", | ||
"udp", | ||
"dhcpv4", | ||
"medium-ethernet", | ||
], optional = true } | ||
|
||
esp-wifi = { version = "0.11.0", optional = true, features = ["sys-logs", "utils", "wifi"] } | ||
blocking-network-stack = { git = "https://github.com/bjoernQ/blocking-network-stack", rev = "1c581661d78e0cf0f17b936297179b993fb149d7" } | ||
smoltcp11 = { package = "smoltcp", version = "0.11.0", optional = true, default-features = false, features = [ | ||
"proto-ipv4", | ||
"socket-tcp", | ||
"socket-icmp", | ||
"socket-udp", | ||
"medium-ethernet", | ||
"proto-dhcpv4", | ||
"socket-raw", | ||
"socket-dhcpv4", | ||
esp-wifi = { version = "0.12.0", optional = true, features = [ | ||
"sys-logs", | ||
"utils", | ||
"wifi", | ||
] } | ||
blocking-network-stack = { git = "https://github.com/bjoernQ/blocking-network-stack", rev = "b3ecefc222d8806edd221f266999ca339c52d34e" } | ||
smoltcp = { version = "0.12.0", optional = true, default-features = false, features = [ | ||
"proto-ipv4", | ||
"socket-tcp", | ||
|
@@ -76,17 +69,15 @@ static_cell = { version = "2.1", features = ["nightly"] } | |
|
||
esp-mbedtls = { path = "./esp-mbedtls" } | ||
|
||
edge-http = { version = "0.4.0", optional = true } | ||
edge-nal = { version = "0.4.0", optional = true } | ||
edge-nal-embassy = { version = "0.4.0", optional = true } | ||
edge-http = { version = "0.5.0", optional = true } | ||
edge-nal = { version = "0.5.0", optional = true } | ||
edge-nal-embassy = { version = "0.5.0", optional = true } | ||
cfg-if = "1.0.0" | ||
esp-alloc = { version = "0.5.0", optional = true} | ||
esp-alloc = { version = "0.6.0", optional = true } | ||
enumset = { version = "1", default-features = false } | ||
|
||
tinyrlibc = { version = "0.5", optional = true, default-features = false } | ||
|
||
[target.'cfg(target_os = "espidf")'.dependencies] | ||
esp-idf-svc = { version = "0.50", features = ["binstart"] } | ||
esp-idf-svc = { version = "0.51", features = ["binstart"] } | ||
|
||
[[example]] | ||
name = "crypto_self_test" | ||
|
@@ -99,25 +90,35 @@ name = "crypto_self_test_std" | |
name = "async_client" | ||
required-features = ["examples-async"] | ||
|
||
[[example]] | ||
name = "async_client_mTLS" | ||
required-features = ["examples-async"] | ||
|
||
[[example]] | ||
name = "async_server" | ||
required-features = ["examples-async"] | ||
|
||
[[example]] | ||
name = "async_server_mTLS" | ||
required-features = ["examples-async"] | ||
|
||
[[example]] | ||
name = "edge_server" | ||
required-features = ["examples-async", "edge-http"] | ||
|
||
[features] | ||
examples = ["esp-hal", "esp-backtrace", "esp-println", "esp-wifi", "smoltcp", "smoltcp11", "esp-alloc"] | ||
examples-async = ["examples", "esp-hal-embassy", "embassy-time", "embassy-executor", "embassy-net", "edge-http", "edge-nal", "edge-nal-embassy", "esp-mbedtls/async", "esp-mbedtls/edge-nal"] | ||
examples = [ | ||
"esp-hal", | ||
"esp-backtrace", | ||
"esp-println", | ||
"esp-wifi", | ||
"smoltcp", | ||
"esp-alloc", | ||
] | ||
examples-async = [ | ||
"examples", | ||
"esp-hal-embassy", | ||
"embassy-time", | ||
"embassy-executor", | ||
"embassy-net", | ||
"edge-http", | ||
"edge-nal", | ||
"edge-nal-embassy", | ||
"esp-mbedtls/async", | ||
"esp-mbedtls/edge-nal", | ||
] | ||
examples-std = ["critical-section/std"] | ||
|
||
esp32 = [ | ||
|
@@ -135,7 +136,6 @@ esp32c3 = [ | |
"esp-println?/esp32c3", | ||
"esp-wifi?/esp32c3", | ||
"esp-mbedtls/esp32c3", | ||
"tinyrlibc/memchr", | ||
] | ||
esp32s2 = [ | ||
"esp-hal?/esp32s2", | ||
|
@@ -154,5 +154,13 @@ esp32s3 = [ | |
"esp-mbedtls/esp32s3", | ||
] | ||
|
||
# Enable mTLS for the running example. See example documentation for further details. | ||
# Applies to: | ||
# - async_client | ||
# - async_server | ||
# - sync_client | ||
# - sync_server | ||
mtls = [] | ||
|
||
[build-dependencies] | ||
embuild = { version = "0.33", features = ["espidf"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
use esp_hal::prelude::nb; | ||
use esp_hal::sha::{Context, ShaDigest}; | ||
|
||
mod sha1; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.