-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
55 lines (45 loc) · 1.72 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
[package]
name = "shvclient"
version = "0.3.9"
edition = "2021"
[lib]
name = "shvclient"
path = "src/lib.rs"
[[example]]
name = "simple_device_tokio"
path = "src/examples/simple_device_tokio.rs"
required-features = ["tokio"]
[[example]]
name = "simple_device_async_std"
path = "src/examples/simple_device_async_std.rs"
required-features = ["async_std"]
[dev-dependencies]
clap = { version = "4.4", features = ["derive"] }
simple_logger = { git = "https://github.com/fvacek/rust-simple_logger.git", branch = "main", features = ["stderr"] }
generics-alias = { git = "https://github.com/j4r0u53k/generics-alias-rs.git", branch = "main" }
[dependencies]
shvproto = { git = "https://github.com/silicon-heaven/libshvproto-rs", branch = "master", version = "3.0.11" }
shvrpc = { git = "https://github.com/silicon-heaven/libshvrpc-rs", branch = "master", version = "3.0.8" }
futures = "0.3.29"
futures-time = "3.0.0"
futures-net = "0.6.0"
url = "2.4.1"
log = "0.4.20"
duration-str = "0.11.2"
async-broadcast = "0.7.1"
async-std = { version = "1.12.0", features = ["attributes"], optional = true }
tokio = { version = "1.36.0", features = ["full"], optional = true }
tokio-util = { version = "0.7.10", features = ["compat"], optional = true }
# NOTE: macro_magic needs to be here as a direct dependency because some functions from
# there are called in expansion of `generics_inner` macro from generics-alias crate.
macro_magic = "0.5.0"
# For local development
# [patch."https://github.com/silicon-heaven/libshvproto-rs"]
# shvproto = { path = "../libshvproto-rs" }
#
# [patch."https://github.com/silicon-heaven/libshvrpc-rs"]
# shvrpc = { path = "../libshvrpc-rs" }
[features]
default = []
tokio = ["dep:tokio", "dep:tokio-util"]
async_std = ["dep:async-std"]