-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCargo.toml
114 lines (98 loc) · 3.3 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
[package]
name = "sfy"
edition = "2021"
version = "0.1.0"
authors = [ "Gaute Hope <[email protected]>" ]
[[bin]]
name = "sfypack"
path = "src/bin/sfypack.rs"
required-features = [ "build-bin", "raw" ]
[workspace]
members = [ "target-test", "sfy-artemis", "sfy-ext-gps" ]
[dependencies]
base64 = { version = "0.13.0", default-features = false }
defmt = "0.3"
bytemuck = "1.7.2"
heapless = { version = "0.7", features = [ "serde", "ufmt-impl", "defmt-impl" ] }
embedded-sdmmc = { version = "0.6.0", default-features = false, features = ["defmt-log"] }
postcard = { version = "1.0.1", features = [ "experimental-derive" ]}
serde = { version = "1", features = ["derive"], default-features = false }
serde-json-core = { version = "0.5.1", optional = true }
serde_json = { version = "1", optional = true }
embedded-hal = "0.2.6"
cortex-m = "*"
ism330dhcx = "0.5.1"
static_assertions = "1"
chrono = { version = "0.4.19", default-features = false }
micromath = { version = "2", features = [ "quaternion", "vector" ] }
libm = { version = "0.2", features = [ "unstable" ] }
rtcc = "0.3.0"
anyhow = { version = "1", optional = true }
argh = { version = "*", optional = true }
nb = "1.1.0"
ufmt = { version = "0.2", optional = true }
[dependencies.ahrs-fusion]
git = "https://github.com/gauteh/ahrs-fusion"
[dependencies.blues-notecard]
git = "https://github.com/gauteh/notecard-rs"
[dev-dependencies]
half = { version = "2.4", features = [ "use-intrinsics", "bytemuck", "serde" ] }
[features]
default = [ "build-bin" ]
continuous = []
continuous-post = [ "continuous", "dep:ufmt" ]
20Hz = ["fir"]
raw = [ "storage" ]
fir = []
storage = []
ext-gps = [ "dep:serde-json-core"]
surf = []
target-test = [ "storage" ]
build-bin = [ "fir", "storage", "raw", "anyhow", "argh", "serde-json-core/std", "serde_json", "chrono/std" ]
[patch.crates-io]
ism330dhcx = { git = "https://github.com/gauteh/ism330dhcx", branch = "gyro-accel-parse-range" }
# ism330dhcx = { path = "../../../../dev/embedded/ism330dhcx" }
cmsis_dsp = { git = "https://github.com/samcrow/cmsis_dsp.rs" }
embedded-sdmmc = { git = "https://github.com/rust-embedded-community/embedded-sdmmc-rs", rev="3b5c026d" }
# embedded-sdmmc = { git = "https://github.com/gauteh/embedded-sdmmc-rs", branch = "sdmmc-spi-borrow" }
# embedded-sdmmc = { path = "../../../../dev/embedded/embedded-sdmmc-rs" }
# [patch.'https://github.com/gauteh/ahrs-fusion']
# ahrs-fusion = { path = "../../../../dev/embedded/imu/ahrs-fusion" }
# [patch.'https://github.com/gauteh/notecard-rs']
# blues-notecard = { path = "../../../../dev/embedded/notecard-rs" }
# [patch.'https://github.com/gauteh/ambiq-rs']
# ambiq-hal = { path = "../../../../dev/embedded/ambiq-rs/ambiq-hal" }
# cargo build/run
[profile.dev]
# codegen-units = 1
debug = 2
debug-assertions = true # <-
incremental = true
opt-level = 3 # <-
overflow-checks = true # <-
# cargo test
[profile.test]
# codegen-units = 1
debug = 2
debug-assertions = true # <-
# incremental = false
opt-level = 3 # <-
overflow-checks = true # <-
# cargo build/run --release
[profile.release]
codegen-units = 1
debug = 2
debug-assertions = false # <-
incremental = false
lto = 'fat'
opt-level = 3 # <-
overflow-checks = false # <-
# cargo test --release
[profile.bench]
codegen-units = 1
debug = 2
debug-assertions = false # <-
incremental = false
lto = 'fat'
opt-level = 3 # <-
overflow-checks = false # <-