[package]
edition = "2021"
rust-version = "1.75"
name = "dig-rpc"
version = "0.7.0"
build = false
include = [
"src/**/*.rs",
"tests/**/*.rs",
"Cargo.toml",
"README.md",
"SPEC.md",
"LICENSE*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Axum-based JSON-RPC server framework for a DIG node. Serves the dig-rpc-protocol interface over mTLS (peer) / HTTPS (public read) / loopback (control), with tier-based method allow-lists, per-peer rate limiting, and graceful shutdown. The node supplies a handler; this crate owns the transport + envelope + boundary."
homepage = "https://github.com/DIG-Network/dig-rpc"
documentation = "https://docs.rs/dig-rpc"
readme = "README.md"
keywords = [
"dig-network",
"json-rpc",
"axum",
"mtls",
"rpc",
]
categories = [
"web-programming::http-server",
"cryptography::cryptocurrencies",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/DIG-Network/dig-rpc"
[features]
default = []
[lib]
name = "dig_rpc"
path = "src/lib.rs"
[[test]]
name = "http_pipeline"
path = "tests/http_pipeline.rs"
[[test]]
name = "mtls_peer"
path = "tests/mtls_peer.rs"
[dependencies.anyhow]
version = "1"
[dependencies.async-trait]
version = "0.1"
[dependencies.axum]
version = "0.7"
features = [
"http1",
"http2",
"json",
]
[dependencies.axum-server]
version = "0.7"
features = ["tls-rustls"]
default-features = false
[dependencies.dig-rpc-protocol]
version = "0.10"
[dependencies.parking_lot]
version = "0.12"
[dependencies.rustls]
version = "0.23"
features = [
"ring",
"std",
]
default-features = false
[dependencies.rustls-pemfile]
version = "2"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "1"
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"net",
"time",
"macros",
"sync",
]
[dependencies.tracing]
version = "0.1"
[dev-dependencies.http-body-util]
version = "0.1"
[dev-dependencies.rcgen]
version = "0.13"
features = [
"ring",
"pem",
]
default-features = false
[dev-dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls-manual-roots",
]
default-features = false
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"net",
"time",
"macros",
"sync",
"test-util",
]
[dev-dependencies.tower]
version = "0.5"
features = ["util"]
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"