forked from revnull-src/BulbdialClock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
51 lines (43 loc) · 1.15 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
[package]
name = "bulbdialclock"
version = "1.1.0"
authors = ["Jamie Wilkinson <[email protected]>"]
edition = "2021"
license = "GPL-3.0"
[[bin]]
name = "bulbdialclock"
test = false
bench = false
[features]
default = ["panic-serial"]
panic-serial = ["dep:panic-serial"]
[dependencies]
panic-halt = "0.2.0"
panic-serial = { version = "0.1.2", features = [] , optional = true}
ufmt = "0.2.0"
nb = "1.1.0"
embedded-hal = "1.0.0"
[dependencies.arduino-hal]
git = "https://github.com/Rahix/avr-hal"
rev = "65b304ec974a13f27ebc2ced21aa462c4b81ce82"
features = ["nano168"]
[dependencies.avr-device]
version = "0.5.4"
features = ["atmega168"]
# The latest releases of `proc-macro2` do not support the rust toolchain that
# we use. Thus, we must fix this dependency to an older version where our
# toolchain is still supported. See https://github.com/Rahix/avr-hal/issues/537
[build-dependencies.proc-macro2]
version = "=1.0.79"
# Configure the build for minimal size - AVRs have very little program memory
[profile.dev]
panic = "abort"
codegen-units = 1
lto = true
opt-level = "s"
[profile.release]
panic = "abort"
codegen-units = 1
debug = true
lto = true
opt-level = "z"