[package]
edition = "2024"
name = "rotary_encoder"
version = "0.1.0"
publish = false

[dependencies]
# Change stm32f103c8 to your chip name, if necessary.
embassy-stm32 = { version = "0.4.0", features = ["defmt", "stm32f103c8", "unstable-pac", "memory-x", "time-driver-any", "exti"] }
embassy-sync = { version = "0.7.2", features = ["defmt"] }
embassy-executor = { version = "0.9.0", features = ["arch-cortex-m", "executor-thread", "defmt"] }
embassy-time = { version = "0.5.0", features = ["defmt", "defmt-timestamp-uptime", "tick-hz-32_768"] }
embassy-usb = { version = "0.5.1", features = ["defmt"] }
embassy-futures = { version = "0.1.2" }

defmt = "1.0.1"
defmt-rtt = "1.0.0"

cortex-m = { version = "0.7.6", features = ["inline-asm", "critical-section-single-core"] }
cortex-m-rt = "0.7.0"
embedded-hal = "0.2.6"
panic-probe = { version = "1.0.0", features = ["print-defmt"] }
heapless = { version = "0.8", default-features = false }
nb = "1.0.0"
static_cell = "2.0.0"
ws2812-async = { git = "https://github.com/kalkyl/ws2812-async" }
smart-leds = "0.4.0"

[profile.dev]
opt-level = "s"

[profile.release]
debug = 2

[[bin]]
path = "src/main.rs"
name = "rotary_encoder"
test = false
bench = false
