[package]
name = "cmdr-joystick-25"
version = "0.2.0"
edition = "2021"

[dependencies]
# rp2040_hal dependencies copied from v0.11
cortex-m = "0.7.2"
cortex-m-rt = "0.7"
cortex-m-rtic = "1.1.4"
critical-section = {version = "1.2.0"}
defmt = "0.3"
defmt-rtt = "0.4.0"
dht-sensor = "0.2.1"
embedded-alloc = "0.5.1"
embedded-hal = "1.0.0"
embedded-hal-async = "1.0.0"
embedded-hal-bus = {version = "0.2.0", features = ["defmt-03"]}
embedded-io = "0.6.1"
embedded_hal_0_2 = {package = "embedded-hal", version = "0.2.5", features = ["unproven"]}
fugit = "0.3.6"
futures = {version = "0.3.30", default-features = false, features = ["async-await"]}
hd44780-driver = "0.4.0"
nb = "1.0"
panic-halt = "0.2.0"
panic-probe = {version = "0.3.1", features = ["print-defmt"]}
pio = "0.2.0"
pio-proc = "0.2.0"
portable-atomic = {version = "1.7.0", features = ["critical-section"]}
rp2040-boot2 = "0.3.0"
rp2040-hal = {version = "0.11.0", features = ["critical-section-impl", "rt", "defmt"]}
static_cell = "2.1.0"

# USB hid dependencies
usbd-human-interface-device = {version = "0.5.1"}
usb-device = "0.3"
packed_struct = { version = "0.10", default-features = false }
heapless = "0.8"

# EEPROM dependencies
eeprom24x = "0.7.2"

# ws2812-pio dependencies
ws2812-pio = "0.9.0"
smart-leds = "0.4.0"

# Analog filter dependencies
dyn-smooth = "0.2.0"
libm = "0.2.7"

[lints.clippy]
too_long_first_doc_paragraph = "allow"

[profile.release]
codegen-units = 1
debug = 0
debug-assertions = false
incremental = false
lto = 'fat'
opt-level = 3
overflow-checks = false

[lib]
path = "src/lib.rs"

[[bin]]
name = "cmdr-joystick-25"
path = "src/main.rs"
bench = false
test = false

[features]
default = []
std = []
