81 lines
1.8 KiB
TOML
81 lines
1.8 KiB
TOML
[package]
|
|
edition = "2024"
|
|
name = "mqtt-master"
|
|
rust-version = "1.88"
|
|
version = "0.1.1"
|
|
|
|
[[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",
|
|
] }
|
|
|
|
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",
|
|
] }
|
|
|
|
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"] }
|
|
|
|
rlib = { path = "../rlib" }
|
|
|
|
[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 |