Add the LICENSE file, declare the license in Cargo.toml, and say so in the README. The Zigbee stack in vendor/zigbee-rs is a separate project and keeps its own licenses (MIT or Apache-2.0). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
64 lines
2.0 KiB
TOML
64 lines
2.0 KiB
TOML
[package]
|
|
name = "smart-light"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license = "MIT"
|
|
|
|
[features]
|
|
default = ["esp32c6", "zigbee"]
|
|
## Join a Zigbee network. Disable to bring up the local hardware on its own:
|
|
## the stack reboots the device when it cannot find its coordinator.
|
|
zigbee = ["dep:esp-radio", "dep:zigbee", "dep:zigbee-cluster-library", "dep:zigbee-mac", "dep:zigbee-types"]
|
|
esp32c6 = [
|
|
"esp-alloc/esp32c6",
|
|
"esp-backtrace/esp32c6",
|
|
"esp-bootloader-esp-idf/esp32c6",
|
|
"esp-hal/esp32c6",
|
|
"esp-println/esp32c6",
|
|
"esp-radio?/esp32c6",
|
|
"esp-rtos/esp32c6",
|
|
"esp-storage/esp32c6",
|
|
"zigbee-mac?/esp32c6",
|
|
]
|
|
|
|
[dependencies]
|
|
esp-alloc = "0.11"
|
|
esp-backtrace = { version = "0.20", features = ["panic-handler", "println"] }
|
|
esp-bootloader-esp-idf = "0.6"
|
|
esp-hal = { version = "1.2", features = ["log-04", "unstable"] }
|
|
esp-println = { version = "0.18", features = ["log-04"] }
|
|
esp-radio = { version = "1.0.0-beta.1", features = ["ieee802154", "unstable"], optional = true }
|
|
esp-rtos = { version = "0.4", features = ["embassy", "log-04"] }
|
|
esp-storage = { version = "0.10", features = ["embedded-storage"] }
|
|
|
|
embassy-executor = "0.10.0"
|
|
embassy-futures = "0.1"
|
|
embassy-sync = "0.8"
|
|
embassy-time = "0.5.0"
|
|
embassy-embedded-hal = "0.6"
|
|
static_cell = "2.1"
|
|
log = "0.4"
|
|
|
|
# LED colour types, the async write trait, and the gamma/brightness helpers.
|
|
smart-leds = "0.4"
|
|
smart-leds-trait = "0.3"
|
|
esp-hal-smartled = "0.18"
|
|
libm = "0.2"
|
|
|
|
# vendored upstream: the lighting cluster is not implemented there yet, so the
|
|
# path dependency lets us add it in-tree and upstream it later
|
|
zigbee = { path = "vendor/zigbee-rs/zigbee", features = ["storage"], optional = true }
|
|
zigbee-cluster-library = { path = "vendor/zigbee-rs/zigbee-cluster-library", optional = true }
|
|
zigbee-mac = { path = "vendor/zigbee-rs/zigbee-mac", optional = true }
|
|
zigbee-types = { path = "vendor/zigbee-rs/zigbee-types", optional = true }
|
|
|
|
[profile.release]
|
|
debug = true
|
|
debug-assertions = false
|
|
lto = "fat"
|
|
codegen-units = 1
|
|
opt-level = "s"
|
|
|
|
[profile.dev]
|
|
opt-level = "s"
|