This repository was archived by the owner on Jun 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathCargo.toml
More file actions
55 lines (52 loc) · 1.28 KB
/
Cargo.toml
File metadata and controls
55 lines (52 loc) · 1.28 KB
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
[package]
name = "{{ project-name }}"
version = "0.1.0"
authors = ["{{ authors }}"]
edition = "2021"
license = "MIT OR Apache-2.0"
[dependencies]
esp-backtrace = { version = "0.14.2", features = [
"{{ mcu }}",
"exception-handler",
"panic-handler",
"println",
] }
esp-hal = { version = "0.21.0", features = [ "{{ mcu }}" ] }
esp-println = { version = "0.12.0", features = ["{{ mcu }}", "log"] }
log = { version = "0.4.22" }
{% if alloc -%}
esp-alloc = { version = "0.5.0" }
{% endif -%}
{% if wifi -%}
embedded-io = "0.6.1"
esp-wifi = { version = "0.10.1", features = [
"{{ mcu }}",
"phy-enable-usb",
"utils",
"{{ esp_wifi_feature }}",
] }
heapless = { version = "0.8.0", default-features = false }
smoltcp = { version = "0.11.0", default-features = false, features = [
"medium-ethernet",
"proto-dhcpv4",
"proto-igmp",
"proto-ipv4",
"socket-dhcpv4",
"socket-icmp",
"socket-raw",
"socket-tcp",
"socket-udp",
] }
{% endif -%}
[profile.dev]
# Rust debug is too slow.
# For debug builds always builds with some optimization
opt-level = "s"
[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