[package] name = "jiggly" version = "0.2.0" edition = "2024" authors = ["Stephen Waits "] description = "USB mouse jiggler firmware for the Seeed Studio Xiao RP2040 — keeps your screen awake during the workday, then politely shuts up so you can go home." license = "MIT" repository = "https://github.com/swaits/jiggly" readme = "README.md" keywords = ["embedded", "rp2040", "usb-hid", "embassy", "no-std"] categories = ["embedded", "no-std"] publish = false # firmware binary; not a crates.io library [features] default = ["embassy"] # `hsmc` emits `#[cfg(feature = "embassy")]` from inside `statechart!` and # the cfg is evaluated in this crate's context, so we mirror the flag here # and forward it to `hsmc/embassy`. embassy = ["hsmc/embassy"] [dependencies] embassy-executor = { version = "0.10.0", features = ["platform-cortex-m", "executor-thread"] } embassy-time = { version = "0.5.1" } embassy-rp = { version = "0.10.0", features = ["rp2040", "time-driver", "critical-section-impl", "unstable-pac"] } embassy-sync = "0.8" embassy-futures = "0.1" embassy-usb = "0.6.0" hsmc = { version = "0.5.1", default-features = false } usbd-hid = "0.10.0" smart-leds = "0.4" libm = "0.2" cortex-m = { version = "0.7.6", features = ["inline-asm"] } cortex-m-rt = "0.7.5" panic-reset = "0.1" static_cell = "2.1" # Cortex-M0+ has no hardware CAS; static_cell + heapless need this shim. portable-atomic = { version = "1.13", features = ["critical-section"] } [lints.rust] unexpected_cfgs = { level = "allow", check-cfg = ['cfg(feature, values("tokio", "embassy"))'] } [profile.release] lto = "fat" # cross-crate inlining and dead-code elimination opt-level = "z" # optimise for size over speed (vs "s") codegen-units = 1 # single unit so LTO sees everything debug = 2 # symbols stay in the ELF for `just bloat` / # `just size`; `cargo objcopy -O binary` strips # them when producing the flashable .bin / .uf2 overflow-checks = false panic = "abort" # no unwinding tables; panic-reset just resets