[package] authors = ["Cyril Marpaud "] categories = ["embedded"] description = "This crate enables sensor sampling & LED strips control over Wifi/MQTT on ESP Rust Board" edition = "2021" keywords = ["rust", "embedded", "esp32-c3", "led", "i2c-sensors"] license = "CC-BY-SA-4.0" name = "oxide-spark" repository = "https://gitlab.com/cyril-marpaud/oxide-spark" resolver = "2" rust-version = "1.66" version = "0.3.3" [lib] name = "oxide_spark" path = "src/lib.rs" [profile.release] opt-level = "s" [profile.dev] debug = true # Symbols are nice and they don't increase the size on Flash opt-level = "z" [features] default = ["std", "hal", "esp-idf-sys/native"] pio = ["esp-idf-sys/pio"] all = ["std", "nightly", "experimental", "embassy"] hal = ["esp-idf-hal", "embedded-svc", "esp-idf-svc"] std = ["alloc", "esp-idf-sys/std", "esp-idf-sys/binstart", "embedded-svc?/std", "esp-idf-hal?/std", "esp-idf-svc?/std"] alloc = ["embedded-svc?/alloc", "esp-idf-hal?/alloc", "esp-idf-svc?/alloc"] nightly = ["embedded-svc?/nightly", "esp-idf-svc?/nightly"] # Future: "esp-idf-hal?/nightly" experimental = ["embedded-svc?/experimental", "esp-idf-svc?/experimental"] embassy = ["esp-idf-hal?/embassy-sync", "esp-idf-hal?/critical-section", "esp-idf-hal?/edge-executor", "esp-idf-svc?/embassy-time-driver", "esp-idf-svc?/embassy-time-isr-queue"] [dependencies] anyhow = "1.0.72" config = "0.13.3" esp-idf-hal = { version = "0.41", optional = true, default-features = false } esp-idf-svc = { version = "0.46", optional = true, default-features = false } esp-idf-sys = { version = "0.33", default-features = false } embedded-hal = "0.2.7" embedded-svc = { version = "0.25", optional = true, default-features = false } log = { version = "0.4.17", default-features = false } once_cell = "1.18.0" oxide-spark-utils = { version = "0.3", path = "../oxide-spark-utils" } rgb = "0.8.36" serde = { version = "1.0.183", features = ["derive"] } serde_json = "1.0.104" shared-bus = { version = "0.2.5", features = ["std"] } shtcx = "0.11.0" smart-leds = "0.3.0" strum = { version = "0.23.0", features = ["derive"] } thiserror = "1.0.44" tsl256x = "0.1.0" ws2812-esp32-rmt-driver = "0.6.0" [build-dependencies] embuild = "0.31.2" [package.metadata.esp-idf-sys] esp_idf_tools_install_dir = "out"