forked from peter9477/none-fault
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
executable file
·64 lines (53 loc) · 2.34 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
[package]
name = "none-fault"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[workspace]
resolver = "2"
[features]
default = []
# 0 no optimizations
# 1-3 higher levels
# s optimize for size
# z optimize for size and turn off loop vectorization
[profile.dev.package."*"]
overflow-checks = false
opt-level = "z"
codegen-units = 1 # better optimizations
debug = false
debug-assertions = false
[profile.dev]
opt-level = "z"
debug = true
debug-assertions = true # controls both our own assertions plus whether RTT enabled
overflow-checks = false
lto = 'fat' # same as true? may do nothing if codegen-units is 1
# lto = false # same as true? may do nothing if codegen-units is 1
# lto = 'thin' # same as true? may do nothing if codegen-units is 1
panic = 'abort'
incremental = false
# codegen-units = 8
codegen-units = 1
#-----------------------------------
[dependencies]
cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] }
cortex-m-rt = { version = "0.7.3" }
embassy-executor = { version = "0.3.0", features = ["arch-cortex-m", "executor-thread", "nightly", "integrated-timers"] }
embassy-nrf = { version = "*", features = ["nrf52840", "time-driver-rtc1", "unstable-pac", "unstable-traits"] }
embassy-sync = "*"
embassy-time = "*"
critical-section = { version = "1.1", default-features = false }
nrf52840-hal = { version = "0.16.0" }
embedded-alloc = "0.5.0"
# panic-rtt-target = { version = "0.1.2", features = ["cortex-m"] }
# rtt-target = { version = "0.3.1", features = ["cortex-m"] }
panic-rtt-target = { git = "https://github.com/probe-rs/rtt-target", rev = "59b236ce50e44826031adbfc12742e4a0b8d5d6c", features = ["cortex-m"] }
rtt-target = { git = "https://github.com/probe-rs/rtt-target", rev = "59b236ce50e44826031adbfc12742e4a0b8d5d6c" }
[patch.crates-io]
# Note: latest known good version is whatever comes after rev = below.
embassy-executor = { git = "https://github.com/embassy-rs/embassy", rev="ce66276" }
embassy-nrf = { git = "https://github.com/embassy-rs/embassy", rev="ce66276" }
embassy-sync = { git = "https://github.com/embassy-rs/embassy", rev="ce66276" }
embassy-time = { git = "https://github.com/embassy-rs/embassy", rev="ce66276" }
rtt-target = { git = "https://github.com/probe-rs/rtt-target", rev = "59b236ce50e44826031adbfc12742e4a0b8d5d6c" }