forked from GunnarMorrigan/mqrstt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
62 lines (52 loc) · 2.02 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
[package]
name = "mqrstt"
version = "0.1.4"
homepage = "https://github.com/GunnarMorrigan/mqrstt"
repository = "https://github.com/GunnarMorrigan/mqrstt"
documentation = "https://docs.rs/mqrstt"
categories = ["network-programming"]
readme = "README.md"
edition = "2021"
license = "MPL-2.0"
keywords = [ "MQTT", "IoT", "MQTTv5", "messaging", "client" ]
description = "Pure rust MQTTv5 client implementation for Smol, Tokio and soon sync too."
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[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" }
[features]
default = ["smol", "tokio"]
tokio = ["dep:tokio"]
smol = ["dep:smol"]
# quic = ["dep:quinn"]
[dependencies]
# Packets
bytes = "1.2.1"
# Errors
thiserror = "1.0.37"
tracing = "0.1.37"
async-channel = "1.8.0"
async-mutex = "1.4.0"
futures = { version = "0.3.25", default-features = false, features = ["std", "async-await"] }
async-trait = "0.1.61"
# quic feature flag
# quinn = {version = "0.9.0", optional = true }
# tokio feature flag
tokio = { version = "1.24.1", features = ["macros", "io-util", "net", "time"], optional = true }
# smol feature flag
smol = { version = "1.2.5", optional = true }
[dev-dependencies]
pretty_assertions = "1.3.0"
tokio = { version = "1.24.1", features = ["rt-multi-thread", "rt", "macros", "sync", "io-util", "net", "time"] }
smol = "1.2.5"
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
rustls = { version = "0.20.7" }
rustls-pemfile = { version = "1.0.1" }
webpki = { version = "0.22.0" }
async-rustls = { version = "0.3.0" }
tokio-rustls = "0.23.4"
rstest = "0.16.0"