0
0
Fork 0

setup rust project using esp-generate

This commit is contained in:
Jannik Beyerstedt 2026-04-25 15:07:54 +02:00
commit 8cfb908678
10 changed files with 1825 additions and 0 deletions

65
Cargo.toml Normal file
View file

@ -0,0 +1,65 @@
[package]
edition = "2024"
name = "esp32-c_its-companion"
rust-version = "1.88"
version = "0.1.0"
[[bin]]
name = "esp32-c_its-companion"
path = "./src/bin/main.rs"
[dependencies]
esp-hal = { version = "~1.1.0", features = ["esp32c5", "log-04", "unstable"] }
esp-rtos = { version = "0.3.0", features = [
"esp-alloc",
"esp-radio",
"esp32c5",
"log-04",
] }
esp-bootloader-esp-idf = { version = "0.5.0", features = ["esp32c5", "log-04"] }
log = "0.4.27"
critical-section = "1.2.0"
embedded-io = "0.7.1"
esp-alloc = "0.10.0"
esp-backtrace = { version = "0.19.0", features = [
"esp32c5",
"panic-handler",
"println",
] }
esp-println = { version = "0.17.0", features = ["esp32c5", "log-04"] }
esp-radio = { version = "0.18.0", features = [
"esp-alloc",
"esp32c5",
"log-04",
"unstable",
"wifi",
] }
smoltcp = { version = "0.13.0", default-features = false, features = [
"log",
"medium-ethernet",
"multicast",
"proto-dhcpv4",
"proto-dns",
"proto-ipv4",
"socket-dns",
"socket-icmp",
"socket-raw",
"socket-tcp",
"socket-udp",
] }
# For fine tuning these settings, please refer to https://doc.rust-lang.org/cargo/reference/profiles.html
[profile.dev]
# The default debug profile is too slow and too big for resource-constrained devices.
# Always build with some optimizations enabled.
opt-level = "s"
[profile.release]
codegen-units = 1 # LLVM can perform better optimizations using a single thread
debug = 2 # prefer slower builds but better debugging experience
lto = 'fat'
opt-level = 's'