forked from containerd/ttrpc-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
72 lines (63 loc) · 2.18 KB
/
Cargo.toml
File metadata and controls
72 lines (63 loc) · 2.18 KB
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
63
64
65
66
67
68
69
70
71
72
[workspace]
members = [
"./compiler",
"./ttrpc-codegen",
"./example",
"./"
]
resolver = "2"
[workspace.package]
edition = "2018"
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/containerd/ttrpc-rust"
homepage = "https://github.com/containerd/ttrpc-rust"
authors = ["The AntFin Kata Team <kata@list.alibaba-inc.com>"]
[workspace.dependencies]
# The dependencies in this section can be used by the crates in this
# workspace by specifying `workspace = true` instead of the crate
# version. For example, for protobuf:
# protobuf = { workspace = true }
ttrpc = { version = "0.8.4", path = "./" }
ttrpc-codegen = { version = "0.5.0", path = "./ttrpc-codegen" }
ttrpc-compiler = { version = "0.7.0", path = "./compiler" }
protobuf = "3.7.2"
protobuf-codegen = "3.7.2"
protobuf-support = "3.7.2"
[package]
name = "ttrpc"
version = "0.8.4"
authors = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
homepage = { workspace = true }
keywords = ["ttrpc", "protobuf", "rpc"]
readme = "README.md"
description = "A Rust version of ttrpc."
rust-version = "1.70"
[dependencies]
protobuf = { workspace = true }
libc = { version = "0.2.59", features = [ "extra_traits" ] }
nix = "0.26.2"
log = "0.4"
byteorder = "1.3.2"
thiserror = "1.0"
async-trait = { version = "0.1.31", optional = true }
async-stream = { version = "0.3.6", optional = true }
tokio = { version = "1", features = ["rt", "sync", "io-util", "macros", "time", "net"], optional = true }
futures = { version = "0.3", optional = true }
crossbeam = "0.8.0"
[target.'cfg(windows)'.dependencies]
windows-sys = {version = "0.48", features = [ "Win32_Foundation", "Win32_Storage_FileSystem", "Win32_System_IO", "Win32_System_Pipes", "Win32_Security", "Win32_System_Threading"]}
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]
tokio-vsock = { version = "0.7.0", optional = true }
[build-dependencies]
protobuf-codegen = { workspace = true }
[features]
default = ["sync"]
async = ["async-trait", "async-stream", "tokio", "futures", "tokio-vsock"]
sync = []
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]