83 lines
2.3 KiB
TOML
83 lines
2.3 KiB
TOML
[package]
|
|
edition = "2024"
|
|
name = "esp32-c_its-companion"
|
|
rust-version = "1.88"
|
|
version = "0.1.0"
|
|
|
|
[[bin]]
|
|
name = "esp32-c_its-companion"
|
|
path = "./src/main.rs"
|
|
|
|
[features]
|
|
default = ["spat"]
|
|
|
|
# echo CAM data on serial
|
|
cam = ["c-its-parser/cam"]
|
|
# echo DENM events on serial and BLE
|
|
denm = ["c-its-parser/denm"]
|
|
# evaluate SPAT information
|
|
spat = ["c-its-parser/spatem", "c-its-parser/mapem"]
|
|
|
|
|
|
[dependencies]
|
|
esp-hal = { version = "~1.1.0", features = ["esp32c5", "log-04", "unstable"] }
|
|
|
|
esp-rtos = { version = "0.3.0", features = [
|
|
"embassy",
|
|
"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"
|
|
embassy-executor = { version = "0.10.0", features = ["log"] }
|
|
embassy-time = { version = "0.5.0", features = ["log"] }
|
|
embedded-io = "0.7.1"
|
|
embedded-io-async = "0.7.0"
|
|
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",
|
|
"sniffer",
|
|
] }
|
|
|
|
embassy_gps = { version = "0.1.0", default-features = false, features = ["esp", "log-04"], git = "https://github.com/jbeyerstedt/embassy_gps.git", branch = "feat/rework-gpsfix" }
|
|
c-its-parser = { version = "2.2.2", default-features = false, features = [
|
|
"time",
|
|
"geo",
|
|
"libm",
|
|
"transport",
|
|
] }
|
|
chrono = { version = "0.4.44", default-features = false, features = ["alloc"] }
|
|
crossbeam-queue = { version = "0.3.12", default-features = false, features = ["alloc"] }
|
|
|
|
|
|
# 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'
|
|
strip = "debuginfo"
|
|
|
|
[profile.release-dbg]
|
|
inherits = "release"
|
|
strip = false
|