98 lines
3.1 KiB
TOML
98 lines
3.1 KiB
TOML
[package]
|
|
name = "corne-rs"
|
|
version = "0.1.0"
|
|
authors = ["Haobo Gu <haobogu@outlook.com>"]
|
|
description = "Keyboard firmware written in Rust"
|
|
homepage = "https://github.com/haobogu/rmk"
|
|
repository = "https://github.com/haobogu/rmk"
|
|
readme = "README.md"
|
|
edition = "2021"
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
[dependencies]
|
|
rmk = { version = "0.7", features = [
|
|
"nrf52840_ble",
|
|
"split",
|
|
"async_matrix",
|
|
"adafruit_bl",
|
|
] }
|
|
nrf-sdc = { version = "0.1.0", default-features = false, features = [
|
|
"defmt",
|
|
"peripheral",
|
|
"central",
|
|
"nrf52840",
|
|
] }
|
|
nrf-mpsl = { version = "0.1.0", default-features = false, features = [
|
|
"defmt",
|
|
"critical-section-impl",
|
|
"nrf52840",
|
|
] }
|
|
bt-hci = { version = "0.3", default-features = false, features = ["defmt"] }
|
|
|
|
cortex-m = "0.7.7"
|
|
cortex-m-rt = "0.7.5"
|
|
embassy-time = { version = "0.4", features = ["tick-hz-32_768", "defmt", "defmt-timestamp-uptime"] }
|
|
embassy-nrf = { version = "0.3.1", features = [
|
|
"defmt",
|
|
"nrf52840",
|
|
"time-driver-rtc1",
|
|
"gpiote",
|
|
"unstable-pac",
|
|
"nfc-pins-as-gpio",
|
|
"time",
|
|
] }
|
|
embassy-executor = { version = "0.7", features = [
|
|
"defmt",
|
|
"arch-cortex-m",
|
|
"executor-thread",
|
|
] }
|
|
defmt = "1.0"
|
|
defmt-rtt = "1.0"
|
|
panic-probe = { version = "1.0", features = ["print-defmt"] }
|
|
static_cell = "2"
|
|
|
|
rand = { version = "0.8.4", default-features = false }
|
|
rand_core = { version = "0.6" }
|
|
rand_chacha = { version = "0.3", default-features = false }
|
|
|
|
[patch.crates-io]
|
|
embassy-sync = { git = "https://github.com/embassy-rs/embassy.git", rev = "f35aa4005a63e8d478b2b95aaa2bfb316b72dece" }
|
|
embassy-futures = { git = "https://github.com/embassy-rs/embassy.git", rev = "f35aa4005a63e8d478b2b95aaa2bfb316b72dece" }
|
|
embassy-executor = { git = "https://github.com/embassy-rs/embassy.git", rev = "f35aa4005a63e8d478b2b95aaa2bfb316b72dece" }
|
|
embassy-nrf = { git = "https://github.com/embassy-rs/embassy.git", rev = "f35aa4005a63e8d478b2b95aaa2bfb316b72dece" }
|
|
embassy-time = { git = "https://github.com/embassy-rs/embassy.git", rev = "f35aa4005a63e8d478b2b95aaa2bfb316b72dece" }
|
|
embassy-usb = { git = "https://github.com/embassy-rs/embassy.git", rev = "f35aa4005a63e8d478b2b95aaa2bfb316b72dece" }
|
|
embassy-embedded-hal = { git = "https://github.com/embassy-rs/embassy.git", rev = "f35aa4005a63e8d478b2b95aaa2bfb316b72dece" }
|
|
nrf-sdc = { git = "https://github.com/alexmoon/nrf-sdc.git", rev = "7be9b853e15ca0404d65c623d1ec5795fd96c204" }
|
|
nrf-mpsl = { git = "https://github.com/alexmoon/nrf-sdc.git", rev = "7be9b853e15ca0404d65c623d1ec5795fd96c204" }
|
|
trouble-host = { git = "https://github.com/embassy-rs/trouble", rev = "90c6359" }
|
|
|
|
[build-dependencies]
|
|
xz2 = "0.1.7"
|
|
json = "0.12"
|
|
const-gen = "1.6"
|
|
|
|
# Split keyboard example
|
|
[[bin]]
|
|
name = "central"
|
|
path = "src/central.rs"
|
|
|
|
[[bin]]
|
|
name = "peripheral"
|
|
path = "src/peripheral.rs"
|
|
|
|
[profile.dev]
|
|
codegen-units = 1 # better optimizations
|
|
debug = true
|
|
opt-level = 1
|
|
overflow-checks = true
|
|
lto = false
|
|
panic = 'unwind'
|
|
|
|
[profile.release]
|
|
codegen-units = 1 # better optimizations
|
|
debug = true # no overhead for bare-metal
|
|
opt-level = "z" # optimize for binary size
|
|
overflow-checks = false
|
|
lto = "fat"
|