Cargo.toml 2.34 KB
Newer Older
Niklas Adolfsson's avatar
Niklas Adolfsson committed
1
[package]
Maciej Hirsz's avatar
Maciej Hirsz committed
2
name = "jsonrpsee-core"
3
version = "0.15.1"
Niklas Adolfsson's avatar
Niklas Adolfsson committed
4
5
authors = ["Parity Technologies <admin@parity.io>"]
description = "Utilities for jsonrpsee"
6
edition = "2021"
Niklas Adolfsson's avatar
Niklas Adolfsson committed
7
8
9
license = "MIT"

[dependencies]
Maciej Hirsz's avatar
Maciej Hirsz committed
10
11
anyhow = "1"
async-trait = "0.1"
12
beef = { version = "0.5.1", features = ["impl_serde"] }
13
futures-channel = "0.3.14"
14
jsonrpsee-types = { path = "../types", version = "0.15.1" }
Maciej Hirsz's avatar
Maciej Hirsz committed
15
thiserror = "1"
16
17
serde = { version = "1.0", default-features = false, features = ["derive"] }
serde_json = { version = "1", features = ["raw_value"] }
18
tracing = "0.1.34"
19
20
21
22
23

# optional deps
arrayvec = { version = "0.7.1", optional = true }
async-channel = { version = "1.6", optional = true }
async-lock = { version = "2.4", optional = true }
24
futures-util = { version = "0.3.14", default-features = false, optional = true }
25
hyper = { version = "0.14.10", default-features = false, features = ["stream"], optional = true }
26
tracing-futures = { version = "0.2", optional = true }
Niklas Adolfsson's avatar
Niklas Adolfsson committed
27
rustc-hash = { version = "1", optional = true }
28
rand = { version = "0.8", optional = true }
29
soketto = { version = "0.7.1", optional = true }
30
parking_lot = { version = "0.12", optional = true }
31
tokio = { version = "1.16", optional = true }
32
33
wasm-bindgen-futures = { version = "0.4.19", optional = true }
futures-timer = { version = "3", optional = true }
34
35
36
globset = { version = "0.4", optional = true }
lazy_static = { version = "1", optional = true }
unicase = { version = "2.6.0", optional = true }
37
http = { version = "0.2.7", optional = true }
Niklas Adolfsson's avatar
Niklas Adolfsson committed
38

39
[features]
Niklas Adolfsson's avatar
Niklas Adolfsson committed
40
default = []
41
http-helpers = ["hyper", "futures-util"]
42
server = [
43
44
	"arrayvec",
	"futures-util/alloc",
45
	"globset",
46
	"rustc-hash/std",
47
	"parking_lot",
48
	"rand",
David's avatar
David committed
49
50
	"tokio/rt",
	"tokio/sync",
51
52
	"lazy_static",
	"unicase",
53
	"http",
54
	"hyper",
55
]
56
client = ["futures-util/sink", "futures-channel/sink", "futures-channel/std"]
57
async-client = [
58
	"async-lock",
59
60
	"client",
	"rustc-hash",
61
	"tokio/macros",
David's avatar
David committed
62
63
	"tokio/rt",
	"tokio/sync",
64
	"tracing-futures",
65
66
67
68
69
70
71
	"futures-timer",
]
async-wasm-client = [
	"async-lock",
	"client",
	"wasm-bindgen-futures",
	"rustc-hash/std",
72
	"tracing-futures",
73
	"futures-timer/wasm-bindgen",
74
]
75

Niklas Adolfsson's avatar
Niklas Adolfsson committed
76
77
[dev-dependencies]
serde_json = "1.0"
78
tokio = { version = "1.16", features = ["macros", "rt"] }
79
jsonrpsee = { path = "../jsonrpsee", features = ["server", "macros"] }
80
81
82
83
84
85
86

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[package.metadata.playground]
all-features = true