-
Notifications
You must be signed in to change notification settings - Fork 14
/
Cargo.toml
82 lines (70 loc) · 2.57 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[package]
name = "quic-rpc"
version = "0.15.0"
edition = "2021"
authors = ["Rüdiger Klaehn <[email protected]>", "n0 team"]
keywords = ["api", "protocol", "network", "rpc"]
categories = ["network-programming"]
license = "Apache-2.0/MIT"
repository = "https://github.com/n0-computer/quic-rpc"
description = "A streaming rpc system based on quic"
# Sadly this also needs to be updated in .github/workflows/ci.yml
rust-version = "1.76"
[dependencies]
bincode = { version = "1.3.3", optional = true }
bytes = { version = "1", optional = true }
derive_more = { version = "1.0.0-beta.6", features = ["from", "try_into", "display"] }
flume = { version = "0.11", optional = true }
futures-lite = "2.3.0"
futures-sink = "0.3.30"
futures-util = { version = "0.3.30", features = ["sink"] }
hyper = { version = "0.14.16", features = ["full"], optional = true }
pin-project = "1"
quinn = { package = "iroh-quinn", version = "0.12", optional = true }
serde = { version = "1.0.183", features = ["derive"] }
tokio = { version = "1", default-features = false, features = ["macros", "sync"] }
tokio-serde = { version = "0.8", features = ["bincode"], optional = true }
tokio-util = { version = "0.7", features = ["codec"], optional = true }
tracing = "0.1"
hex = "0.4.3"
futures = { version = "0.3.30", optional = true }
anyhow = "1.0.73"
# Indirect dependencies, is needed to make the minimal crates versions work
educe = "0.4.20" # tokio-serde
slab = "0.4.9" # iroh-quinn
[dev-dependencies]
anyhow = "1.0.73"
async-stream = "0.3.3"
serde = { version = "1", features = ["derive"] }
tokio = { version = "1", features = ["full"] }
quinn = { package = "iroh-quinn", version = "0.12", features = ["ring"] }
rcgen = "0.12"
thousands = "0.2.0"
tracing-subscriber = "0.3.16"
tempfile = "3.5.0"
proc-macro2 = "1.0.66"
futures-buffered = "0.2.4"
testresult = "0.4.1"
nested_enum_utils = "0.1.0"
[features]
hyper-transport = ["dep:flume", "dep:hyper", "dep:bincode", "dep:bytes", "dep:tokio-serde", "dep:tokio-util"]
quinn-transport = ["dep:flume", "dep:quinn", "dep:bincode", "dep:tokio-serde", "dep:tokio-util"]
flume-transport = ["dep:flume"]
macros = []
default = ["flume-transport"]
[package.metadata.docs.rs]
all-features = true
[[example]]
name = "errors"
required-features = ["flume-transport"]
[[example]]
name = "macro"
required-features = ["flume-transport", "macros"]
[[example]]
name = "store"
required-features = ["flume-transport", "macros"]
[[example]]
name = "modularize"
required-features = ["flume-transport"]
[workspace]
members = ["examples/split/types", "examples/split/server", "examples/split/client", "quic-rpc-derive"]