-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
93 lines (74 loc) · 3.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
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
[package]
name = "rust-esp32-std-demo"
version = "0.29.0"
authors = ["ivmarkov"]
edition = "2018"
categories = ["embedded", "hardware-support"]
keywords = ["embedded", "svc", "idf", "esp-idf", "esp32"]
description = "A demo binary crate for the ESP32 and ESP-IDF, which connects to WiFi, Ethernet, drives a small HTTP server and draws on a LED screen"
repository = "https://github.com/ivmarkov/rust-esp32-std-demo"
license = "MIT OR Apache-2.0"
readme = "README.md"
[patch.crates-io]
smol = { git = "https://github.com/esp-rs-compat/smol" }
polling = { git = "https://github.com/esp-rs-compat/polling" }
socket2 = { git = "https://github.com/esp-rs-compat/socket2" }
getrandom = { version = "0.2", git = "https://github.com/esp-rs-compat/getrandom.git" }
#getrandom1 = { version = "0.1", git = "https://github.com/esp-rs-compat/getrandom.git", package = "getrandom", branch = "0.1" }
embedded-io = { git = "https://github.com/ivmarkov/embedded-io" }
[profile.release]
opt-level = "s"
[profile.dev]
debug = true # Symbols are nice and they don't increase the size on Flash
opt-level = "z"
[features]
default = ["experimental"]
# Enable this feature for the build to use the PlatformIO tooling instead of the native ESP-IDF tooling under the hood
pio = ["esp-idf-sys/pio"]
# Enable this feature if you are building for QEMU
qemu = []
# Enable this feature in case you have a Kaluga board and would like to see a LED screen demo
kaluga = []
# Enable this feature in case you have a TTGO board and would like to see a LED screen demo
ttgo = []
# Enable this feature in case you have an ESP32S3-USB-OTG board and would like to see a LED screen demo
heltec = []
# Enable this feature in case you have a generic SSD1306 Display connected via SPI to pins 3, 4, 5, 16, 18, 23 (SPI3) of your board
ssd1306g_spi = []
# Enable this feature in case you have a generic SSD1306 screen connected to pins 14, 22 and 21 of your board
ssd1306g = []
esp32s3_usb_otg = []
# Enable this feature in case you have a Waveshare board and 4.2" e-paper
waveshare_epd = []
# Enable this feature in case you have an RMII IP101 Ethernet adapter
ip101 = []
# Enable this feature in case you have an SPI W5500 Ethernet adapter
w5500 = []
experimental = ["esp-idf-svc/experimental", "embedded-svc/experimental"]
[dependencies]
anyhow = {version = "1", features = ["backtrace"]}
log = "0.4"
url = "2"
esp-idf-sys = { version = "0.32", features = ["binstart"] }
esp-idf-svc = "0.45"
esp-idf-hal = "0.40"
embedded-svc = "0.24"
embedded-hal = "1.0.0-alpha.9"
embedded-graphics = "0.7"
display-interface = "0.4"
display-interface-spi = "0.4"
mipidsi = "0.5"
ssd1306 = "0.7"
epd-waveshare = "0.5.0"
mqtt-v5 = { git = "https://github.com/MCloudTT/mqtt-broker", package = "mqtt-v5", branch = "dev" }
smol = "1.2.5"
ws2812-esp32-rmt-driver = "0.5.0"
smart-leds = "0.3.0"
bytes = "1.4.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
[build-dependencies]
embuild = { version = "0.31", features = ["elf"] }
anyhow = "1"
# Future; might be possible once https://github.com/rust-lang/cargo/issues/9096 hits Cargo nightly:
#rust-esp32-ulp-blink = { git = "https://github.com/ivmarkov/rust-esp32-ulp-blink", artifact = "bin" }