Skip to content

Commit aec729c

Browse files
author
Hui Zhu
authored
Merge pull request #43 from Tim-Zhang/async-dep-op
Set dependencies of async to optional
2 parents 7e3634e + f119899 commit aec729c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ libc = { version = "0.2.59", features = [ "extra_traits" ] }
1717
nix = "0.16.1"
1818
log = "0.4"
1919
byteorder = "1.3.2"
20-
async-trait = "0.1.31"
2120

22-
tokio = { version = "0.2", features = ["rt-threaded", "sync", "uds", "stream", "macros", "io-util"] }
23-
futures = "0.3"
24-
tokio-vsock = "0.2.1"
21+
async-trait = { version = "0.1.31", optional = true }
22+
tokio = { version = "0.2", features = ["rt-threaded", "sync", "uds", "stream", "macros", "io-util"], optional = true }
23+
futures = { version = "0.3", optional = true }
24+
tokio-vsock = { version = "0.2.1", optional = true }
2525

2626
[build-dependencies]
2727
protobuf-codegen-pure = "2.14.0"
2828

2929
[features]
3030
default = ["protobuf-codec", "sync"]
3131
protobuf-codec = ["protobuf"]
32-
async = []
32+
async = ["async-trait", "tokio", "futures", "tokio-vsock"]
3333
sync = []
3434

0 commit comments

Comments
 (0)