| Crates.io | veto-config |
| lib.rs | veto-config |
| version | 0.1.0 |
| created_at | 2025-10-16 14:22:05.503235+00 |
| updated_at | 2025-10-16 14:22:05.503235+00 |
| description | Configuration utilities for the Veto proxy |
| homepage | https://github.com/refcell/veto |
| repository | https://github.com/refcell/veto |
| max_upload_size | |
| id | 1886192 |
| size | 22,727 |
veto-configConfiguration management for the Veto JSON-RPC proxy.
FileConfig] mirrors the on-disk .veto.tomlOverrides] captures runtime flags and environment tweaksresolve_config] merges defaults, files, and overrides into a [Config]DEFAULT_BIND_ADDRESS], [DEFAULT_UPSTREAM_URL], [DEFAULT_CONFIG_PATH] centralize proxy constants# fn main() -> Result<(), Box<dyn std::error::Error>> {
use std::path::Path;
use veto_config::{load_file, resolve_config, Overrides};
let file = load_file(Path::new(".veto.toml"))?;
let overrides = Overrides::default();
let config = resolve_config(file, overrides)?;
println!("Proxy listening on {}", config.bind_address());
println!("Forwarding to {}", config.upstream_url());
# Ok(())
# }
Found something missing? Open an issue or send a PR so we can improve the proxy together.