-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
161 lines (127 loc) · 4.38 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[package]
name = "onboard-computer"
version = "0.1.0"
authors = ["Lechev.space <dev@lechev.space>, Lachezar Lechev <elpiel93@gmail.com>"]
license = "MIT OR Apache-2.0"
edition = "2021"
publish = false
default-run = "onboard-computer"
[features]
# default = ["riscv", "run-gnss", "run-pressure-and-temperature"]
# default = ["riscv"]
# esp32-c3 = ["riscv", "dep:shtcx", "dep:icm42670", "dep:log", "dep:esp-backtrace",
esp32-c3 = ["riscv", "dep:log", "dep:esp-backtrace",
"esp32c3",
# either
"esp32c3/embassy-time-systick", # or "embassy-time-timg0"
"portable-atomic/unsafe-assume-single-core"
]
pico-w = ["cortex-m", "rp2040", "defmt", "dep:pico-w"]
# default = ["firmware"]
cortex-m = ["dep:cortex-m", "dep:cortex-m-rt", "dep:panic-probe"]
rp2040 = [
# "embassy-rp/critical-section-impl",
# "embassy-rp/rt",
# "embassy-rp/time-driver",
# "embassy-executor/arch-cortex-m",
"portable-atomic/critical-section",
"portable-atomic/require-cas",
]
# Enables the GNSS receiver in code
# run-gnss = []
# TODO: Add `run-humidity-and-temperature` once there is support for Async
# run-sensors = ["run-imu", "run-pressure-and-temperature"]
# Enables the IMU sensor readings (icm42670)
# run-imu = []
# Enables the Humidity + Temperature sensor readings (shtc3)
# run-humidity-and-temperature = []
# Enables the Pressure + Temperature sensor readings (BMP388)
# run-pressure-and-temperature = []
# wifi = ["esp-wifi"]
defmt = [
"dep:defmt",
"dep:defmt-rtt",
# "heapless/defmt-impl",
# "panic-probe/print-defmt",
# "embassy-sync/defmt",
# "embassy-executor/defmt",
# "embassy-time/defmt",
# "embassy-embedded-hal/defmt",
# "embassy-time/defmt-timestamp-uptime",
# "embassy-rp/defmt",
# "embassy-usb/defmt",
# "embassy-net/defmt",
# "embedded-hal-async/defmt-03",
# "embedded-io/defmt-03",
# "embedded-io-async/defmt-03",
]
std = [
"alloc",
# "embassy-executor/arch-std",
# "embassy-time/std",
# "embassy-sync/std",
# "embassy-embedded-hal/std",
# "embedded-io/std",
# "embedded-io-async/std",
"critical-section/std",
"portable-atomic/std",
"serde?/std"
]
alloc = ["postcard/alloc"]
# std = ["embassy-executor/arch-std", "once_cell/std", "critical-section/std"]
riscv = [
# "embassy-executor/arch-riscv32"
]
serde = ["dep:serde"]
[dependencies]
esp32c3 = { version = "0.1", path = "esp32c3", optional = true }
pico-w = { version = "0.1", path = "pico-w", optional = true}
panic-probe = { workspace = true, optional = true }
serde = { workspace = true, optional = true, default-features = false }
postcard = { workspace = true, optional = true }
postcard-rpc = { workspace = true, optional = true }
# embassy-executor = { workspace = true, features = ["integrated-timers", "executor-interrupt", "executor-thread"] }
# embassy-sync.workspace = true
# embassy-futures.workspace = true
# embassy-net.workspace = true
# embassy-net-driver.workspace = true
# embassy-time.workspace = true
# embassy-embedded-hal.workspace = true
# embedded-hal.workspace = true
# embedded-hal-1.workspace = true
# embedded-hal-async.workspace = true
# embedded-hal-nb.workspace = true
# embedded-hal-bus.workspace = true
# # embedded-can.workspace = true
# embedded-io-async.workspace = true
# embedded-io.workspace = true
# nmea = { workspace = true, features = ["all-sentences"] }
# RP2040
# cortex-m = { version = "0.7" }
cortex-m = { version = "0.7", optional = true }
cortex-m-rt = { version = "0.7.3", optional = true }
# ESP32C3
# debugging
esp-backtrace = { workspace = true, optional = true }
esp-println = { workspace = true, optional = true }
log = { workspace = true, optional = true }
defmt = { workspace = true, optional = true }
defmt-rtt = { workspace = true, optional = true }
# Allocator
# esp-alloc.workspace = true
# esp-wifi = { workspace = true, optional = true }
# Keep the same as in esp-wifi
# embedded-svc = { workspace = true, optional = true }
static_cell.workspace = true
# once_cell = { version = "1.17", default-features = false, features = ["critical-section", "atomic-polyfill"] }
heapless.workspace = true
fugit.workspace = true
# critical-section = { workspace = true }
critical-section = { version = "1.1" }
portable-atomic = { workspace = true }
# defmt-rtt.workspace = true
# defmt.workspace = true
# [patch.crates-io]
# icm42670 = { version = "0.1", path = "../icm42670" }
[build-dependencies]
dotenv = "0.15"