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
1
2
3
4
5
6
7
8
9
//! Audit-log middleware.
//!
//! Wraps every request in a tracing span and logs (peer, method, status,
//! duration). The log sink is whatever `tracing_subscriber` the binary has
//! configured in `main.rs` — this middleware is a pure `tracing` facade.

/// Zero-sized marker; actual logging happens inline in the request handler.
#[derive(Debug, Default, Clone, Copy)]
pub struct AuditLayer;