125 lines
3.3 KiB
TOML
125 lines
3.3 KiB
TOML
|
[package]
|
||
|
name = "e-token"
|
||
|
version = "0.1.0"
|
||
|
authors = ["aok"]
|
||
|
edition = "2021"
|
||
|
license = "MIT OR Apache-2.0"
|
||
|
|
||
|
[lib]
|
||
|
name = "e_token"
|
||
|
# path = "src/modem/lib.rs"
|
||
|
|
||
|
[features]
|
||
|
esp32 = []
|
||
|
|
||
|
[dependencies]
|
||
|
esp-backtrace = { version = "0.13.0", features = [
|
||
|
"esp32",
|
||
|
"exception-handler",
|
||
|
"panic-handler",
|
||
|
"println",
|
||
|
] }
|
||
|
hal = { package = "esp-hal", version = "0.19.0", features = [
|
||
|
"esp32",
|
||
|
"embassy-futures",
|
||
|
"embassy-sync",
|
||
|
"async",
|
||
|
"embedded-io",
|
||
|
"embedded-io-async",
|
||
|
# "esp-hal-embassy",
|
||
|
] }
|
||
|
# hal = { package = "esp-hal", path = "/Users/aok/Projects/Hardware/exprojects/esp-hal/esp-hal", features = [
|
||
|
# "esp32",
|
||
|
# "embassy-futures",
|
||
|
# "embassy-sync",
|
||
|
# "async",
|
||
|
# "embedded-io",
|
||
|
# "embedded-io-async",
|
||
|
# # "esp-hal-embassy",
|
||
|
# ] }
|
||
|
|
||
|
esp-hal-embassy = { version = "0.2.0", features = [
|
||
|
"esp32",
|
||
|
"executors",
|
||
|
"log",
|
||
|
"integrated-timers",
|
||
|
] }
|
||
|
# esp-hal-embassy = { path = "/Users/aok/Projects/Hardware/exprojects/esp-hal/esp-hal-embassy", features = [
|
||
|
# "esp32",
|
||
|
# "executors",
|
||
|
# "log",
|
||
|
# "integrated-timers",
|
||
|
# ] }
|
||
|
embassy-time = "0.3.1"
|
||
|
embassy-sync = "0.6.0"
|
||
|
embedded-io-async = "0.6.1"
|
||
|
embassy-futures = "0.1.1"
|
||
|
embassy-net = { version = "0.4.0", features = [
|
||
|
"log",
|
||
|
"medium-ethernet",
|
||
|
"medium-ip",
|
||
|
"tcp",
|
||
|
"udp",
|
||
|
"dns",
|
||
|
"dhcpv4",
|
||
|
"proto-ipv6",
|
||
|
] }
|
||
|
embassy-net-ppp = { version = "0.1.0", features = ["log"] }
|
||
|
static_cell = { version = "2.1.0", features = ["nightly"] }
|
||
|
embassy-executor = { version = "0.5.0", features = [
|
||
|
"nightly",
|
||
|
"integrated-timers",
|
||
|
] }
|
||
|
esp-println = { version = "0.10.0", features = ["esp32", "log"] }
|
||
|
log = { version = "0.4.21" }
|
||
|
esp-alloc = { version = "0.4.0" }
|
||
|
embedded-io = "0.6.1"
|
||
|
esp-wifi = { version = "0.7.1", features = [
|
||
|
"esp32",
|
||
|
"phy-enable-usb",
|
||
|
"utils",
|
||
|
"wifi",
|
||
|
] }
|
||
|
# esp-wifi = { path = "/Users/aok/Projects/Hardware/exprojects/esp-hal/esp-wifi", features = [
|
||
|
# "esp32",
|
||
|
# "phy-enable-usb",
|
||
|
# "utils",
|
||
|
# "wifi",
|
||
|
# ] }
|
||
|
esp-hal-procmacros = { version = "0.12.0", features = ["embassy"] }
|
||
|
|
||
|
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",
|
||
|
] }
|
||
|
rand_core = { version = "0.6.3", default-features = false }
|
||
|
rand = { version = "0.8.5", default-features = false, features = ["small_rng"] }
|
||
|
|
||
|
[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
|
||
|
|
||
|
[patch.crates-io]
|
||
|
hal = { package = "esp-hal", git = "https://github.com/esp-rs/esp-hal", rev = "40d5481eddd70580eeb79b6908f6fec0e9b06d61" }
|
||
|
esp-wifi = { git = "https://github.com/esp-rs/esp-hal", rev = "40d5481eddd70580eeb79b6908f6fec0e9b06d61" }
|
||
|
esp-hal-embassy = { git = "https://github.com/esp-rs/esp-hal", rev = "40d5481eddd70580eeb79b6908f6fec0e9b06d61" }
|
||
|
esp-hal-procmacros = { git = "https://github.com/esp-rs/esp-hal", rev = "40d5481eddd70580eeb79b6908f6fec0e9b06d61" }
|