-
Notifications
You must be signed in to change notification settings - Fork 51
/
Cargo.toml
43 lines (37 loc) · 1.2 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
[package]
name = "coap"
version = "0.19.1"
description = "A CoAP library"
readme = "README.md"
documentation = "https://docs.rs/coap/"
repository = "https://github.com/covertness/coap-rs"
license = "MIT"
authors = ["Yang Zhang <wuyingfengsui@gmail.com>"]
keywords = ["CoAP"]
edition = "2021"
[dependencies]
url = "^2.2"
log = "^0.4"
regex = "^1.5"
tokio = {version = "^1.32", features = ["full"]}
tokio-util = {version = "^0.6", features = ["codec","net"]}
tokio-stream = {version = "^0.1", features = ["time"]}
futures = "^0.3"
coap-lite = "0.11.3"
async-trait = "0.1.74"
# dependencies for dtls
webrtc-dtls = {version = "0.8.0", optional = true}
webrtc-util = {version = "0.8.0", optional = true}
rustls = {version = "^0.21.1", optional = true}
rustls-pemfile = {version = "2.0.0", optional = true}
rcgen = {version = "^0.11.0", optional = true}
pkcs8 = {version = "0.10.2", optional = true}
sec1 = { version = "0.7.3", features = ["pem", "pkcs8", "std"], optional = true}
rand = "0.8.5"
[features]
default = ["dtls"]
dtls = ["dep:webrtc-dtls", "dep:webrtc-util", "dep:rustls", "dep:rustls-pemfile", "dep:rcgen", "dep:pkcs8", "dep:sec1"]
[dev-dependencies]
quickcheck = "0.8.2"
socket2 = "0.5"
tokio-test = "0.4.4"