Firmware for the b-parasite board, but in Rust.
1[package]
2name = "sachy-parasite"
3description = "Firmware for the b-parasite board, but in Rust!"
4authors = ["Sachy.dev <sachymetsu@tutamail.com>"]
5repository = "https://tangled.org/sachy.dev/sachy-parasite"
6license = "MIT OR Apache-2.0"
7version = "0.1.0"
8edition = "2024"
9
10[[bin]]
11name = "sachy-parasite"
12test = false
13bench = false
14
15[profile.dev]
16debug = true
17lto = true
18opt-level = "z"
19incremental = true
20codegen-units = 1
21
22[profile.release]
23debug = false
24lto = true
25opt-level = "z"
26codegen-units = 1
27
28[features]
29defmt = ["dep:defmt"]
30defmt-rtt = ["dep:defmt-rtt"]
31panic-probe = ["dep:panic-probe"]
32default = ["debug"]
33debug = [
34 "defmt",
35 "defmt-rtt",
36 "panic-probe",
37 "embassy-executor/defmt",
38 "embassy-sync/defmt",
39 "embassy-futures/defmt",
40 "embassy-time/defmt",
41 "embassy-time/defmt-timestamp-uptime",
42 "embassy-nrf/defmt",
43 "nrf-sdc/defmt",
44 "nrf-mpsl/defmt",
45 "sachy-shtc3/defmt",
46 "sachy-bthome/defmt",
47 "trouble-host/defmt",
48 "bt-hci/defmt",
49 "embedded-hal/defmt-03",
50 "sachy-fmt/defmt",
51]
52
53[dependencies]
54cortex-m = { version = "0.7.7", features = ["inline-asm"] }
55cortex-m-rt = "0.7.5"
56defmt = { version = "1.0.1", optional = true }
57defmt-rtt = { version = "1.0.0", optional = true }
58panic-halt = "1.0.0"
59panic-probe = { version = "1.0.0", features = ["print-defmt"], optional = true }
60static_cell = "2.1.0"
61
62embassy-executor = { version = "0.9", features = [
63 "arch-cortex-m",
64 "executor-thread",
65 "executor-interrupt",
66 "nightly",
67] }
68embassy-futures = "0.1"
69embassy-nrf = { version = "0.9", features = [
70 "nrf52840",
71 "gpiote",
72 "time-driver-rtc1",
73 "unstable-pac",
74 "rt",
75] }
76embassy-sync = "0.7"
77embassy-time = { version = "0.5" }
78embedded-hal = { version = "1.0.0" }
79embedded-hal-async = "1.0.0"
80
81nrf-sdc = { git = "https://github.com/alexmoon/nrf-sdc", features = ["peripheral", "nrf52840"] }
82nrf-mpsl = { git = "https://github.com/alexmoon/nrf-sdc", features = ["critical-section-impl"] }
83bt-hci = "0.8"
84trouble-host = { version = "0.6", features = ["derive", "scan"] }
85
86sachy-fmt = { git = "https://tangled.org/sachy.dev/sachy-embed-core", package = "sachy-fmt" }
87sachy-battery = { git = "https://tangled.org/sachy.dev/sachy-embed-core", package = "sachy-battery" }
88sachy-bthome = { git = "https://tangled.org/sachy.dev/sachy-embed-core", package = "sachy-bthome" }
89sachy-shtc3 = { git = "https://tangled.org/sachy.dev/sachy-embed-core", package = "sachy-shtc3" }
90
91[patch.crates-io]
92embassy-executor = { git = "https://github.com/embassy-rs/embassy.git", rev = "729f96b9521d6705c1d664f4e9c636155d440519" }
93embassy-nrf = { git = "https://github.com/embassy-rs/embassy.git", rev = "729f96b9521d6705c1d664f4e9c636155d440519" }
94embassy-sync = { git = "https://github.com/embassy-rs/embassy.git", rev = "729f96b9521d6705c1d664f4e9c636155d440519" }
95embassy-futures = { git = "https://github.com/embassy-rs/embassy.git", rev = "729f96b9521d6705c1d664f4e9c636155d440519" }
96embassy-time = { git = "https://github.com/embassy-rs/embassy.git", rev = "729f96b9521d6705c1d664f4e9c636155d440519" }
97embassy-time-driver = { git = "https://github.com/embassy-rs/embassy.git", rev = "729f96b9521d6705c1d664f4e9c636155d440519" }
98embassy-embedded-hal = { git = "https://github.com/embassy-rs/embassy.git", rev = "729f96b9521d6705c1d664f4e9c636155d440519" }