-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
53 lines (46 loc) · 1.92 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
[package]
name = "jsonrpc-utils"
version = "0.3.1"
edition = "2021"
license = "MIT"
repository = "https://github.com/sopium/jsonrpc-utils"
description = "Alternative pub/sub and server implementations for jsonrpc-core"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[workspace]
# This enables example scraping for all examples.
[[example]]
name = "openrpc"
doc-scrape-examples = true
[features]
server = ["dep:tokio", "dep:futures-core", "dep:futures-util", "dep:hex", "dep:rand"]
axum = ["dep:axum", "server"]
macros = ["dep:jsonrpc-utils-macros", "dep:anyhow"]
client = ["reqwest", "dep:anyhow"]
blocking-client = ["reqwest/blocking", "dep:anyhow"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
[dependencies]
jsonrpc-utils-macros = { path = "./jsonrpc-utils-macros", version = "=0.2.4", optional = true }
axum = { version = "0.7", features = ["ws"], optional = true }
futures-core = { version = "0.3.21", optional = true }
futures-util = { version = "0.3.21", optional = true }
hex = { version = "0.4.3", optional = true }
jsonrpc-core = "18.0.0"
pin-project-lite = "0.2.9"
rand = { version = "0.8.5", optional = true }
tokio = { version = "1.19.0", features = ["sync", "macros", "time", "rt"], optional = true }
serde_json = { version = "1.0.81", features = ["raw_value"] }
reqwest = { version = "0.11.11", optional = true, default-features = false }
anyhow = { version = "1.0.57", optional = true }
[dev-dependencies]
async-stream = "0.3.3"
tokio = { version = "1.19.0", features = ["rt-multi-thread"] }
tokio-stream = { version = "0.1.9", features = ["sync"] }
tokio-util = { version = "0.7.3", features = ["codec"] }
async-trait = "0.1.56"
schemars = "0.8.12"
serde = { version = "1.0.156", features = ["derive"] }
tower-http = { version = "0.5.0", features = ["cors"] }
jsonrpc-http-server = "18.0.0"