dig-rpc 0.1.0

Axum-based JSON-RPC server for the DIG Network fullnode / validator. mTLS transport, role-based method allow-lists, per-bucket rate limiting, graceful shutdown integrated with dig-service.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "dig-rpc"
version = "0.1.0"
build = false
include = [
    "src/**/*.rs",
    "tests/**/*.rs",
    "Cargo.toml",
    "Cargo.lock",
    "README.md",
    "LICENSE*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Axum-based JSON-RPC server for the DIG Network fullnode / validator. mTLS transport, role-based method allow-lists, per-bucket rate limiting, graceful shutdown integrated with dig-service."
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 = ["metrics"]
metrics = []
testing = []

[lib]
name = "dig_rpc"
path = "src/lib.rs"

[[test]]
name = "dispatch"
path = "tests/dispatch.rs"

[dependencies.anyhow]
version = "1"

[dependencies.axum]
version = "0.7"
features = [
    "http1",
    "http2",
    "json",
    "matched-path",
]

[dependencies.axum-server]
version = "0.7"
features = ["tls-rustls"]
default-features = false

[dependencies.bytes]
version = "1"

[dependencies.dig-rpc-types]
version = "0.1"

[dependencies.dig-service]
version = "0.1"

[dependencies.futures]
version = "0.3"

[dependencies.hyper]
version = "1"
features = ["server"]

[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.tokio-rustls]
version = "0.26"
features = ["ring"]
default-features = false

[dependencies.tower]
version = "0.5"
features = [
    "util",
    "timeout",
    "limit",
]

[dependencies.tower-http]
version = "0.6"
features = [
    "trace",
    "cors",
]

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1"
features = ["v7"]

[dependencies.x509-parser]
version = "0.17"

[dev-dependencies.async-trait]
version = "0.1"

[dev-dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "net",
    "time",
    "macros",
    "sync",
    "test-util",
]

[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"