build: configure different displays based on cargo configs
This commit is contained in:
21
Cargo.toml
21
Cargo.toml
@@ -18,7 +18,12 @@ debug = true # Symbols are nice and they don't increase the size on Flash
|
||||
opt-level = "z"
|
||||
|
||||
[features]
|
||||
default = ["std", "embassy", "esp-idf-svc/native"]
|
||||
default = ["std", "embassy", "esp-idf-svc/native", "rmt", "smart-leds"]
|
||||
|
||||
embedded-graphics = ["dep:embedded-graphics", "ws2812-esp32-rmt-driver/embedded-graphics-core"]
|
||||
smart-leds = ["dep:smart-leds", "dep:smart-leds-trait", "ws2812-esp32-rmt-driver/smart-leds-trait"]
|
||||
spi = ["dep:ws2812-spi"]
|
||||
rmt = ["dep:ws2812-esp32-rmt-driver"]
|
||||
|
||||
pio = ["esp-idf-svc/pio"]
|
||||
std = ["alloc", "esp-idf-svc/binstart", "esp-idf-svc/std"]
|
||||
@@ -30,17 +35,21 @@ embassy = ["esp-idf-svc/embassy-sync", "esp-idf-svc/critical-section", "esp-idf-
|
||||
[dependencies]
|
||||
log = { version = "0.4", default-features = false }
|
||||
esp-idf-svc = { version = "0.49", default-features = false }
|
||||
ws2812-esp32-rmt-driver = { version = "*", features = ["embedded-graphics-core", "smart-leds-trait"]}
|
||||
embedded-graphics = { version = "0.8.1", features = ["fixed_point", "defmt"] }
|
||||
hsv = "0.1.1"
|
||||
palette = { version = "0.7.6" }
|
||||
embedded-canvas = "0.3.1"
|
||||
embassy-executor = "0.6.0"
|
||||
running-average = "0.1.0"
|
||||
ws2812-spi = "0.5.0"
|
||||
smart-leds-trait = "0.3.0"
|
||||
rgb = "0.8.50"
|
||||
smart-leds = "0.4.0"
|
||||
|
||||
ws2812-esp32-rmt-driver = { version = "*", optional = true }
|
||||
|
||||
ws2812-spi = { version = "0.5.0", optional = true }
|
||||
|
||||
smart-leds-trait = { version = "0.3.0", optional = true }
|
||||
smart-leds = { version = "0.4.0", optional = true }
|
||||
|
||||
embedded-graphics = { version = "0.8.1", optional = true, features = ["fixed_point", "defmt"] }
|
||||
|
||||
[build-dependencies]
|
||||
embuild = "0.32.0"
|
||||
|
Reference in New Issue
Block a user