94 lines
2.2 KiB
TOML
94 lines
2.2 KiB
TOML
[package]
|
|
edition = "2024"
|
|
name = "https"
|
|
rust-version = "1.88"
|
|
version = "0.1.0"
|
|
# https://esp32.implrust.com/wifi/web-server/wifi.html
|
|
|
|
[[bin]]
|
|
name = "mqtt-master"
|
|
path = "./src/bin/main.rs"
|
|
|
|
[dependencies]
|
|
esp-hal = { version = "1.0.0", features = ["defmt", "esp32", "unstable"] }
|
|
|
|
esp-rtos = { version = "0.2.0", features = [
|
|
"defmt",
|
|
"embassy",
|
|
"esp-alloc",
|
|
"esp-radio",
|
|
"esp32",
|
|
] }
|
|
|
|
defmt = "1.0.1"
|
|
esp-bootloader-esp-idf = { version = "0.4.0", features = ["defmt", "esp32"] }
|
|
|
|
embassy-net = { version = "0.7.1", features = [
|
|
"defmt",
|
|
"dhcpv4",
|
|
"medium-ethernet",
|
|
"tcp",
|
|
"udp",
|
|
#addition:
|
|
"dns",
|
|
] }
|
|
embedded-io = { version = "0.7.1", features = ["defmt"] }
|
|
embedded-io-async = { version = "0.7.0", features = ["defmt"] }
|
|
esp-alloc = { version = "0.9.0", features = ["defmt"] }
|
|
esp-println = { version = "0.16.1", features = ["defmt-espflash", "esp32"] }
|
|
# for more networking protocol support see https://crates.io/crates/edge-net
|
|
embassy-executor = { version = "0.9.1", features = ["defmt"] }
|
|
embassy-time = { version = "0.5.0", features = ["defmt"] }
|
|
esp-radio = { version = "0.17.0", features = [
|
|
"defmt",
|
|
"esp-alloc",
|
|
"esp32",
|
|
"smoltcp",
|
|
"unstable",
|
|
"wifi",
|
|
] }
|
|
smoltcp = { version = "0.12.0", default-features = false, features = [
|
|
"defmt",
|
|
"medium-ethernet",
|
|
"multicast",
|
|
"proto-dhcpv4",
|
|
"proto-dns",
|
|
"proto-ipv4",
|
|
"socket-dns",
|
|
"socket-icmp",
|
|
"socket-raw",
|
|
"socket-tcp",
|
|
"socket-udp",
|
|
# addition:
|
|
"dns-max-server-count-4",
|
|
] }
|
|
|
|
critical-section = "1.2.0"
|
|
static_cell = "2.1.1"
|
|
|
|
reqwless = { version = "0.13.0", default-features = false, features = [
|
|
"embedded-tls",
|
|
] }
|
|
|
|
embedded-dht-rs = { version = "0.5.0", features = ["dht22"] }
|
|
|
|
[profile.dev]
|
|
# Rust debug is too slow.
|
|
# For debug builds always builds with some optimization
|
|
opt-level = "s"
|
|
|
|
[profile.release]
|
|
codegen-units = 1 # LLVM can perform better optimizations using a single thread
|
|
debug = 2
|
|
debug-assertions = false
|
|
incremental = false
|
|
lto = 'fat'
|
|
opt-level = 's'
|
|
overflow-checks = false
|
|
|
|
# cargo build
|
|
# espflash flash target/xtensa-esp32-none-elf/debug/https --monitor
|
|
|
|
# cargo build -release
|
|
# cargo run -release
|
|
# espflash flash target/xtensa-esp32-none-elf/release/https --monitor |