-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
81 lines (72 loc) · 2.68 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
[package]
name = "touch-n-drink"
version = "0.1.0"
authors = ["Andreas Neuhaus <git@zargony.com>"]
edition = "2021"
description = "Firmware for cashless payment device for cold drinks at the aeroclub at EDLH"
repository = "https://github.com/zargony/touch-n-drink"
license = "MIT OR Apache-2.0"
[[bin]]
name = "touch-n-drink"
test = false
bench = false
[lints.clippy]
pedantic = "warn"
[profile.dev]
# Rust debug code is slow, so always build with some optimization
opt-level = "s"
[profile.dev.package.esp-hal]
# Build esp-hal with release optimizations as it recommends
debug-assertions = false
opt-level = 3
[profile.dev.package.esp-wifi]
# Build esp-wifi with release optimizations as it recommends
opt-level = 3
# Additionally turn off overflow checks as these seem to cause random esp-wifi panics
overflow-checks = false
[profile.release]
# LLVM can perform better optimizations using a single thread
codegen-units = 1
debug = 2
debug-assertions = false
incremental = false
lto = "fat"
opt-level = "s"
overflow-checks = false
[build-dependencies]
git2 = { version = "0.19", default-features = false }
[dependencies]
chrono = { version = "0.4", default-features = false, features = ["alloc"] }
display-interface = "0.5"
embassy-embedded-hal = "0.2"
embassy-executor = "0.6"
embassy-futures = "0.1"
embassy-net = { version = "0.4", features = ["dhcpv4", "dns", "proto-ipv4", "tcp"] }
embassy-sync = "0.6"
embassy-time = { version = "0.3", features = ["generic-queue"] }
embedded-graphics = "0.8"
embedded-hal-async = "1.0"
embedded-io-async = { version = "0.6", features = ["alloc"] }
embedded-storage = "0.3"
esp-alloc = "0.5"
esp-backtrace = { version = "0.14", features = ["esp32c3", "custom-halt", "panic-handler", "exception-handler", "println"] }
esp-hal = { version = "0.21", features = ["esp32c3"] }
esp-hal-embassy = { version = "0.4", features = ["esp32c3"] }
esp-partition-table = "0.1"
esp-println = { version = "0.12", features = ["esp32c3", "log"] }
esp-storage = { version = "0.3", features = ["esp32c3"] }
esp-wifi = { version = "0.10", default-features = false, features = ["esp32c3", "esp-alloc", "async", "embassy-net", "log", "phy-enable-usb", "wifi"] }
hex = { version = "0.4", default-features = false, features = ["alloc"] }
log = { version = "0.4", features = ["release_max_level_info"] }
pn532 = "0.4"
rand_core = "0.6"
reqwless = { version = "0.12", default-features = false, features = ["alloc", "embedded-tls"] }
ssd1306 = { version = "0.9", features = ["async"] }
u8g2-fonts = "0.4"
[features]
default = []
# Enable additional logging of dependencies
log = [
"embassy-executor/log", "embassy-net/log", "embassy-sync/log", "embassy-time/log",
"esp-hal/log", "esp-hal-embassy/log", "reqwless/log",
]