-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
72 lines (59 loc) · 1.81 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
[package]
name = "ajj"
description = "Simple, modern, ergonomic JSON-RPC 2.0 router built with tower and axum"
keywords = ["json-rpc", "jsonrpc", "json"]
categories = ["web-programming::http-server", "web-programming::websocket"]
version = "0.1.2"
edition = "2021"
rust-version = "1.81"
authors = ["init4", "James Prestwich"]
license = "MIT OR Apache-2.0"
homepage = "https://github.com/init4tech/rpc"
repository = "https://github.com/init4tech/rpc"
[dependencies]
bytes = "1.9.0"
pin-project = "1.1.8"
serde = { version = "1.0.217", features = ["derive"] }
serde_json = { version = "1.0.135", features = ["raw_value"] }
thiserror = "2.0.9"
tokio = { version = "1.43.0", features = ["sync", "rt", "macros"] }
tower = { version = "0.5.2", features = ["util"] }
tracing = "0.1.41"
# axum
axum = { version = "0.8.1", optional = true }
# pubsub
tokio-stream = { version = "0.1.17", optional = true }
# ipc
interprocess = { version = "2.2.2", features = ["async", "tokio"], optional = true }
tokio-util = { version = "0.7.13", optional = true, features = ["io"] }
# ws
tokio-tungstenite = { version = "0.26.1", features = ["rustls-tls-webpki-roots"], optional = true }
futures-util = { version = "0.3.31", optional = true }
[features]
default = ["axum", "ws", "ipc"]
axum = ["dep:axum"]
pubsub = ["dep:tokio-stream"]
ipc = ["pubsub", "dep:tokio-util", "dep:interprocess"]
ws = ["pubsub", "dep:tokio-tungstenite", "dep:futures-util"]
tokio-util = ["dep:tokio-util"]
[profile.release]
opt-level = 3
lto = "thin"
debug = "line-tables-only"
strip = true
panic = "unwind"
codegen-units = 16
[profile.profiling]
inherits = "release"
debug = 2
strip = false
[profile.bench]
inherits = "profiling"
[profile.ci-rust]
inherits = "dev"
strip = true
debug = false
incremental = false
[dev-dependencies]
tempfile = "3.15.0"
tracing-subscriber = "0.3.19"