-
Notifications
You must be signed in to change notification settings - Fork 16
/
Cargo.toml
102 lines (89 loc) · 3.39 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[package]
name = "quic-rpc"
version = "0.17.3"
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]
bytes = { version = "1", optional = true }
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 }
iroh = { version = "0.29", optional = true }
pin-project = "1"
quinn = { package = "iroh-quinn", version = "0.12", optional = true }
serde = { version = "1", features = ["derive"] }
tokio = { version = "1", default-features = false, features = ["macros", "sync"] }
tokio-serde = { version = "0.9", features = [], optional = true }
tokio-util = { version = "0.7", features = ["rt"] }
postcard = { version = "1", features = ["use-std"], optional = true }
tracing = "0.1"
futures = { version = "0.3.30", optional = true }
anyhow = "1"
document-features = "0.2"
# for test-utils
rcgen = { version = "0.13", optional = true }
# for test-utils
rustls = { version = "0.23", default-features = false, features = ["ring"], optional = true }
# Indirect dependencies, is needed to make the minimal crates versions work
slab = "0.4.9" # iroh-quinn
smallvec = "1.13.2"
time = "0.3.36" # serde
[dev-dependencies]
anyhow = "1"
async-stream = "0.3.3"
derive_more = { version = "1", features = ["from", "try_into", "display"] }
serde = { version = "1", features = ["derive"] }
tokio = { version = "1", features = ["full"] }
quinn = { package = "iroh-quinn", version = "0.12", features = ["ring"] }
rcgen = "0.13"
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"
tokio-util = { version = "0.7", features = ["rt"] }
[features]
## HTTP transport using the `hyper` crate
hyper-transport = ["dep:flume", "dep:hyper", "dep:postcard", "dep:bytes", "dep:tokio-serde", "tokio-util/codec"]
## QUIC transport using the `iroh-quinn` crate
quinn-transport = ["dep:flume", "dep:quinn", "dep:postcard", "dep:bytes", "dep:tokio-serde", "tokio-util/codec"]
## In memory transport using the `flume` crate
flume-transport = ["dep:flume"]
## p2p QUIC transport using the `iroh` crate
iroh-transport = ["dep:iroh", "dep:flume", "dep:postcard", "dep:tokio-serde", "tokio-util/codec"]
## Macros for creating request handlers
macros = []
## Utilities for testing
test-utils = ["dep:rcgen", "dep:rustls"]
## Default, includes the memory transport
default = ["flume-transport"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "quicrpc_docsrs"]
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(quicrpc_docsrs)"] }
[[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"]