forked from esp-rs/embedded-svc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
40 lines (37 loc) · 1.8 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
[package]
name = "embedded-svc"
version = "0.24.0"
authors = ["Ivan Markov <ivan.markov@gmail.com>"]
edition = "2018"
resolver = "2"
categories = ["embedded", "hardware-support"]
keywords = ["embedded", "svc", "hal"]
description = "A set of traits for services higher level than embedded-hal and typically found in embedded microcontrollers with WiFi or BLE support."
repository = "https://github.com/esp-rs/embedded-svc"
license = "MIT OR Apache-2.0"
readme = "README.md"
rust-version = "1.61"
[features]
default = ["std", "use_serde", "use_strum", "use_numenum", "log"]
std = ["alloc", "embedded-io/std", "serde/std", "anyhow/std", "strum?/std", "num_enum?/std"]
alloc = ["anyhow", "embedded-io/alloc", "serde/alloc", "defmt?/alloc"]
nightly = ["futures", "embedded-io/async"]
experimental = ["futures"]
use_serde = ["enumset/serde", "no-std-net/serde", "heapless/serde"]
use_strum = ["strum", "strum_macros"]
use_numenum = ["num_enum"]
defmt = ["dep:defmt", "heapless/defmt", "heapless/defmt-impl"]
log = ["dep:log"]
[dependencies]
heapless = { version = "0.7" }
embedded-io = { version = "0.3", default-features = false }
log = { version = "0.4", default-features = false, optional = true }
no-std-net = { version = "0.5", default-features = false }
serde = { version = "1", default-features = false, features = ["derive"] }
futures = { version = "0.3", default-features = false, optional = true }
enumset = { version = "1", default-features = false }
strum = { version = "0.23", default-features = false, optional = true, features = ["derive"] }
strum_macros = { version = "0.23", optional = true }
num_enum = { version = "0.5", default-features = false, optional = true }
anyhow = { version = "1", default-features = false, optional = true } # Only used by the deprecated httpd module
defmt = { version = "0.3", optional = true }