# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "rmk" version = "0.4.2" authors = ["Haobo Gu "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Keyboard firmware written in Rust" homepage = "https://github.com/haobogu/rmk" readme = "README.md" license = "MIT OR Apache-2.0" repository = "https://github.com/haobogu/rmk" resolver = "2" [package.metadata.docs.rs] features = ["split"] [lib] name = "rmk" path = "src/lib.rs" [dependencies.bitfield-struct] version = "0.9" [dependencies.byteorder] version = "1" default-features = false [dependencies.defmt] version = "0.3" [dependencies.document-features] version = "0.2" [dependencies.embassy-embedded-hal] version = "0.2" [dependencies.embassy-executor] version = "0.6" features = ["defmt"] [dependencies.embassy-futures] version = "0.1" features = ["defmt"] [dependencies.embassy-nrf] version = "0.2.0" features = [ "defmt", "unstable-pac", "time", ] optional = true [dependencies.embassy-sync] version = "0.6" features = ["defmt"] [dependencies.embassy-time] version = "0.3" features = ["defmt"] [dependencies.embassy-usb] version = "0.3" features = [ "defmt", "usbd-hid", "max-interface-count-8", "max-handler-count-8", ] [dependencies.embedded-hal] version = "1.0.0" features = ["defmt-03"] [dependencies.embedded-hal-async] version = "1.0.0" features = ["defmt-03"] optional = true [dependencies.embedded-io-async] version = "0.6" features = ["defmt-03"] [dependencies.embedded-storage] version = "0.3" [dependencies.embedded-storage-async] version = "0.4" [dependencies.esp-idf-svc] version = "0.49" optional = true default-features = false [dependencies.esp32-nimble] version = "0.8" optional = true [dependencies.futures] version = "0.3" default-features = false [dependencies.heapless] version = "0.8.0" [dependencies.nrf-softdevice] version = "0.1.0" features = [ "defmt", "ble-peripheral", "critical-section-impl", "ble-gatt-server", "ble-gatt-client", "ble-sec", ] optional = true [dependencies.num_enum] version = "0.7" default-features = false [dependencies.once_cell] version = "1.19" features = ["atomic-polyfill"] optional = true default-features = false [dependencies.postcard] version = "1" features = [ "experimental-derive", "use-defmt", ] [dependencies.rmk-config] version = "0.2.1" [dependencies.rmk-macro] version = "0.3.1" [dependencies.sequential-storage] version = "3.0.0" features = ["defmt-03"] [dependencies.serde] version = "1" features = ["derive"] default-features = false [dependencies.ssmarshal] version = "1.0" default-features = false [dependencies.static_cell] version = "2" [dependencies.usbd-hid] version = "0.8.2" features = ["defmt"] [features] _ble = ["_no_external_storage"] _esp_ble = [ "_ble", "_no_usb", "rmk-config/_esp_ble", "ssmarshal/std", "dep:esp32-nimble", "dep:esp-idf-svc", ] _no_external_storage = [] _no_usb = [] _nrf_ble = [ "_ble", "rmk-config/_nrf_ble", "dep:nrf-softdevice", "dep:embassy-nrf", "dep:once_cell", ] async_matrix = ["dep:embedded-hal-async"] col2row = [] default = ["col2row"] esp32c3_ble = ["_esp_ble"] esp32c6_ble = ["_esp_ble"] esp32s3_ble = ["_esp_ble"] nrf52810_ble = [ "_nrf_ble", "_no_usb", "nrf-softdevice/nrf52810", "nrf-softdevice/s112", ] nrf52811_ble = [ "_nrf_ble", "_no_usb", "nrf-softdevice/nrf52811", "nrf-softdevice/s112", ] nrf52832_ble = [ "_nrf_ble", "_no_usb", "nrf-softdevice/nrf52832", "nrf-softdevice/ble-central", "nrf-softdevice/s132", ] nrf52833_ble = [ "_nrf_ble", "nrf-softdevice/nrf52833", "nrf-softdevice/s140", "nrf-softdevice/ble-central", ] nrf52840_ble = [ "_nrf_ble", "nrf-softdevice/nrf52840", "nrf-softdevice/s140", "nrf-softdevice/ble-central", ] rapid_debouncer = [] split = [] [target.'cfg(all(target_arch = "arm", target_os = "none"))'.dependencies.cortex-m] version = "0.7"