-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
141 lines (127 loc) · 3.69 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
[package]
name = "esparrier"
version = "0.4.4"
edition = "2021"
rust-version = "1.84"
authors = ["Chen Xu <[email protected]>"]
description = "Esparrier is an ESP32-S3 based Barrier client."
homepage = "https://github.com/windoze/esparrier"
categories = ["embedded", "hardware-support"]
repository = "https://github.com/windoze/esparrier.git"
license = "MIT"
keywords = ["esparrier", "esp32s3", "usb", "hid", "embedded", "wifi", "barrier"]
[dependencies]
esp-backtrace = { version = "0.15.0", features = [
"esp32s3",
"exception-handler",
"panic-handler",
"println",
] }
esp-hal = { version = "0.23.1", features = ["esp32s3"] }
esp-println = { version = "0.13.0", default-features = false, features = [
"colors",
"critical-section",
"esp32s3",
"log",
"uart",
] }
log = { version = "0.4", features = [
"max_level_debug",
"release_max_level_info",
] }
esp-alloc = { version = "0.6.0" }
embedded-io = "0.6.1"
embedded-io-async = "0.6.1"
embassy-net = { version = "0.6.0", features = [
"tcp",
"udp",
"dhcpv4",
"medium-ethernet",
] }
esp-wifi = { version = "0.12.0", default-features = false, features = [
"esp32s3",
"utils",
"wifi",
"esp-alloc",
"log",
] }
heapless = { version = "0.8.0", default-features = false, features = ["serde"] }
smoltcp = { version = "0.12.0", default-features = false, features = [
"medium-ethernet",
"proto-dhcpv4",
"proto-ipv4",
"socket-dhcpv4",
"socket-icmp",
"socket-raw",
"socket-tcp",
"socket-udp",
] }
embassy-executor = { version = "0.7.0", features = ["task-arena-size-65536"] }
embassy-time = { version = "0.4.0", features = ["generic-queue-8"] }
esp-hal-embassy = { version = "0.6.0", features = ["esp32s3"] }
static_cell = { version = "2.1.0", features = ["nightly"] }
critical-section = "1.2.0"
const_env = "0.1"
serde = { version = "1.0", default-features = false, features = [
"derive",
"alloc",
] }
serde-json-core = { version = "0.6.0" }
embedded-storage = "0.3.1"
esp-storage = { version = "0.4.0", features = ["esp32s3"] }
thiserror-no-std = "2.0.2"
fugit = "0.3.7"
embassy-futures = "0.1.1"
embassy-usb = { version = "0.4.0", features = [
"max-handler-count-4",
"max-interface-count-4",
] }
embassy-usb-driver = "0.1.0"
usbd-hid = "0.8.2"
cfg-if = "1.0.0"
const-str = "0.5.7"
embassy-sync = "0.6.2"
smart-leds-trait = { version = "0.3.0", optional = true }
smart-leds = { version = "0.4.0", optional = true }
async-debounce = { version = "0.2.0", optional = true }
embedded-hal-async = { version = "1.0.0", optional = true }
embedded-hal-bus = { version = "0.2.0", optional = true }
embedded-graphics = { version = "0.8.1", optional = true }
mipidsi = { version = "0.9.0", optional = true }
display-interface-spi = { version = "0.5.0", optional = true }
tinygif = { version = "0.0.4", optional = true }
[features]
default = ["usb"]
clipboard = ["async-debounce", "embedded-hal-async"]
usb = []
indicator = []
led = ["indicator"]
smartled = ["indicator", "smart-leds", "smart-leds-trait"]
graphics = [
"indicator",
"embedded-hal-bus",
"embedded-graphics",
"mipidsi",
"display-interface-spi",
"tinygif",
]
# Features for the ESP32-S3 boards
generic = []
m5atoms3-lite = ["smartled", "clipboard"]
m5atoms3 = ["graphics", "clipboard"]
m5atoms3r = ["graphics", "clipboard"]
xiao-esp32s3 = ["led"]
devkitc-1_0 = ["smartled"]
devkitc-1_1 = ["smartled"]
[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