veto-core

Crates.ioveto-core
lib.rsveto-core
version0.1.0
created_at2025-10-16 14:22:32.316552+00
updated_at2025-10-16 14:22:32.316552+00
descriptionCore proxy runtime for the Veto project
homepagehttps://github.com/refcell/veto
repositoryhttps://github.com/refcell/veto
max_upload_size
id1886194
size41,128
refcell (refcell)

documentation

README

veto-core

Core runtime for the Veto JSON-RPC proxy.

Features

  • Runtime – [run] bootstraps the Axum server, binds to the requested socket, and awaits Ctrl+C for shutdown
  • Proxy Engine – [router] wires handlers around [AppState] so the proxy can forward or block JSON-RPC calls
  • JSON-RPC Validation – strict parsing guards against malformed payloads and rejects batch requests up front
  • Error Reporting – deterministic error payloads and rich [ProxyError] diagnostics for callers

Usage

use veto_config::{resolve_config, Overrides};
use veto_core::run;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let config = resolve_config(None, Overrides::default())?;
    run(config).await?;
    Ok(())
}

Contributing

Pull requests are welcome! Open an issue to discuss ideas or report bugs before sending a patch.

Commit count: 0

cargo fmt