-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
146 lines (118 loc) · 3.76 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
[package]
name = "teeny"
version = "0.1.0"
authors = ["Sycrosity <[email protected]>"]
edition = "2021"
license = "MIT OR Apache-2.0"
[dependencies]
esp-hal = { version = "0.19.0", features = ["async", "embedded-io"] }
esp-hal-embassy = { version = "0.2.0", features = ["integrated-timers"] }
esp-backtrace = { version = "0.13.0", features = [
"exception-handler",
"panic-handler",
"println",
] }
esp-println = { version = "0.10.0" }
#allocation support for esp devices
esp-alloc = { version = "0.4.0", optional = true }
#for wifi connectivity for esp controllers.
esp-wifi = { version = "0.7.1", features = [
"embassy-net",
"async",
"wifi-default",
"wifi",
"utils",
], optional = true }
heapless = "0.8.0"
#the gold standard for logging in rust
log = "0.4.20"
#implimentation of the c "libm" maths library
libm = "0.2.8"
#for making static variables at compile time
static_cell = { version = "2.0.0", features = ["nightly"] }
#traits and functions for working with embedded graphics in rust
embedded-graphics = { version = "0.8.1", features = ["nalgebra_support"] }
#higher level embedded-hal traits for wifi, bluetooth, ect
embedded-svc = { version = "0.28.0", default-features = false, optional = true }
embedded-io = "0.6.1"
embedded-io-async = "0.6.1"
embedded-hal = "1.0.0"
embedded-hal-async = "^1.0"
embedded-hal-bus = { version = "0.2.0", features = ["async"] }
# no_std http/s requests.
reqwless = { version = "0.12.0", optional = true }
# heapless = { version = "0.8.0", default-features = false }
embassy-executor = { version = "0.6.0", features = ["nightly"] }
embassy-time = { version = "0.3.1" }
embassy-sync = "0.6.0"
embassy-net = { version = "0.4.0", features = [
"proto-ipv4",
"dns",
"tcp",
"medium-ethernet",
"dhcpv4",
], optional = true }
embassy-embedded-hal = { version = "0.2.0" }
#ssd1306 display driver with embeddded graphics support
ssd1306 = { version = "0.9.0" }
display-interface = "0.5.0"
base64 = { version = "0.22.1", default-features = false }
picoserve = { version = "0.12.2", features = ["embassy", "log"] }
[build-dependencies]
dotenv = "0.15.0"
miette = { version = "7.2.0", features = ["fancy"] }
[profile.dev]
# Rust debug is too slow.
# For debug builds always builds with some optimization
opt-level = "s"
codegen-units = 1 # LLVM can perform better optimizations using a single thread
debug-assertions = false
overflow-checks = false
lto = 'fat'
[profile.release]
codegen-units = 1 # LLVM can perform better optimizations using a single thread
debug = 2
debug-assertions = false
incremental = false
lto = 'fat'
opt-level = 's'
overflow-checks = false
[profile.release.package.esp-wifi]
opt-level = 3
[profile.dev.package.esp-wifi]
opt-level = 3
[features]
default = ["log", "net", "alloc"]
alloc = ["dep:esp-alloc", "picoserve/alloc", "reqwless/alloc"]
net = ["dep:esp-wifi", "dep:embassy-net", "dep:embedded-svc", "dep:reqwless"]
verbose-wifi = ["esp-wifi/wifi-logs"]
release = ["log/release_max_level_off"]
log = [
"embassy-net/log",
"embassy-time/log",
"embassy-sync/log",
"embassy-executor/log",
"embedded-svc/log",
"esp-println/log",
"esp-hal/log",
"esp-wifi/log",
"reqwless/log",
]
esp32 = [
"esp-hal/esp32",
"esp-hal-embassy/esp32",
"esp-backtrace/esp32",
"esp-println/esp32",
"esp-wifi/esp32",
]
esp32c3 = [
"esp-hal/esp32c3",
"esp-hal-embassy/esp32c3",
"esp-backtrace/esp32c3",
"esp-println/esp32c3",
"esp-wifi/esp32c3",
]
[patch.crates-io]
ssd1306 = { version = "0.9.0", git = "https://github.com/embedevices-rs/ssd1306", branch = "async" }
esp-hal-embassy = { version = "0.2.0", git = "https://github.com/Sycrosity/esp-hal", package = "esp-hal-embassy", branch = "until-release" }
# reqwless = { version = "0.12.0", path = "/Users/louis/dev/embedded/reqwless" }