From 790a3c4cef02a883d5eb6ef950c6ddd3275f9e24 Mon Sep 17 00:00:00 2001 From: Chris O'Neil Date: Thu, 12 Mar 2026 23:28:08 +0000 Subject: [PATCH 01/11] feat: wire up HTTP metrics server from saorsa-core HealthServer Connect the existing metrics_port config to saorsa-core's HealthServer, exposing /health, /ready, /metrics, and /debug/vars endpoints. - Move metrics_port from PaymentConfig to NodeConfig (semantically correct) - Add metrics_host field to NodeConfig and --metrics-host CLI arg - Instantiate HealthManager with 5 component checkers (DHT, network, transport, peers, storage) using P2PNode data sources - Spawn HealthServer as background task with graceful shutdown - Disable metrics server when port is 0 Co-Authored-By: Claude Opus 4.6 --- src/bin/saorsa-node/cli.rs | 15 ++++- src/config.rs | 116 ++++++++++++++++++++++++++++++++++--- src/node.rs | 109 ++++++++++++++++++++++++++++++++-- 3 files changed, 225 insertions(+), 15 deletions(-) diff --git a/src/bin/saorsa-node/cli.rs b/src/bin/saorsa-node/cli.rs index e04f2b5a..0f5c4333 100644 --- a/src/bin/saorsa-node/cli.rs +++ b/src/bin/saorsa-node/cli.rs @@ -5,7 +5,7 @@ use saorsa_node::config::{ BootstrapCacheConfig, EvmNetworkConfig, IpVersion, NetworkMode, NodeConfig, PaymentConfig, UpgradeChannel, UpgradeConfig, }; -use std::net::SocketAddr; +use std::net::{IpAddr, SocketAddr}; use std::path::PathBuf; /// Pure quantum-proof network node for the Saorsa decentralized network. @@ -63,10 +63,15 @@ pub struct Cli { )] pub evm_network: CliEvmNetwork, - /// Metrics port for Prometheus scraping (0 to disable). + /// Metrics/health server port for Prometheus scraping (0 to disable). #[arg(long, default_value = "9100", env = "SAORSA_METRICS_PORT")] pub metrics_port: u16, + /// Metrics/health server bind address (default: 127.0.0.1 loopback only). + /// Use 0.0.0.0 to expose on all interfaces. + #[arg(long, default_value = "127.0.0.1", env = "SAORSA_METRICS_HOST")] + pub metrics_host: IpAddr, + /// Log level. #[arg(long, value_enum, default_value = "info", env = "RUST_LOG")] pub log_level: CliLogLevel, @@ -224,9 +229,13 @@ impl Cli { cache_capacity: self.cache_capacity, rewards_address: self.rewards_address, evm_network: self.evm_network.into(), - metrics_port: self.metrics_port, + metrics_port: None, }; + // Metrics config + config.metrics_port = self.metrics_port; + config.metrics_host = self.metrics_host; + // Bootstrap cache config config.bootstrap_cache = BootstrapCacheConfig { enabled: !self.disable_bootstrap_cache, diff --git a/src/config.rs b/src/config.rs index 008d54ba..ff003fcb 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,7 +1,7 @@ //! Configuration for saorsa-node. use serde::{Deserialize, Serialize}; -use std::net::{Ipv4Addr, SocketAddr, SocketAddrV4}; +use std::net::{IpAddr, Ipv4Addr, SocketAddr, SocketAddrV4}; use std::path::PathBuf; /// Filename for the persisted node identity keypair. @@ -148,6 +148,18 @@ pub struct NodeConfig { /// Log level. #[serde(default = "default_log_level")] pub log_level: String, + + /// Metrics/health server port for Prometheus scraping. + /// Set to 0 to disable the metrics endpoint. + #[serde(default = "default_metrics_port")] + pub metrics_port: u16, + + /// Metrics/health server bind address. + /// Defaults to `127.0.0.1` (loopback only). Set to `0.0.0.0` to expose + /// metrics on all interfaces — note this makes `/debug/vars` publicly + /// accessible. + #[serde(default = "default_metrics_host")] + pub metrics_host: IpAddr, } /// Auto-upgrade configuration. @@ -221,10 +233,11 @@ pub struct PaymentConfig { #[serde(default)] pub evm_network: EvmNetworkConfig, - /// Metrics port for Prometheus scraping. - /// Set to 0 to disable metrics endpoint. - #[serde(default = "default_metrics_port")] - pub metrics_port: u16, + /// **Deprecated:** Metrics port previously lived here. Now use + /// the top-level `metrics_port` field on `NodeConfig`. If this + /// field is set, the value is migrated automatically with a warning. + #[serde(default)] + pub metrics_port: Option, } impl Default for PaymentConfig { @@ -234,7 +247,7 @@ impl Default for PaymentConfig { cache_capacity: default_cache_capacity(), rewards_address: None, evm_network: EvmNetworkConfig::default(), - metrics_port: default_metrics_port(), + metrics_port: None, } } } @@ -243,6 +256,10 @@ const fn default_metrics_port() -> u16 { 9100 } +fn default_metrics_host() -> IpAddr { + IpAddr::V4(Ipv4Addr::LOCALHOST) +} + const fn default_payment_enabled() -> bool { true } @@ -266,6 +283,8 @@ impl Default for NodeConfig { storage: StorageConfig::default(), max_message_size: default_max_message_size(), log_level: default_log_level(), + metrics_port: default_metrics_port(), + metrics_host: default_metrics_host(), } } } @@ -309,6 +328,30 @@ impl NodeConfig { !matches!(self.network_mode, NetworkMode::Production) } + /// Migrate deprecated config fields, logging warnings for any that are found. + /// + /// If both the deprecated `payment.metrics_port` and the new top-level + /// `metrics_port` are set, the top-level value takes precedence and the + /// deprecated value is ignored with a warning. + pub fn migrate_deprecated(&mut self) { + if let Some(port) = self.payment.metrics_port.take() { + if self.metrics_port == default_metrics_port() { + tracing::warn!( + "Deprecated: `payment.metrics_port` is now a top-level field `metrics_port`. \ + Migrating value {port} automatically — please update your config file." + ); + self.metrics_port = port; + } else { + tracing::warn!( + "Deprecated `payment.metrics_port = {port}` ignored — \ + using top-level `metrics_port = {}`. \ + Please remove `payment.metrics_port` from your config file.", + self.metrics_port + ); + } + } + } + /// Load configuration from a TOML file. /// /// # Errors @@ -316,7 +359,10 @@ impl NodeConfig { /// Returns an error if the file cannot be read or parsed. pub fn from_file(path: &std::path::Path) -> crate::Result { let content = std::fs::read_to_string(path)?; - toml::from_str(&content).map_err(|e| crate::Error::Config(e.to_string())) + let mut config: Self = + toml::from_str(&content).map_err(|e| crate::Error::Config(e.to_string()))?; + config.migrate_deprecated(); + Ok(config) } /// Save configuration to a TOML file. @@ -525,4 +571,60 @@ mod tests { "EVM verification must be enabled by default" ); } + + #[test] + fn test_migrate_deprecated_metrics_port() { + let mut config = NodeConfig { + payment: PaymentConfig { + metrics_port: Some(9200), + ..Default::default() + }, + ..Default::default() + }; + config.migrate_deprecated(); + assert_eq!(config.metrics_port, 9200); + assert!(config.payment.metrics_port.is_none()); + } + + #[test] + fn test_migrate_deprecated_clears_old_field() { + let mut config = NodeConfig { + payment: PaymentConfig { + metrics_port: Some(9300), + ..Default::default() + }, + ..Default::default() + }; + config.migrate_deprecated(); + assert!( + config.payment.metrics_port.is_none(), + "deprecated field must be cleared after migration" + ); + } + + #[test] + fn test_migrate_deprecated_new_field_takes_precedence() { + let mut config = NodeConfig { + metrics_port: 9400, + payment: PaymentConfig { + metrics_port: Some(9200), + ..Default::default() + }, + ..Default::default() + }; + config.migrate_deprecated(); + assert_eq!( + config.metrics_port, 9400, + "top-level metrics_port must take precedence over deprecated payment.metrics_port" + ); + assert!(config.payment.metrics_port.is_none()); + } + + #[test] + fn test_migrate_deprecated_noop_when_absent() { + let mut config = NodeConfig::default(); + let original_port = config.metrics_port; + config.migrate_deprecated(); + assert_eq!(config.metrics_port, original_port); + } } diff --git a/src/node.rs b/src/node.rs index 8a3f1ea0..890e789e 100644 --- a/src/node.rs +++ b/src/node.rs @@ -14,6 +14,10 @@ use crate::storage::{AntProtocol, LmdbStorage, LmdbStorageConfig}; use crate::upgrade::{AutoApplyUpgrader, UpgradeMonitor, UpgradeResult}; use ant_evm::RewardsAddress; use evmlib::Network as EvmNetwork; +use saorsa_core::health::{ + DhtHealthChecker, HealthManager, HealthServer, PeerHealthChecker, StorageHealthChecker, + TransportHealthChecker, +}; use saorsa_core::identity::NodeIdentity; use saorsa_core::{ BootstrapConfig as CoreBootstrapConfig, BootstrapManager, @@ -125,13 +129,15 @@ impl NodeBuilder { debug!("Core config: {:?}", core_config); // Initialize saorsa-core's P2PNode - let p2p_node = P2PNode::new(core_config) - .await - .map_err(|e| Error::Startup(format!("Failed to create P2P node: {e}")))?; + let p2p_node_arc = Arc::new( + P2PNode::new(core_config) + .await + .map_err(|e| Error::Startup(format!("Failed to create P2P node: {e}")))?, + ); // Create upgrade monitor if enabled let upgrade_monitor = if self.config.upgrade.enabled { - let node_id_seed = p2p_node.peer_id().as_bytes(); + let node_id_seed = p2p_node_arc.peer_id().as_bytes(); Some(Self::build_upgrade_monitor(&self.config, node_id_seed)) } else { None @@ -145,6 +151,9 @@ impl NodeBuilder { None }; + // Initialize health manager and register component checkers + let health_manager = Self::build_health_manager(&p2p_node_arc, &self.config).await; + // Initialize ANT protocol handler for chunk storage let ant_protocol = if self.config.storage.enabled { Some(Arc::new( @@ -157,13 +166,16 @@ impl NodeBuilder { let node = RunningNode { config: self.config, - p2p_node: Arc::new(p2p_node), + p2p_node: p2p_node_arc, shutdown, events_tx, events_rx: Some(events_rx), upgrade_monitor, bootstrap_manager, ant_protocol, + health_manager, + health_shutdown_tx: None, + health_handle: None, protocol_task: None, }; @@ -440,6 +452,55 @@ impl NodeBuilder { } } } + + /// Build the health manager and register component health checkers. + async fn build_health_manager( + p2p_node: &Arc, + config: &NodeConfig, + ) -> Arc { + let hm = Arc::new(HealthManager::new(env!("CARGO_PKG_VERSION").to_string())); + + let p2p = Arc::clone(p2p_node); + hm.register_checker( + "dht", + Box::new(DhtHealthChecker::new(move || { + let p2p = Arc::clone(&p2p); + async move { + let stats = p2p.dht().get_stats().await; + Ok(stats.routing_table_size) + } + })), + ) + .await; + + let p2p = Arc::clone(p2p_node); + hm.register_checker( + "transport", + Box::new(TransportHealthChecker::new(move || { + let p2p = Arc::clone(&p2p); + async move { Ok(p2p.is_running()) } + })), + ) + .await; + + let p2p = Arc::clone(p2p_node); + hm.register_checker( + "peers", + Box::new(PeerHealthChecker::new(move || { + let p2p = Arc::clone(&p2p); + async move { Ok(p2p.peer_count().await) } + })), + ) + .await; + + hm.register_checker( + "storage", + Box::new(StorageHealthChecker::new(config.root_dir.clone())), + ) + .await; + + hm + } } /// A running saorsa node. @@ -454,6 +515,12 @@ pub struct RunningNode { bootstrap_manager: Option, /// ANT protocol handler for chunk storage. ant_protocol: Option>, + /// Health manager for component health checks. + health_manager: Arc, + /// Shutdown signal sender for the health/metrics HTTP server. + health_shutdown_tx: Option>, + /// Join handle for the health/metrics HTTP server task. + health_handle: Option>, /// Protocol message routing background task. protocol_task: Option>, } @@ -503,6 +570,9 @@ impl RunningNode { // Start protocol message routing (P2P → AntProtocol → P2P response) self.start_protocol_routing(); + // Start health/metrics HTTP server if metrics_port != 0 + self.start_health_server(); + // Start upgrade monitor if enabled if let Some(ref monitor) = self.upgrade_monitor { let monitor = Arc::clone(monitor); @@ -578,6 +648,14 @@ impl RunningNode { } } + // Stop health/metrics server + if let Some(tx) = self.health_shutdown_tx.take() { + let _ = tx.send(()); + } + if let Some(handle) = self.health_handle.take() { + let _ = handle.await; + } + // Stop protocol routing task if let Some(handle) = self.protocol_task.take() { handle.abort(); @@ -645,6 +723,27 @@ impl RunningNode { Ok(()) } + /// Start the health/metrics HTTP server if configured. + fn start_health_server(&mut self) { + if self.config.metrics_port == 0 { + return; + } + + let metrics_addr = SocketAddr::new(self.config.metrics_host, self.config.metrics_port); + + let (health_server, shutdown_tx) = + HealthServer::new(Arc::clone(&self.health_manager), metrics_addr); + self.health_shutdown_tx = Some(shutdown_tx); + + self.health_handle = Some(tokio::spawn(async move { + if let Err(e) = health_server.run().await { + error!("Health server failed: {e}"); + } + })); + + info!("Metrics server listening on {metrics_addr}"); + } + /// Start the protocol message routing background task. /// /// Subscribes to P2P events and routes incoming chunk protocol messages From 25e65f0e09bc05cd9cfcde248b8108704c2e1e36 Mon Sep 17 00:00:00 2001 From: Chris O'Neil Date: Sat, 14 Mar 2026 23:59:41 +0000 Subject: [PATCH 02/11] feat: add Prometheus metrics aggregation and export pipeline Build a complete metrics pipeline with two data paths: - Event-driven: MetricsAggregator processes MetricEvents from saorsa-core into atomic counters and sliding windows (lookups, DHT ops, auth, streams, storage, peer connections) - Pull-based: SnapshotCollector reads state snapshots from saorsa-core accessors on each /metrics scrape (DHT health, security, trust, placement, transport, EigenTrust scores) Replace saorsa-core's HealthServer with our own Axum server that combines health component metrics with ~80 domain metric families in Prometheus text exposition format on /metrics. Update saorsa-core dependency to git branch feat-metrics_event_channel which provides the MetricEvent channel and accessor methods. Co-Authored-By: Claude Opus 4.6 (1M context) --- Cargo.toml | 5 +- src/bin/saorsa-cli/main.rs | 5 +- src/devnet.rs | 9 +- src/lib.rs | 1 + src/metrics/aggregator.rs | 423 ++++++++++++++ src/metrics/mod.rs | 17 + src/metrics/prometheus.rs | 1127 ++++++++++++++++++++++++++++++++++++ src/metrics/snapshot.rs | 89 +++ src/node.rs | 312 ++++++++-- 9 files changed, 1947 insertions(+), 41 deletions(-) create mode 100644 src/metrics/aggregator.rs create mode 100644 src/metrics/mod.rs create mode 100644 src/metrics/prometheus.rs create mode 100644 src/metrics/snapshot.rs diff --git a/Cargo.toml b/Cargo.toml index ce14c307..7c8bf1bc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,7 @@ path = "src/bin/saorsa-cli/main.rs" [dependencies] # Core (provides EVERYTHING: networking, DHT, security, trust, storage) -saorsa-core = "0.14.1" +saorsa-core = { git = "https://github.com/jacderida/saorsa-core", branch = "feat-metrics_event_channel" } saorsa-pqc = "0.5" # Payment verification - autonomi network lookup + EVM payment @@ -60,6 +60,9 @@ self_encryption = { git = "https://github.com/grumbach/self_encryption.git", bra # Hashing (aligned with saorsa-core) blake3 = "1" +# HTTP server for metrics endpoint +axum = "0.8" + # Async runtime tokio = { version = "1.35", features = ["full", "signal"] } tokio-util = { version = "0.7", features = ["rt"] } diff --git a/src/bin/saorsa-cli/main.rs b/src/bin/saorsa-cli/main.rs index c95ca72a..5d0dbb8b 100644 --- a/src/bin/saorsa-cli/main.rs +++ b/src/bin/saorsa-cli/main.rs @@ -334,7 +334,10 @@ async fn create_client_node(bootstrap: Vec) -> Result>, +} + +impl OperationCounter { + fn new() -> Self { + Self { + total: AtomicU64::new(0), + errors: AtomicU64::new(0), + durations: RwLock::new(VecDeque::with_capacity(WINDOW_SIZE)), + } + } + + async fn record(&self, duration: Duration, success: bool) { + self.total.fetch_add(1, Ordering::Relaxed); + if !success { + self.errors.fetch_add(1, Ordering::Relaxed); + } + let micros = duration.as_micros().min(u128::from(u64::MAX)) as u64; + let mut window = self.durations.write().await; + if window.len() >= WINDOW_SIZE { + window.pop_front(); + } + window.push_back(micros); + } +} + +/// Aggregates event-driven metrics into counters and sliding windows. +pub struct MetricsAggregator { + // --- Peer connections (from P2PEvent) --- + pub(crate) connected_peers: AtomicU64, + + // --- Lookup metrics (from MetricEvent) --- + pub(crate) lookup_latencies: RwLock>, // microseconds + pub(crate) lookup_hops: RwLock>, + pub(crate) lookup_count: AtomicU64, + pub(crate) lookup_timeouts: AtomicU64, + + // --- DHT operation counters --- + pub(crate) dht_puts_total: AtomicU64, + pub(crate) dht_puts_success: AtomicU64, + pub(crate) dht_gets_total: AtomicU64, + pub(crate) dht_gets_success: AtomicU64, + + // --- Auth --- + pub(crate) auth_failures_total: AtomicU64, + + // --- Stream metrics --- + pub(crate) stream_bandwidth: RwLock>>, + pub(crate) stream_rtt: RwLock>>, // microseconds + + // --- Storage operations (saorsa-node's own layer) --- + pub(crate) storage_reads: OperationCounter, + pub(crate) storage_writes: OperationCounter, + pub(crate) storage_deletes: OperationCounter, +} + +impl MetricsAggregator { + /// Create a new, empty aggregator. + #[must_use] + pub fn new() -> Self { + Self { + connected_peers: AtomicU64::new(0), + + lookup_latencies: RwLock::new(VecDeque::with_capacity(WINDOW_SIZE)), + lookup_hops: RwLock::new(VecDeque::with_capacity(WINDOW_SIZE)), + lookup_count: AtomicU64::new(0), + lookup_timeouts: AtomicU64::new(0), + + dht_puts_total: AtomicU64::new(0), + dht_puts_success: AtomicU64::new(0), + dht_gets_total: AtomicU64::new(0), + dht_gets_success: AtomicU64::new(0), + + auth_failures_total: AtomicU64::new(0), + + stream_bandwidth: RwLock::new(HashMap::new()), + stream_rtt: RwLock::new(HashMap::new()), + + storage_reads: OperationCounter::new(), + storage_writes: OperationCounter::new(), + storage_deletes: OperationCounter::new(), + } + } + + // ---- Event handling ---- + + /// Process a metric event from saorsa-core's dedicated channel. + pub async fn handle_metric_event(&self, event: MetricEvent) { + match event { + MetricEvent::LookupCompleted { duration, hops } => { + self.lookup_count.fetch_add(1, Ordering::Relaxed); + let micros = duration.as_micros().min(u128::from(u64::MAX)) as u64; + { + let mut w = self.lookup_latencies.write().await; + if w.len() >= WINDOW_SIZE { + w.pop_front(); + } + w.push_back(micros); + } + { + let mut w = self.lookup_hops.write().await; + if w.len() >= WINDOW_SIZE { + w.pop_front(); + } + w.push_back(hops); + } + } + MetricEvent::LookupTimedOut => { + self.lookup_count.fetch_add(1, Ordering::Relaxed); + self.lookup_timeouts.fetch_add(1, Ordering::Relaxed); + } + MetricEvent::DhtPutCompleted { success, .. } => { + self.dht_puts_total.fetch_add(1, Ordering::Relaxed); + if success { + self.dht_puts_success.fetch_add(1, Ordering::Relaxed); + } + } + MetricEvent::DhtGetCompleted { success, .. } => { + self.dht_gets_total.fetch_add(1, Ordering::Relaxed); + if success { + self.dht_gets_success.fetch_add(1, Ordering::Relaxed); + } + } + MetricEvent::AuthFailure => { + self.auth_failures_total.fetch_add(1, Ordering::Relaxed); + } + MetricEvent::StreamBandwidth { + class, + bytes_per_sec, + } => { + let mut map = self.stream_bandwidth.write().await; + let window = map + .entry(class) + .or_insert_with(|| VecDeque::with_capacity(WINDOW_SIZE)); + if window.len() >= WINDOW_SIZE { + window.pop_front(); + } + window.push_back(bytes_per_sec); + } + MetricEvent::StreamRtt { class, rtt } => { + let micros = rtt.as_micros().min(u128::from(u64::MAX)) as u64; + let mut map = self.stream_rtt.write().await; + let window = map + .entry(class) + .or_insert_with(|| VecDeque::with_capacity(WINDOW_SIZE)); + if window.len() >= WINDOW_SIZE { + window.pop_front(); + } + window.push_back(micros); + } + } + } + + // ---- Peer connection tracking (from P2PEvent) ---- + + /// Record a new peer connection. + pub fn record_peer_connected(&self) { + self.connected_peers.fetch_add(1, Ordering::Relaxed); + } + + /// Record a peer disconnection. + pub fn record_peer_disconnected(&self) { + // Saturating subtract to avoid underflow if events arrive out of order. + let prev = self.connected_peers.load(Ordering::Relaxed); + if prev > 0 { + self.connected_peers + .fetch_update(Ordering::Relaxed, Ordering::Relaxed, |v| { + if v > 0 { + Some(v - 1) + } else { + None + } + }) + .ok(); + } + } + + // ---- Storage operation recording ---- + + /// Record a storage read operation. + pub async fn record_storage_read(&self, duration: Duration, success: bool) { + self.storage_reads.record(duration, success).await; + } + + /// Record a storage write operation. + pub async fn record_storage_write(&self, duration: Duration, success: bool) { + self.storage_writes.record(duration, success).await; + } + + /// Record a storage delete operation. + pub async fn record_storage_delete(&self, duration: Duration, success: bool) { + self.storage_deletes.record(duration, success).await; + } + + // ---- Accessors for PrometheusFormatter ---- + + /// Current number of connected peers. + pub fn connected_peers(&self) -> u64 { + self.connected_peers.load(Ordering::Relaxed) + } + + /// Total lookup count. + pub fn lookup_count(&self) -> u64 { + self.lookup_count.load(Ordering::Relaxed) + } + + /// Total lookup timeouts. + pub fn lookup_timeouts(&self) -> u64 { + self.lookup_timeouts.load(Ordering::Relaxed) + } + + /// Lookup timeout rate (timeouts / total lookups). + pub fn lookup_timeout_rate(&self) -> f64 { + let total = self.lookup_count.load(Ordering::Relaxed); + if total == 0 { + return 0.0; + } + self.lookup_timeouts.load(Ordering::Relaxed) as f64 / total as f64 + } + + /// DHT success rate across all puts and gets. + pub fn dht_success_rate(&self) -> f64 { + let total = self.dht_puts_total.load(Ordering::Relaxed) + + self.dht_gets_total.load(Ordering::Relaxed); + if total == 0 { + return 0.0; + } + let success = self.dht_puts_success.load(Ordering::Relaxed) + + self.dht_gets_success.load(Ordering::Relaxed); + success as f64 / total as f64 + } +} + +impl Default for MetricsAggregator { + fn default() -> Self { + Self::new() + } +} + +// ---- Percentile helpers ---- + +/// Compute a percentile (0–100) from a sorted slice of u64 values. +/// Returns 0 if the slice is empty. +pub(crate) fn percentile_u64(sorted: &[u64], p: f64) -> u64 { + if sorted.is_empty() { + return 0; + } + let idx = ((p / 100.0) * (sorted.len() as f64 - 1.0)).round().max(0.0) as usize; + sorted[idx.min(sorted.len() - 1)] +} + +/// Compute a percentile (0–100) from a sorted slice of u8 values. +/// Returns 0 if the slice is empty. +pub(crate) fn percentile_u8(sorted: &[u8], p: f64) -> u8 { + if sorted.is_empty() { + return 0; + } + let idx = ((p / 100.0) * (sorted.len() as f64 - 1.0)).round().max(0.0) as usize; + sorted[idx.min(sorted.len() - 1)] +} + +#[cfg(test)] +#[allow(clippy::unwrap_used, clippy::expect_used)] +mod tests { + use super::*; + + #[test] + fn percentile_empty() { + assert_eq!(percentile_u64(&[], 50.0), 0); + assert_eq!(percentile_u8(&[], 95.0), 0); + } + + #[test] + fn percentile_single_element() { + assert_eq!(percentile_u64(&[42], 50.0), 42); + assert_eq!(percentile_u64(&[42], 99.0), 42); + } + + #[test] + fn percentile_multiple() { + let data: Vec = (1..=100).collect(); + // With 100 elements (indices 0-99), p50 rounds to index 50 → value 51 + assert_eq!(percentile_u64(&data, 50.0), 51); + assert_eq!(percentile_u64(&data, 95.0), 95); + assert_eq!(percentile_u64(&data, 99.0), 99); + } + + #[tokio::test] + async fn handle_lookup_completed() { + let agg = MetricsAggregator::new(); + agg.handle_metric_event(MetricEvent::LookupCompleted { + duration: Duration::from_millis(42), + hops: 3, + }) + .await; + + assert_eq!(agg.lookup_count(), 1); + assert_eq!(agg.lookup_timeouts(), 0); + assert_eq!(agg.lookup_latencies.read().await.len(), 1); + assert_eq!(agg.lookup_hops.read().await.len(), 1); + } + + #[tokio::test] + async fn handle_lookup_timeout() { + let agg = MetricsAggregator::new(); + agg.handle_metric_event(MetricEvent::LookupTimedOut).await; + + assert_eq!(agg.lookup_count(), 1); + assert_eq!(agg.lookup_timeouts(), 1); + } + + #[tokio::test] + async fn handle_dht_ops() { + let agg = MetricsAggregator::new(); + agg.handle_metric_event(MetricEvent::DhtPutCompleted { + duration: Duration::from_millis(10), + success: true, + }) + .await; + agg.handle_metric_event(MetricEvent::DhtPutCompleted { + duration: Duration::from_millis(10), + success: false, + }) + .await; + agg.handle_metric_event(MetricEvent::DhtGetCompleted { + duration: Duration::from_millis(10), + success: true, + }) + .await; + + assert_eq!(agg.dht_puts_total.load(Ordering::Relaxed), 2); + assert_eq!(agg.dht_puts_success.load(Ordering::Relaxed), 1); + assert_eq!(agg.dht_gets_total.load(Ordering::Relaxed), 1); + assert_eq!(agg.dht_gets_success.load(Ordering::Relaxed), 1); + // 2 successes out of 3 total + let rate = agg.dht_success_rate(); + assert!((rate - 2.0 / 3.0).abs() < 0.001); + } + + #[tokio::test] + async fn peer_connect_disconnect() { + let agg = MetricsAggregator::new(); + agg.record_peer_connected(); + agg.record_peer_connected(); + assert_eq!(agg.connected_peers(), 2); + + agg.record_peer_disconnected(); + assert_eq!(agg.connected_peers(), 1); + + // Saturating: can't go below 0 + agg.record_peer_disconnected(); + agg.record_peer_disconnected(); + assert_eq!(agg.connected_peers(), 0); + } + + #[tokio::test] + async fn storage_operations() { + let agg = MetricsAggregator::new(); + agg.record_storage_write(Duration::from_millis(5), true) + .await; + agg.record_storage_write(Duration::from_millis(10), false) + .await; + + assert_eq!(agg.storage_writes.total.load(Ordering::Relaxed), 2); + assert_eq!(agg.storage_writes.errors.load(Ordering::Relaxed), 1); + assert_eq!(agg.storage_writes.durations.read().await.len(), 2); + } + + #[tokio::test] + async fn stream_bandwidth_and_rtt() { + let agg = MetricsAggregator::new(); + agg.handle_metric_event(MetricEvent::StreamBandwidth { + class: StreamClass::File, + bytes_per_sec: 1024, + }) + .await; + agg.handle_metric_event(MetricEvent::StreamRtt { + class: StreamClass::Control, + rtt: Duration::from_millis(15), + }) + .await; + + let bw = agg.stream_bandwidth.read().await; + assert_eq!(bw.get(&StreamClass::File).map(VecDeque::len), Some(1)); + + let rtt = agg.stream_rtt.read().await; + assert_eq!(rtt.get(&StreamClass::Control).map(VecDeque::len), Some(1)); + } + + #[tokio::test] + async fn window_bounded() { + let agg = MetricsAggregator::new(); + for i in 0..WINDOW_SIZE + 50 { + agg.handle_metric_event(MetricEvent::LookupCompleted { + duration: Duration::from_micros(i as u64), + hops: 1, + }) + .await; + } + assert_eq!(agg.lookup_latencies.read().await.len(), WINDOW_SIZE); + assert_eq!(agg.lookup_hops.read().await.len(), WINDOW_SIZE); + } +} diff --git a/src/metrics/mod.rs b/src/metrics/mod.rs new file mode 100644 index 00000000..9cfc3f98 --- /dev/null +++ b/src/metrics/mod.rs @@ -0,0 +1,17 @@ +//! Metrics aggregation and Prometheus export for saorsa-node. +//! +//! Two data paths feed the `/metrics` endpoint: +//! - **Event-driven** ([`MetricsAggregator`]): processes `MetricEvent`s and `P2PEvent`s +//! into counters and sliding windows, always up-to-date. +//! - **Pull-based** ([`SnapshotCollector`]): reads state snapshots from saorsa-core +//! accessor methods on each scrape. +//! +//! [`PrometheusFormatter`] merges both into Prometheus text exposition format. + +mod aggregator; +mod prometheus; +mod snapshot; + +pub use aggregator::MetricsAggregator; +pub use prometheus::PrometheusFormatter; +pub use snapshot::{MetricsSnapshot, SnapshotCollector}; diff --git a/src/metrics/prometheus.rs b/src/metrics/prometheus.rs new file mode 100644 index 00000000..a17a74d5 --- /dev/null +++ b/src/metrics/prometheus.rs @@ -0,0 +1,1127 @@ +//! Prometheus text exposition formatter. +//! +//! Merges event-driven data from [`MetricsAggregator`] with pull-based +//! snapshots from [`MetricsSnapshot`] into a single Prometheus-compatible +//! text block. +//! +//! Follows the Prometheus text exposition spec: +//! - HELP/TYPE lines are emitted only when samples exist +//! - All samples for a metric family are contiguous +//! - Duration metrics use sub-millisecond precision (f64 ms) + +use super::aggregator::{percentile_u64, percentile_u8, MetricsAggregator}; +use super::snapshot::MetricsSnapshot; +use saorsa_core::dht::metrics::{ + DhtHealthMetrics, PlacementMetrics, SecurityMetrics, TrustMetrics, +}; +use saorsa_core::identity::PeerId; +use saorsa_core::{StrategyStats, StreamClass, TransportStats}; +use std::collections::{HashMap, VecDeque}; +use std::fmt::Write; +use std::sync::atomic::Ordering; + +/// Formats aggregated + snapshot metrics into Prometheus text exposition format. +pub struct PrometheusFormatter; + +impl PrometheusFormatter { + /// Produce the full Prometheus text output. + /// + /// # Errors + /// + /// Returns `Err` only on `fmt::Write` failure (should not happen with `String`). + pub async fn format( + aggregator: &MetricsAggregator, + snapshot: &MetricsSnapshot, + ) -> std::result::Result { + let mut out = String::with_capacity(8192); + + Self::format_connection_metrics(&mut out, aggregator)?; + Self::format_lookup_metrics(&mut out, aggregator).await?; + Self::format_dht_op_metrics(&mut out, aggregator)?; + Self::format_auth_metrics(&mut out, aggregator)?; + Self::format_stream_metrics(&mut out, aggregator).await?; + Self::format_storage_metrics(&mut out, aggregator).await?; + Self::format_routing_table_metrics(&mut out, &snapshot.dht_health)?; + Self::format_replication_metrics(&mut out, &snapshot.dht_health)?; + Self::format_security_metrics(&mut out, &snapshot.security)?; + Self::format_trust_metrics(&mut out, &snapshot.trust, &snapshot.trust_scores)?; + Self::format_placement_metrics(&mut out, &snapshot.placement)?; + Self::format_transport_metrics(&mut out, &snapshot.transport)?; + Self::format_strategy_metrics(&mut out, &snapshot.strategy_stats)?; + + Ok(out) + } + + // ---- Event-driven metrics ---- + + fn format_connection_metrics(out: &mut String, agg: &MetricsAggregator) -> std::fmt::Result { + let peers = agg.connected_peers(); + writeln!( + out, + "# HELP p2p_connected_peers Number of currently connected peers" + )?; + writeln!(out, "# TYPE p2p_connected_peers gauge")?; + writeln!(out, "p2p_connected_peers {peers}")?; + Ok(()) + } + + async fn format_lookup_metrics(out: &mut String, agg: &MetricsAggregator) -> std::fmt::Result { + let total = agg.lookup_count(); + let timeouts = agg.lookup_timeouts(); + + writeln!(out, "# HELP p2p_lookup_total Total lookup operations")?; + writeln!(out, "# TYPE p2p_lookup_total counter")?; + writeln!(out, "p2p_lookup_total {total}")?; + + // Latency percentiles + { + let window = agg.lookup_latencies.read().await; + let mut sorted: Vec = window.iter().copied().collect(); + sorted.sort_unstable(); + let p50 = percentile_u64(&sorted, 50.0) as f64 / 1000.0; + let p95 = percentile_u64(&sorted, 95.0) as f64 / 1000.0; + let p99 = percentile_u64(&sorted, 99.0) as f64 / 1000.0; + + writeln!( + out, + "# HELP p2p_lookup_latency_p50_ms Lookup latency p50 in milliseconds" + )?; + writeln!(out, "# TYPE p2p_lookup_latency_p50_ms gauge")?; + writeln!(out, "p2p_lookup_latency_p50_ms {p50:.3}")?; + + writeln!( + out, + "# HELP p2p_lookup_latency_p95_ms Lookup latency p95 in milliseconds" + )?; + writeln!(out, "# TYPE p2p_lookup_latency_p95_ms gauge")?; + writeln!(out, "p2p_lookup_latency_p95_ms {p95:.3}")?; + + writeln!( + out, + "# HELP p2p_lookup_latency_p99_ms Lookup latency p99 in milliseconds" + )?; + writeln!(out, "# TYPE p2p_lookup_latency_p99_ms gauge")?; + writeln!(out, "p2p_lookup_latency_p99_ms {p99:.3}")?; + } + + // Hop count percentiles + { + let window = agg.lookup_hops.read().await; + let mut sorted: Vec = window.iter().copied().collect(); + sorted.sort_unstable(); + let p50 = percentile_u8(&sorted, 50.0); + let p95 = percentile_u8(&sorted, 95.0); + + writeln!(out, "# HELP p2p_lookup_hop_count_p50 Lookup hop count p50")?; + writeln!(out, "# TYPE p2p_lookup_hop_count_p50 gauge")?; + writeln!(out, "p2p_lookup_hop_count_p50 {p50}")?; + + writeln!(out, "# HELP p2p_lookup_hop_count_p95 Lookup hop count p95")?; + writeln!(out, "# TYPE p2p_lookup_hop_count_p95 gauge")?; + writeln!(out, "p2p_lookup_hop_count_p95 {p95}")?; + } + + writeln!(out, "# HELP p2p_lookup_timeout_total Total lookup timeouts")?; + writeln!(out, "# TYPE p2p_lookup_timeout_total counter")?; + writeln!(out, "p2p_lookup_timeout_total {timeouts}")?; + + let rate = agg.lookup_timeout_rate(); + writeln!(out, "# HELP p2p_lookup_timeout_rate Lookup timeout rate")?; + writeln!(out, "# TYPE p2p_lookup_timeout_rate gauge")?; + writeln!(out, "p2p_lookup_timeout_rate {rate:.6}")?; + + Ok(()) + } + + fn format_dht_op_metrics(out: &mut String, agg: &MetricsAggregator) -> std::fmt::Result { + let puts = agg.dht_puts_total.load(Ordering::Relaxed); + let puts_ok = agg.dht_puts_success.load(Ordering::Relaxed); + let gets = agg.dht_gets_total.load(Ordering::Relaxed); + let gets_ok = agg.dht_gets_success.load(Ordering::Relaxed); + + writeln!(out, "# HELP p2p_dht_puts_total Total DHT put operations")?; + writeln!(out, "# TYPE p2p_dht_puts_total counter")?; + writeln!(out, "p2p_dht_puts_total {puts}")?; + + writeln!( + out, + "# HELP p2p_dht_puts_success_total Successful DHT put operations" + )?; + writeln!(out, "# TYPE p2p_dht_puts_success_total counter")?; + writeln!(out, "p2p_dht_puts_success_total {puts_ok}")?; + + writeln!(out, "# HELP p2p_dht_gets_total Total DHT get operations")?; + writeln!(out, "# TYPE p2p_dht_gets_total counter")?; + writeln!(out, "p2p_dht_gets_total {gets}")?; + + writeln!( + out, + "# HELP p2p_dht_gets_success_total Successful DHT get operations" + )?; + writeln!(out, "# TYPE p2p_dht_gets_success_total counter")?; + writeln!(out, "p2p_dht_gets_success_total {gets_ok}")?; + + let rate = agg.dht_success_rate(); + writeln!( + out, + "# HELP p2p_dht_success_rate DHT operation success rate" + )?; + writeln!(out, "# TYPE p2p_dht_success_rate gauge")?; + writeln!(out, "p2p_dht_success_rate {rate:.6}")?; + + Ok(()) + } + + fn format_auth_metrics(out: &mut String, agg: &MetricsAggregator) -> std::fmt::Result { + let failures = agg.auth_failures_total.load(Ordering::Relaxed); + writeln!( + out, + "# HELP p2p_auth_failures_total Total authentication failures" + )?; + writeln!(out, "# TYPE p2p_auth_failures_total counter")?; + writeln!(out, "p2p_auth_failures_total {failures}")?; + Ok(()) + } + + async fn format_stream_metrics(out: &mut String, agg: &MetricsAggregator) -> std::fmt::Result { + // Bandwidth + { + let guard = agg.stream_bandwidth.read().await; + let map: &HashMap> = &guard; + if !map.is_empty() { + writeln!( + out, + "# HELP p2p_stream_bandwidth_p50_bytes_per_sec Stream bandwidth p50" + )?; + writeln!(out, "# TYPE p2p_stream_bandwidth_p50_bytes_per_sec gauge")?; + for (class, window) in map { + let label = stream_class_label(class); + let mut sorted: Vec = window.iter().copied().collect(); + sorted.sort_unstable(); + let p50 = percentile_u64(&sorted, 50.0); + writeln!( + out, + "p2p_stream_bandwidth_p50_bytes_per_sec{{class=\"{label}\"}} {p50}" + )?; + } + writeln!( + out, + "# HELP p2p_stream_bandwidth_p95_bytes_per_sec Stream bandwidth p95" + )?; + writeln!(out, "# TYPE p2p_stream_bandwidth_p95_bytes_per_sec gauge")?; + for (class, window) in map { + let label = stream_class_label(class); + let mut sorted: Vec = window.iter().copied().collect(); + sorted.sort_unstable(); + let p95 = percentile_u64(&sorted, 95.0); + writeln!( + out, + "p2p_stream_bandwidth_p95_bytes_per_sec{{class=\"{label}\"}} {p95}" + )?; + } + } + } + + // RTT + { + let guard = agg.stream_rtt.read().await; + let map: &HashMap> = &guard; + if !map.is_empty() { + writeln!( + out, + "# HELP p2p_stream_rtt_p50_ms Stream RTT p50 in milliseconds" + )?; + writeln!(out, "# TYPE p2p_stream_rtt_p50_ms gauge")?; + for (class, window) in map { + let label = stream_class_label(class); + let mut sorted: Vec = window.iter().copied().collect(); + sorted.sort_unstable(); + let p50 = percentile_u64(&sorted, 50.0) as f64 / 1000.0; + writeln!(out, "p2p_stream_rtt_p50_ms{{class=\"{label}\"}} {p50:.3}")?; + } + writeln!( + out, + "# HELP p2p_stream_rtt_p95_ms Stream RTT p95 in milliseconds" + )?; + writeln!(out, "# TYPE p2p_stream_rtt_p95_ms gauge")?; + for (class, window) in map { + let label = stream_class_label(class); + let mut sorted: Vec = window.iter().copied().collect(); + sorted.sort_unstable(); + let p95 = percentile_u64(&sorted, 95.0) as f64 / 1000.0; + writeln!(out, "p2p_stream_rtt_p95_ms{{class=\"{label}\"}} {p95:.3}")?; + } + } + } + + Ok(()) + } + + async fn format_storage_metrics(out: &mut String, agg: &MetricsAggregator) -> std::fmt::Result { + for (op, counter) in [ + ("read", &agg.storage_reads), + ("write", &agg.storage_writes), + ("delete", &agg.storage_deletes), + ] { + let total = counter.total.load(Ordering::Relaxed); + let errors = counter.errors.load(Ordering::Relaxed); + + writeln!( + out, + "# HELP p2p_storage_{op}_total Total storage {op} operations" + )?; + writeln!(out, "# TYPE p2p_storage_{op}_total counter")?; + writeln!(out, "p2p_storage_{op}_total {total}")?; + + writeln!( + out, + "# HELP p2p_storage_{op}_errors_total Failed storage {op} operations" + )?; + writeln!(out, "# TYPE p2p_storage_{op}_errors_total counter")?; + writeln!(out, "p2p_storage_{op}_errors_total {errors}")?; + + let window = counter.durations.read().await; + if window.is_empty() { + writeln!( + out, + "# HELP p2p_storage_{op}_avg_duration_ms Average {op} duration in ms" + )?; + writeln!(out, "# TYPE p2p_storage_{op}_avg_duration_ms gauge")?; + writeln!(out, "p2p_storage_{op}_avg_duration_ms 0")?; + writeln!( + out, + "# HELP p2p_storage_{op}_min_duration_ms Minimum {op} duration in ms" + )?; + writeln!(out, "# TYPE p2p_storage_{op}_min_duration_ms gauge")?; + writeln!(out, "p2p_storage_{op}_min_duration_ms 0")?; + writeln!( + out, + "# HELP p2p_storage_{op}_max_duration_ms Maximum {op} duration in ms" + )?; + writeln!(out, "# TYPE p2p_storage_{op}_max_duration_ms gauge")?; + writeln!(out, "p2p_storage_{op}_max_duration_ms 0")?; + } else { + let sum: u64 = window.iter().sum(); + let avg_ms = (sum as f64 / window.len() as f64) / 1000.0; + let min_ms = window.iter().copied().min().unwrap_or(0) as f64 / 1000.0; + let max_ms = window.iter().copied().max().unwrap_or(0) as f64 / 1000.0; + + writeln!( + out, + "# HELP p2p_storage_{op}_avg_duration_ms Average {op} duration in ms" + )?; + writeln!(out, "# TYPE p2p_storage_{op}_avg_duration_ms gauge")?; + writeln!(out, "p2p_storage_{op}_avg_duration_ms {avg_ms:.3}")?; + writeln!( + out, + "# HELP p2p_storage_{op}_min_duration_ms Minimum {op} duration in ms" + )?; + writeln!(out, "# TYPE p2p_storage_{op}_min_duration_ms gauge")?; + writeln!(out, "p2p_storage_{op}_min_duration_ms {min_ms:.3}")?; + writeln!( + out, + "# HELP p2p_storage_{op}_max_duration_ms Maximum {op} duration in ms" + )?; + writeln!(out, "# TYPE p2p_storage_{op}_max_duration_ms gauge")?; + writeln!(out, "p2p_storage_{op}_max_duration_ms {max_ms:.3}")?; + } + } + Ok(()) + } + + // ---- Snapshot-based metrics ---- + + fn format_routing_table_metrics(out: &mut String, m: &DhtHealthMetrics) -> std::fmt::Result { + writeln!( + out, + "# HELP p2p_routing_table_size Number of peers in routing table" + )?; + writeln!(out, "# TYPE p2p_routing_table_size gauge")?; + writeln!(out, "p2p_routing_table_size {}", m.routing_table_size)?; + + writeln!( + out, + "# HELP p2p_routing_buckets_filled Number of non-empty k-buckets" + )?; + writeln!(out, "# TYPE p2p_routing_buckets_filled gauge")?; + writeln!(out, "p2p_routing_buckets_filled {}", m.buckets_filled)?; + + writeln!( + out, + "# HELP p2p_routing_bucket_fullness Average bucket fullness ratio" + )?; + writeln!(out, "# TYPE p2p_routing_bucket_fullness gauge")?; + writeln!(out, "p2p_routing_bucket_fullness {:.6}", m.bucket_fullness)?; + + writeln!( + out, + "# HELP p2p_dht_operations_total Total DHT operations from routing layer" + )?; + writeln!(out, "# TYPE p2p_dht_operations_total counter")?; + writeln!(out, "p2p_dht_operations_total {}", m.operations_total)?; + + writeln!( + out, + "# HELP p2p_dht_operations_success_total Successful DHT operations" + )?; + writeln!(out, "# TYPE p2p_dht_operations_success_total counter")?; + writeln!( + out, + "p2p_dht_operations_success_total {}", + m.operations_success_total + )?; + + writeln!( + out, + "# HELP p2p_dht_operations_failed_total Failed DHT operations" + )?; + writeln!(out, "# TYPE p2p_dht_operations_failed_total counter")?; + writeln!( + out, + "p2p_dht_operations_failed_total {}", + m.operations_failed_total + )?; + + writeln!( + out, + "# HELP p2p_dht_liveness_checks_total Total liveness checks" + )?; + writeln!(out, "# TYPE p2p_dht_liveness_checks_total counter")?; + writeln!( + out, + "p2p_dht_liveness_checks_total {}", + m.liveness_checks_total + )?; + + writeln!( + out, + "# HELP p2p_dht_liveness_failures_total Failed liveness checks" + )?; + writeln!(out, "# TYPE p2p_dht_liveness_failures_total counter")?; + writeln!( + out, + "p2p_dht_liveness_failures_total {}", + m.liveness_failures_total + )?; + + Ok(()) + } + + fn format_replication_metrics(out: &mut String, m: &DhtHealthMetrics) -> std::fmt::Result { + writeln!( + out, + "# HELP p2p_replication_factor Current replication factor" + )?; + writeln!(out, "# TYPE p2p_replication_factor gauge")?; + writeln!(out, "p2p_replication_factor {}", m.replication_factor)?; + + writeln!( + out, + "# HELP p2p_replication_health Replication health score" + )?; + writeln!(out, "# TYPE p2p_replication_health gauge")?; + writeln!(out, "p2p_replication_health {:.6}", m.replication_health)?; + + writeln!( + out, + "# HELP p2p_under_replicated_keys Number of under-replicated keys" + )?; + writeln!(out, "# TYPE p2p_under_replicated_keys gauge")?; + writeln!(out, "p2p_under_replicated_keys {}", m.under_replicated_keys)?; + + Ok(()) + } + + fn format_security_metrics(out: &mut String, m: &SecurityMetrics) -> std::fmt::Result { + writeln!( + out, + "# HELP p2p_security_eclipse_score Eclipse attack risk score" + )?; + writeln!(out, "# TYPE p2p_security_eclipse_score gauge")?; + writeln!(out, "p2p_security_eclipse_score {:.6}", m.eclipse_score)?; + + writeln!( + out, + "# HELP p2p_security_sybil_score Sybil attack risk score" + )?; + writeln!(out, "# TYPE p2p_security_sybil_score gauge")?; + writeln!(out, "p2p_security_sybil_score {:.6}", m.sybil_score)?; + + writeln!( + out, + "# HELP p2p_security_collusion_score Collusion risk score" + )?; + writeln!(out, "# TYPE p2p_security_collusion_score gauge")?; + writeln!(out, "p2p_security_collusion_score {:.6}", m.collusion_score)?; + + writeln!( + out, + "# HELP p2p_security_eclipse_attempts_total Total eclipse attack attempts" + )?; + writeln!(out, "# TYPE p2p_security_eclipse_attempts_total counter")?; + writeln!( + out, + "p2p_security_eclipse_attempts_total {}", + m.eclipse_attempts_total + )?; + + writeln!( + out, + "# HELP p2p_security_sybil_nodes_detected_total Total Sybil nodes detected" + )?; + writeln!( + out, + "# TYPE p2p_security_sybil_nodes_detected_total counter" + )?; + writeln!( + out, + "p2p_security_sybil_nodes_detected_total {}", + m.sybil_nodes_detected_total + )?; + + writeln!( + out, + "# HELP p2p_security_collusion_groups_detected_total Total collusion groups detected" + )?; + writeln!( + out, + "# TYPE p2p_security_collusion_groups_detected_total counter" + )?; + writeln!( + out, + "p2p_security_collusion_groups_detected_total {}", + m.collusion_groups_detected_total + )?; + + writeln!( + out, + "# HELP p2p_security_bft_mode_active BFT consensus mode active" + )?; + writeln!(out, "# TYPE p2p_security_bft_mode_active gauge")?; + writeln!( + out, + "p2p_security_bft_mode_active {}", + u8::from(m.bft_mode_active) + )?; + + writeln!( + out, + "# HELP p2p_security_churn_rate_5m Node churn rate over 5 minutes" + )?; + writeln!(out, "# TYPE p2p_security_churn_rate_5m gauge")?; + writeln!(out, "p2p_security_churn_rate_5m {:.6}", m.churn_rate_5m)?; + + writeln!( + out, + "# HELP p2p_security_ip_diversity_rejections_total IP diversity rejections" + )?; + writeln!( + out, + "# TYPE p2p_security_ip_diversity_rejections_total counter" + )?; + writeln!( + out, + "p2p_security_ip_diversity_rejections_total {}", + m.ip_diversity_rejections_total + )?; + + writeln!(out, "# HELP p2p_security_geographic_diversity_rejections_total Geographic diversity rejections")?; + writeln!( + out, + "# TYPE p2p_security_geographic_diversity_rejections_total counter" + )?; + writeln!( + out, + "p2p_security_geographic_diversity_rejections_total {}", + m.geographic_diversity_rejections_total + )?; + + writeln!( + out, + "# HELP p2p_security_nodes_evicted_total Total nodes evicted" + )?; + writeln!(out, "# TYPE p2p_security_nodes_evicted_total counter")?; + writeln!( + out, + "p2p_security_nodes_evicted_total {}", + m.nodes_evicted_total + )?; + + writeln!( + out, + "# HELP p2p_security_witness_validations_total Total witness validations" + )?; + writeln!(out, "# TYPE p2p_security_witness_validations_total counter")?; + writeln!( + out, + "p2p_security_witness_validations_total {}", + m.witness_validations_total + )?; + + writeln!( + out, + "# HELP p2p_security_witness_failures_total Total witness validation failures" + )?; + writeln!(out, "# TYPE p2p_security_witness_failures_total counter")?; + writeln!( + out, + "p2p_security_witness_failures_total {}", + m.witness_failures_total + )?; + + writeln!( + out, + "# HELP p2p_security_close_group_validations_total Total close group validations" + )?; + writeln!( + out, + "# TYPE p2p_security_close_group_validations_total counter" + )?; + writeln!( + out, + "p2p_security_close_group_validations_total {}", + m.close_group_validations_total + )?; + + writeln!(out, "# HELP p2p_security_close_group_consensus_failures_total Close group consensus failures")?; + writeln!( + out, + "# TYPE p2p_security_close_group_consensus_failures_total counter" + )?; + writeln!( + out, + "p2p_security_close_group_consensus_failures_total {}", + m.close_group_consensus_failures_total + )?; + + writeln!( + out, + "# HELP p2p_security_low_trust_nodes_current Current low trust nodes" + )?; + writeln!(out, "# TYPE p2p_security_low_trust_nodes_current gauge")?; + writeln!( + out, + "p2p_security_low_trust_nodes_current {}", + m.low_trust_nodes_current + )?; + + Ok(()) + } + + fn format_trust_metrics( + out: &mut String, + m: &TrustMetrics, + trust_scores: &Option>, + ) -> std::fmt::Result { + writeln!( + out, + "# HELP p2p_trust_eigentrust_avg Average EigenTrust score" + )?; + writeln!(out, "# TYPE p2p_trust_eigentrust_avg gauge")?; + writeln!(out, "p2p_trust_eigentrust_avg {:.6}", m.eigentrust_avg)?; + + writeln!( + out, + "# HELP p2p_trust_eigentrust_min Minimum EigenTrust score" + )?; + writeln!(out, "# TYPE p2p_trust_eigentrust_min gauge")?; + writeln!(out, "p2p_trust_eigentrust_min {:.6}", m.eigentrust_min)?; + + writeln!( + out, + "# HELP p2p_trust_eigentrust_max Maximum EigenTrust score" + )?; + writeln!(out, "# TYPE p2p_trust_eigentrust_max gauge")?; + writeln!(out, "p2p_trust_eigentrust_max {:.6}", m.eigentrust_max)?; + + writeln!( + out, + "# HELP p2p_trust_eigentrust_epochs_total Total EigenTrust epochs" + )?; + writeln!(out, "# TYPE p2p_trust_eigentrust_epochs_total counter")?; + writeln!( + out, + "p2p_trust_eigentrust_epochs_total {}", + m.eigentrust_epochs_total + )?; + + writeln!( + out, + "# HELP p2p_trust_low_trust_nodes Nodes below trust threshold" + )?; + writeln!(out, "# TYPE p2p_trust_low_trust_nodes gauge")?; + writeln!(out, "p2p_trust_low_trust_nodes {}", m.low_trust_nodes)?; + + writeln!( + out, + "# HELP p2p_trust_interactions_total Total peer interactions" + )?; + writeln!(out, "# TYPE p2p_trust_interactions_total counter")?; + writeln!( + out, + "p2p_trust_interactions_total {}", + m.interactions_recorded_total + )?; + + writeln!( + out, + "# HELP p2p_trust_positive_interactions_total Total positive interactions" + )?; + writeln!(out, "# TYPE p2p_trust_positive_interactions_total counter")?; + writeln!( + out, + "p2p_trust_positive_interactions_total {}", + m.positive_interactions_total + )?; + + writeln!( + out, + "# HELP p2p_trust_negative_interactions_total Total negative interactions" + )?; + writeln!(out, "# TYPE p2p_trust_negative_interactions_total counter")?; + writeln!( + out, + "p2p_trust_negative_interactions_total {}", + m.negative_interactions_total + )?; + + writeln!( + out, + "# HELP p2p_trust_witness_receipts_issued_total Witness receipts issued" + )?; + writeln!( + out, + "# TYPE p2p_trust_witness_receipts_issued_total counter" + )?; + writeln!( + out, + "p2p_trust_witness_receipts_issued_total {}", + m.witness_receipts_issued_total + )?; + + writeln!( + out, + "# HELP p2p_trust_witness_receipts_verified_total Witness receipts verified" + )?; + writeln!( + out, + "# TYPE p2p_trust_witness_receipts_verified_total counter" + )?; + writeln!( + out, + "p2p_trust_witness_receipts_verified_total {}", + m.witness_receipts_verified_total + )?; + + writeln!( + out, + "# HELP p2p_trust_witness_receipts_rejected_total Witness receipts rejected" + )?; + writeln!( + out, + "# TYPE p2p_trust_witness_receipts_rejected_total counter" + )?; + writeln!( + out, + "p2p_trust_witness_receipts_rejected_total {}", + m.witness_receipts_rejected_total + )?; + + // Trust score distribution from cached global trust + if let Some(scores) = trust_scores { + if !scores.is_empty() { + let mut buckets = [0u64; 10]; + for score in scores.values() { + let idx = (score * 10.0).floor().min(9.0).max(0.0) as usize; + buckets[idx] += 1; + } + writeln!( + out, + "# HELP p2p_trust_score_distribution Trust score distribution" + )?; + writeln!(out, "# TYPE p2p_trust_score_distribution gauge")?; + for (i, count) in buckets.iter().enumerate() { + let lo = i as f64 / 10.0; + let hi = (i + 1) as f64 / 10.0; + writeln!( + out, + "p2p_trust_score_distribution{{bucket=\"{lo:.1}-{hi:.1}\"}} {count}" + )?; + } + } + } + + // Trust distribution from TrustMetrics (bucket-based from collector) + if !m.trust_distribution.is_empty() { + // Already emitted distribution above from cached scores if available; + // only emit the collector's distribution if we didn't have live scores. + if trust_scores.is_none() { + writeln!( + out, + "# HELP p2p_trust_score_distribution Trust score distribution" + )?; + writeln!(out, "# TYPE p2p_trust_score_distribution gauge")?; + for (bucket, count) in &m.trust_distribution { + writeln!( + out, + "p2p_trust_score_distribution{{bucket=\"{bucket}\"}} {count}" + )?; + } + } + } + + Ok(()) + } + + fn format_placement_metrics(out: &mut String, m: &PlacementMetrics) -> std::fmt::Result { + writeln!( + out, + "# HELP p2p_placement_total_stored_bytes Total bytes stored" + )?; + writeln!(out, "# TYPE p2p_placement_total_stored_bytes gauge")?; + writeln!( + out, + "p2p_placement_total_stored_bytes {}", + m.total_stored_bytes + )?; + + writeln!( + out, + "# HELP p2p_placement_total_records Total records stored" + )?; + writeln!(out, "# TYPE p2p_placement_total_records gauge")?; + writeln!(out, "p2p_placement_total_records {}", m.total_records)?; + + writeln!( + out, + "# HELP p2p_placement_storage_nodes Number of storage nodes" + )?; + writeln!(out, "# TYPE p2p_placement_storage_nodes gauge")?; + writeln!(out, "p2p_placement_storage_nodes {}", m.storage_nodes)?; + + writeln!( + out, + "# HELP p2p_placement_geographic_diversity Geographic diversity score" + )?; + writeln!(out, "# TYPE p2p_placement_geographic_diversity gauge")?; + writeln!( + out, + "p2p_placement_geographic_diversity {:.6}", + m.geographic_diversity + )?; + + writeln!( + out, + "# HELP p2p_placement_regions_covered Number of regions covered" + )?; + writeln!(out, "# TYPE p2p_placement_regions_covered gauge")?; + writeln!(out, "p2p_placement_regions_covered {}", m.regions_covered)?; + + writeln!( + out, + "# HELP p2p_placement_total_capacity_bytes Total storage capacity" + )?; + writeln!(out, "# TYPE p2p_placement_total_capacity_bytes gauge")?; + writeln!( + out, + "p2p_placement_total_capacity_bytes {}", + m.total_capacity_bytes + )?; + + writeln!( + out, + "# HELP p2p_placement_used_capacity_ratio Used capacity ratio" + )?; + writeln!(out, "# TYPE p2p_placement_used_capacity_ratio gauge")?; + writeln!( + out, + "p2p_placement_used_capacity_ratio {:.6}", + m.used_capacity_ratio + )?; + + writeln!( + out, + "# HELP p2p_placement_load_balance_score Load balance score" + )?; + writeln!(out, "# TYPE p2p_placement_load_balance_score gauge")?; + writeln!( + out, + "p2p_placement_load_balance_score {:.6}", + m.load_balance_score + )?; + + writeln!( + out, + "# HELP p2p_placement_overloaded_nodes Number of overloaded nodes" + )?; + writeln!(out, "# TYPE p2p_placement_overloaded_nodes gauge")?; + writeln!(out, "p2p_placement_overloaded_nodes {}", m.overloaded_nodes)?; + + writeln!( + out, + "# HELP p2p_placement_rebalance_operations_total Total rebalance operations" + )?; + writeln!( + out, + "# TYPE p2p_placement_rebalance_operations_total counter" + )?; + writeln!( + out, + "p2p_placement_rebalance_operations_total {}", + m.rebalance_operations_total + )?; + + writeln!( + out, + "# HELP p2p_placement_audits_total Total storage audits" + )?; + writeln!(out, "# TYPE p2p_placement_audits_total counter")?; + writeln!(out, "p2p_placement_audits_total {}", m.audits_total)?; + + writeln!( + out, + "# HELP p2p_placement_audit_failures_total Total audit failures" + )?; + writeln!(out, "# TYPE p2p_placement_audit_failures_total counter")?; + writeln!( + out, + "p2p_placement_audit_failures_total {}", + m.audit_failures_total + )?; + + Ok(()) + } + + fn format_transport_metrics(out: &mut String, m: &TransportStats) -> std::fmt::Result { + writeln!( + out, + "# HELP p2p_transport_active_connections Active transport connections" + )?; + writeln!(out, "# TYPE p2p_transport_active_connections gauge")?; + writeln!( + out, + "p2p_transport_active_connections {}", + m.active_connections + )?; + + writeln!( + out, + "# HELP p2p_transport_ipv4_connections IPv4 connections" + )?; + writeln!(out, "# TYPE p2p_transport_ipv4_connections gauge")?; + writeln!(out, "p2p_transport_ipv4_connections {}", m.ipv4_connections)?; + + writeln!( + out, + "# HELP p2p_transport_ipv6_connections IPv6 connections" + )?; + writeln!(out, "# TYPE p2p_transport_ipv6_connections gauge")?; + writeln!(out, "p2p_transport_ipv6_connections {}", m.ipv6_connections)?; + + Ok(()) + } + + fn format_strategy_metrics(out: &mut String, stats: &[StrategyStats]) -> std::fmt::Result { + if stats.is_empty() { + return Ok(()); + } + + writeln!( + out, + "# HELP p2p_strategy_selections_total Strategy selection count" + )?; + writeln!(out, "# TYPE p2p_strategy_selections_total counter")?; + for s in stats { + writeln!( + out, + "p2p_strategy_selections_total{{strategy=\"{}\"}} {}", + s.name, s.selections + )?; + } + + writeln!( + out, + "# HELP p2p_strategy_successes_total Strategy success count" + )?; + writeln!(out, "# TYPE p2p_strategy_successes_total counter")?; + for s in stats { + writeln!( + out, + "p2p_strategy_successes_total{{strategy=\"{}\"}} {}", + s.name, s.successes + )?; + } + + writeln!( + out, + "# HELP p2p_strategy_estimated_success_rate Estimated success rate" + )?; + writeln!(out, "# TYPE p2p_strategy_estimated_success_rate gauge")?; + for s in stats { + writeln!( + out, + "p2p_strategy_estimated_success_rate{{strategy=\"{}\"}} {:.6}", + s.name, s.estimated_success_rate + )?; + } + + writeln!( + out, + "# HELP p2p_strategy_alpha Thompson sampling alpha parameter" + )?; + writeln!(out, "# TYPE p2p_strategy_alpha gauge")?; + for s in stats { + writeln!( + out, + "p2p_strategy_alpha{{strategy=\"{}\"}} {:.6}", + s.name, s.alpha + )?; + } + + writeln!( + out, + "# HELP p2p_strategy_beta Thompson sampling beta parameter" + )?; + writeln!(out, "# TYPE p2p_strategy_beta gauge")?; + for s in stats { + writeln!( + out, + "p2p_strategy_beta{{strategy=\"{}\"}} {:.6}", + s.name, s.beta + )?; + } + + Ok(()) + } +} + +/// Map [`StreamClass`] to a Prometheus label value. +fn stream_class_label(class: &StreamClass) -> &'static str { + match class { + StreamClass::Control => "control", + StreamClass::Mls => "mls", + StreamClass::File => "file", + StreamClass::Media => "media", + } +} + +#[cfg(test)] +#[allow(clippy::unwrap_used, clippy::expect_used)] +mod tests { + use super::*; + use crate::metrics::aggregator::MetricsAggregator; + use saorsa_core::dht::metrics::{ + DhtHealthMetrics, PlacementMetrics, SecurityMetrics, TrustMetrics, + }; + use saorsa_core::{MetricEvent, TransportStats}; + use std::time::Duration; + + fn default_snapshot() -> MetricsSnapshot { + MetricsSnapshot { + dht_health: DhtHealthMetrics::default(), + security: SecurityMetrics::default(), + trust: TrustMetrics::default(), + placement: PlacementMetrics::default(), + transport: TransportStats::default(), + strategy_stats: vec![], + trust_scores: None, + } + } + + #[tokio::test] + async fn format_contains_expected_metrics() { + let agg = MetricsAggregator::new(); + agg.handle_metric_event(MetricEvent::LookupCompleted { + duration: Duration::from_millis(42), + hops: 3, + }) + .await; + agg.record_peer_connected(); + + let snapshot = default_snapshot(); + let output = PrometheusFormatter::format(&agg, &snapshot).await.unwrap(); + + assert!(output.contains("p2p_connected_peers 1")); + assert!(output.contains("p2p_lookup_total 1")); + assert!(output.contains("p2p_lookup_latency_p50_ms")); + assert!(output.contains("p2p_routing_table_size")); + assert!(output.contains("p2p_security_eclipse_score")); + assert!(output.contains("p2p_trust_eigentrust_avg")); + assert!(output.contains("p2p_placement_total_records")); + assert!(output.contains("p2p_transport_active_connections")); + } + + #[tokio::test] + async fn format_no_orphaned_headers() { + let agg = MetricsAggregator::new(); + let snapshot = default_snapshot(); + let output = PrometheusFormatter::format(&agg, &snapshot).await.unwrap(); + + // Every HELP line should have a corresponding TYPE line + for line in output.lines() { + if line.starts_with("# HELP ") { + let metric_name = line + .strip_prefix("# HELP ") + .and_then(|s| s.split_whitespace().next()) + .unwrap(); + let type_line = format!("# TYPE {metric_name}"); + assert!( + output.contains(&type_line), + "HELP without TYPE for {metric_name}" + ); + } + } + } + + #[tokio::test] + async fn strategy_metrics_grouped() { + let agg = MetricsAggregator::new(); + let mut snapshot = default_snapshot(); + snapshot.strategy_stats = vec![ + StrategyStats { + name: "kademlia".to_string(), + selections: 100, + successes: 90, + alpha: 91.0, + beta: 11.0, + estimated_success_rate: 0.9, + }, + StrategyStats { + name: "hyperbolic".to_string(), + selections: 50, + successes: 45, + alpha: 46.0, + beta: 6.0, + estimated_success_rate: 0.9, + }, + ]; + + let output = PrometheusFormatter::format(&agg, &snapshot).await.unwrap(); + + // Verify contiguous grouping: all selections_total lines together + assert!(output.contains("p2p_strategy_selections_total{strategy=\"kademlia\"} 100")); + assert!(output.contains("p2p_strategy_selections_total{strategy=\"hyperbolic\"} 50")); + } + + #[tokio::test] + async fn empty_strategy_no_output() { + let agg = MetricsAggregator::new(); + let snapshot = default_snapshot(); + let output = PrometheusFormatter::format(&agg, &snapshot).await.unwrap(); + assert!(!output.contains("p2p_strategy_")); + } + + #[tokio::test] + async fn stream_metrics_with_data() { + let agg = MetricsAggregator::new(); + agg.handle_metric_event(MetricEvent::StreamBandwidth { + class: StreamClass::File, + bytes_per_sec: 1_000_000, + }) + .await; + + let snapshot = default_snapshot(); + let output = PrometheusFormatter::format(&agg, &snapshot).await.unwrap(); + assert!(output.contains("p2p_stream_bandwidth_p50_bytes_per_sec{class=\"file\"}")); + } +} diff --git a/src/metrics/snapshot.rs b/src/metrics/snapshot.rs new file mode 100644 index 00000000..46826d07 --- /dev/null +++ b/src/metrics/snapshot.rs @@ -0,0 +1,89 @@ +//! Pull-based snapshot collector. +//! +//! On each `/metrics` scrape, [`SnapshotCollector::collect`] reads state +//! snapshots from saorsa-core's accessor methods. This gives a consistent +//! point-in-time view without requiring continuous event processing. + +use saorsa_core::dht::metrics::{ + DhtHealthMetrics, DhtMetricsCollector, PlacementMetrics, PlacementMetricsCollector, + SecurityMetrics, SecurityMetricsCollector, TrustMetrics, TrustMetricsCollector, +}; +use saorsa_core::identity::PeerId; +use saorsa_core::{EigenTrustEngine, P2PNode, StrategyStats, TransportStats}; +use std::collections::HashMap; +use std::sync::Arc; + +/// Point-in-time snapshot of all pull-based metrics from saorsa-core. +pub struct MetricsSnapshot { + /// DHT routing table, replication, and operation metrics. + pub dht_health: DhtHealthMetrics, + /// Security attack scores and event counters. + pub security: SecurityMetrics, + /// `EigenTrust` scores, witness validation, and interaction tracking. + pub trust: TrustMetrics, + /// Storage distribution, capacity, and audit metrics. + pub placement: PlacementMetrics, + /// Transport layer connection stats. + pub transport: TransportStats, + /// Per-strategy selection and success stats (from multi-armed bandit). + pub strategy_stats: Vec, + /// Cached global trust scores keyed by peer ID. + pub trust_scores: Option>, +} + +/// Holds `Arc` references to saorsa-core components and pulls snapshots on demand. +pub struct SnapshotCollector { + dht_health: Arc, + security: Arc, + trust: Arc, + placement: Arc, + p2p_node: Arc, + eigentrust: Option>, +} + +impl SnapshotCollector { + /// Create a new collector. + /// + /// The individual metrics collectors should be the *same* instances used + /// by saorsa-core internally so that the snapshots reflect live data. + /// When that isn't possible (e.g. the collector isn't exposed), fresh + /// instances are acceptable — they'll report defaults until populated. + #[must_use] + pub fn new( + dht_health: Arc, + security: Arc, + trust: Arc, + placement: Arc, + p2p_node: Arc, + eigentrust: Option>, + ) -> Self { + Self { + dht_health, + security, + trust, + placement, + p2p_node, + eigentrust, + } + } + + /// Pull a complete snapshot from all saorsa-core accessors. + /// + /// Called once per `/metrics` scrape. + pub async fn collect(&self) -> MetricsSnapshot { + MetricsSnapshot { + dht_health: self.dht_health.get_metrics().await, + security: self.security.get_metrics().await, + trust: self.trust.get_metrics().await, + placement: self.placement.get_metrics().await, + transport: self.p2p_node.transport_stats().await, + // MultiArmedBandit is not currently exposed from P2PNode, + // so strategy stats are empty until an accessor is added. + strategy_stats: vec![], + trust_scores: match &self.eigentrust { + Some(engine) => engine.cached_global_trust().await, + None => None, + }, + } + } +} diff --git a/src/node.rs b/src/node.rs index 890e789e..4370a975 100644 --- a/src/node.rs +++ b/src/node.rs @@ -7,15 +7,23 @@ use crate::config::{ }; use crate::error::{Error, Result}; use crate::event::{create_event_channel, NodeEvent, NodeEventsChannel, NodeEventsSender}; +use crate::metrics::{MetricsAggregator, PrometheusFormatter, SnapshotCollector}; use crate::payment::metrics::QuotingMetricsTracker; use crate::payment::wallet::parse_rewards_address; use crate::payment::{EvmVerifierConfig, PaymentVerifier, PaymentVerifierConfig, QuoteGenerator}; use crate::storage::{AntProtocol, LmdbStorage, LmdbStorageConfig}; use crate::upgrade::{AutoApplyUpgrader, UpgradeMonitor, UpgradeResult}; use ant_evm::RewardsAddress; +use axum::http::header; +use axum::response::IntoResponse; +use axum::routing::get; +use axum::Router; use evmlib::Network as EvmNetwork; +use saorsa_core::dht::metrics::{ + DhtMetricsCollector, PlacementMetricsCollector, TrustMetricsCollector, +}; use saorsa_core::health::{ - DhtHealthChecker, HealthManager, HealthServer, PeerHealthChecker, StorageHealthChecker, + DhtHealthChecker, HealthManager, PeerHealthChecker, PrometheusExporter, StorageHealthChecker, TransportHealthChecker, }; use saorsa_core::identity::NodeIdentity; @@ -27,7 +35,8 @@ use saorsa_core::{ use std::net::SocketAddr; use std::path::PathBuf; use std::sync::Arc; -use tokio::sync::Semaphore; +use tokio::net::TcpListener; +use tokio::sync::{broadcast, Semaphore}; use tokio::task::JoinHandle; use tokio_util::sync::CancellationToken; use tracing::{debug, error, info, warn}; @@ -164,6 +173,10 @@ impl NodeBuilder { None }; + // Build metrics aggregator and snapshot collector + let metrics_aggregator = Arc::new(MetricsAggregator::new()); + let snapshot_collector = Arc::new(Self::build_snapshot_collector(&p2p_node_arc)); + let node = RunningNode { config: self.config, p2p_node: p2p_node_arc, @@ -174,9 +187,12 @@ impl NodeBuilder { bootstrap_manager, ant_protocol, health_manager, + metrics_aggregator, + snapshot_collector, health_shutdown_tx: None, health_handle: None, protocol_task: None, + metric_event_handle: None, }; Ok(node) @@ -205,8 +221,13 @@ impl NodeBuilder { // Enable IPv6 if configured core_config.enable_ipv6 = matches!(config.ip_version, IpVersion::Ipv6 | IpVersion::Dual); - // Add bootstrap peers. - core_config.bootstrap_peers.clone_from(&config.bootstrap); + // Add bootstrap peers (convert SocketAddr → MultiAddr). + core_config.bootstrap_peers = config + .bootstrap + .iter() + .copied() + .map(saorsa_core::MultiAddr::from) + .collect(); // Forward max_message_size to the transport layer. core_config.max_message_size = Some(config.max_message_size); @@ -453,6 +474,31 @@ impl NodeBuilder { } } + /// Build the snapshot collector, wiring in live saorsa-core components. + fn build_snapshot_collector(p2p_node: &Arc) -> SnapshotCollector { + // DhtMetricsCollector, TrustMetricsCollector, PlacementMetricsCollector + // are standalone instances — they serve as the canonical source for + // snapshot metrics and will be populated as the DHT layer reports data. + let dht_health = Arc::new(DhtMetricsCollector::new()); + let trust = Arc::new(TrustMetricsCollector::new()); + let placement = Arc::new(PlacementMetricsCollector::new()); + + // SecurityMetricsCollector: standalone instance that will be populated + // as security events are observed by the DHT layer. + let security = Arc::new(saorsa_core::dht::metrics::SecurityMetricsCollector::new()); + + let eigentrust = p2p_node.trust_engine(); + + SnapshotCollector::new( + dht_health, + security, + trust, + placement, + Arc::clone(p2p_node), + eigentrust, + ) + } + /// Build the health manager and register component health checkers. async fn build_health_manager( p2p_node: &Arc, @@ -517,12 +563,18 @@ pub struct RunningNode { ant_protocol: Option>, /// Health manager for component health checks. health_manager: Arc, + /// Event-driven metrics aggregator (counters + sliding windows). + metrics_aggregator: Arc, + /// Pull-based snapshot collector for saorsa-core state. + snapshot_collector: Arc, /// Shutdown signal sender for the health/metrics HTTP server. health_shutdown_tx: Option>, /// Join handle for the health/metrics HTTP server task. health_handle: Option>, /// Protocol message routing background task. protocol_task: Option>, + /// `MetricEvent` subscription loop task. + metric_event_handle: Option>, } impl RunningNode { @@ -570,6 +622,9 @@ impl RunningNode { // Start protocol message routing (P2P → AntProtocol → P2P response) self.start_protocol_routing(); + // Start metric event subscription loop + self.start_metric_event_loop(); + // Start health/metrics HTTP server if metrics_port != 0 self.start_health_server(); @@ -661,6 +716,11 @@ impl RunningNode { handle.abort(); } + // Stop metric event subscription loop + if let Some(handle) = self.metric_event_handle.take() { + handle.abort(); + } + // Shutdown P2P node info!("Shutting down P2P node..."); if let Err(e) = self.p2p_node.shutdown().await { @@ -724,20 +784,52 @@ impl RunningNode { } /// Start the health/metrics HTTP server if configured. + /// + /// Replaces saorsa-core's `HealthServer` with our own Axum router that + /// serves both health endpoints and the full Prometheus metrics output. fn start_health_server(&mut self) { if self.config.metrics_port == 0 { return; } let metrics_addr = SocketAddr::new(self.config.metrics_host, self.config.metrics_port); - - let (health_server, shutdown_tx) = - HealthServer::new(Arc::clone(&self.health_manager), metrics_addr); + let (shutdown_tx, shutdown_rx) = tokio::sync::oneshot::channel::<()>(); self.health_shutdown_tx = Some(shutdown_tx); + let health_manager = Arc::clone(&self.health_manager); + let aggregator = Arc::clone(&self.metrics_aggregator); + let snapshot_collector = Arc::clone(&self.snapshot_collector); + + // Shared state for the Axum router. + let state = MetricsServerState { + health_manager, + aggregator, + snapshot_collector, + }; + let shared_state = Arc::new(state); + self.health_handle = Some(tokio::spawn(async move { - if let Err(e) = health_server.run().await { - error!("Health server failed: {e}"); + let app = Router::new() + .route("/health", get(health_handler)) + .route("/ready", get(ready_handler)) + .route("/metrics", get(metrics_handler)) + .route("/debug/vars", get(debug_handler)) + .with_state(shared_state); + + let listener = match TcpListener::bind(metrics_addr).await { + Ok(l) => l, + Err(e) => { + error!("Failed to bind metrics server on {metrics_addr}: {e}"); + return; + } + }; + + let server = axum::serve(listener, app).with_graceful_shutdown(async { + let _ = shutdown_rx.await; + }); + + if let Err(e) = server.await { + error!("Metrics server error: {e}"); } })); @@ -748,6 +840,7 @@ impl RunningNode { /// /// Subscribes to P2P events and routes incoming chunk protocol messages /// to the `AntProtocol` handler, sending responses back to the sender. + /// Also tracks peer connect/disconnect events in the metrics aggregator. fn start_protocol_routing(&mut self) { let protocol = match self.ant_protocol { Some(ref p) => Arc::clone(p), @@ -757,51 +850,198 @@ impl RunningNode { let mut events = self.p2p_node.subscribe_events(); let p2p = Arc::clone(&self.p2p_node); let semaphore = Arc::new(Semaphore::new(64)); + let aggregator = Arc::clone(&self.metrics_aggregator); self.protocol_task = Some(tokio::spawn(async move { while let Ok(event) = events.recv().await { - if let P2PEvent::Message { - topic, - source: Some(source), - data, - } = event - { - if topic == CHUNK_PROTOCOL_ID { - debug!("Received chunk protocol message from {source}"); - let protocol = Arc::clone(&protocol); - let p2p = Arc::clone(&p2p); - let sem = semaphore.clone(); - tokio::spawn(async move { - let Ok(_permit) = sem.acquire().await else { - return; - }; - match protocol.handle_message(&data).await { - Ok(response) => { - if let Err(e) = p2p - .send_message(&source, CHUNK_PROTOCOL_ID, response.to_vec()) - .await - { - warn!("Failed to send protocol response to {source}: {e}"); + match event { + P2PEvent::PeerConnected(..) => { + aggregator.record_peer_connected(); + } + P2PEvent::PeerDisconnected(..) => { + aggregator.record_peer_disconnected(); + } + P2PEvent::Message { + topic, + source: Some(source), + data, + } => { + if topic == CHUNK_PROTOCOL_ID { + debug!("Received chunk protocol message from {source}"); + let protocol = Arc::clone(&protocol); + let p2p = Arc::clone(&p2p); + let sem = semaphore.clone(); + tokio::spawn(async move { + let Ok(_permit) = sem.acquire().await else { + return; + }; + match protocol.handle_message(&data).await { + Ok(response) => { + if let Err(e) = p2p + .send_message( + &source, + CHUNK_PROTOCOL_ID, + response.to_vec(), + ) + .await + { + warn!( + "Failed to send protocol response to {source}: {e}" + ); + } + } + Err(e) => { + warn!("Protocol handler error: {e}"); } } - Err(e) => { - warn!("Protocol handler error: {e}"); - } - } - }); + }); + } } + P2PEvent::Message { .. } => {} } } })); info!("Protocol message routing started"); } + /// Spawn a dedicated task that drains the `MetricEvent` broadcast channel. + fn start_metric_event_loop(&mut self) { + let mut metric_rx = self.p2p_node.subscribe_metric_events(); + let aggregator = Arc::clone(&self.metrics_aggregator); + let shutdown = self.shutdown.clone(); + + self.metric_event_handle = Some(tokio::spawn(async move { + loop { + tokio::select! { + () = shutdown.cancelled() => break, + result = metric_rx.recv() => { + match result { + Ok(event) => aggregator.handle_metric_event(event).await, + Err(broadcast::error::RecvError::Lagged(n)) => { + debug!("Metric event receiver lagged, dropped {n} events"); + } + Err(broadcast::error::RecvError::Closed) => break, + } + } + } + } + })); + + info!("Metric event subscription loop started"); + } + /// Request the node to shut down. pub fn shutdown(&self) { self.shutdown.cancel(); } } +// ---- Axum metrics server handlers ---- + +/// Shared state for the metrics HTTP server. +#[derive(Clone)] +struct MetricsServerState { + health_manager: Arc, + aggregator: Arc, + snapshot_collector: Arc, +} + +/// `GET /health` — liveness check. +async fn health_handler( + axum::extract::State(state): axum::extract::State>, +) -> impl IntoResponse { + match state.health_manager.get_health().await { + Ok(response) => { + let body = serde_json::to_string(&response).unwrap_or_else(|_| "{}".to_string()); + ( + axum::http::StatusCode::OK, + [(header::CONTENT_TYPE, "application/json")], + body, + ) + } + Err(e) => ( + axum::http::StatusCode::INTERNAL_SERVER_ERROR, + [(header::CONTENT_TYPE, "application/json")], + format!("{{\"error\":\"{e}\"}}"), + ), + } +} + +/// `GET /ready` — readiness check. +async fn ready_handler( + axum::extract::State(state): axum::extract::State>, +) -> impl IntoResponse { + match state.health_manager.get_health().await { + Ok(response) => { + let status = if response.status == "healthy" { + axum::http::StatusCode::OK + } else { + axum::http::StatusCode::SERVICE_UNAVAILABLE + }; + let body = serde_json::to_string(&response).unwrap_or_else(|_| "{}".to_string()); + (status, [(header::CONTENT_TYPE, "application/json")], body) + } + Err(e) => ( + axum::http::StatusCode::INTERNAL_SERVER_ERROR, + [(header::CONTENT_TYPE, "application/json")], + format!("{{\"error\":\"{e}\"}}"), + ), + } +} + +/// `GET /metrics` — Prometheus text exposition format. +/// +/// Combines saorsa-core's health metrics with our event-driven + snapshot metrics. +async fn metrics_handler( + axum::extract::State(state): axum::extract::State>, +) -> impl IntoResponse { + let mut output = String::new(); + + // Health component metrics (from saorsa-core's PrometheusExporter) + let exporter = PrometheusExporter::new(Arc::clone(&state.health_manager)); + if let Ok(health_metrics) = exporter.export().await { + output.push_str(&health_metrics); + output.push('\n'); + } + + // Pull state snapshot from saorsa-core accessors + let snapshot = state.snapshot_collector.collect().await; + + // Domain metrics (event-driven + snapshot) + match PrometheusFormatter::format(&state.aggregator, &snapshot).await { + Ok(domain_metrics) => output.push_str(&domain_metrics), + Err(e) => { + warn!("Failed to format domain metrics: {e}"); + } + } + + ( + [(header::CONTENT_TYPE, "text/plain; version=0.0.4")], + output, + ) +} + +/// `GET /debug/vars` — debug information. +async fn debug_handler( + axum::extract::State(state): axum::extract::State>, +) -> impl IntoResponse { + match state.health_manager.get_debug_info().await { + Ok(info) => { + let body = serde_json::to_string(&info).unwrap_or_else(|_| "{}".to_string()); + ( + axum::http::StatusCode::OK, + [(header::CONTENT_TYPE, "application/json")], + body, + ) + } + Err(e) => ( + axum::http::StatusCode::INTERNAL_SERVER_ERROR, + [(header::CONTENT_TYPE, "application/json")], + format!("{{\"error\":\"{e}\"}}"), + ), + } +} + #[cfg(test)] #[allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)] mod tests { From 5f122ca8d501ef24743df98d57e13fb4dd8727f1 Mon Sep 17 00:00:00 2001 From: Chris O'Neil Date: Sun, 15 Mar 2026 21:28:51 +0000 Subject: [PATCH 03/11] =?UTF-8?q?feat:=20add=20phase=202=20metrics=20?= =?UTF-8?q?=E2=80=94=20transport,=20DHT=20latency,=20replication?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Extend the metrics pipeline with ~25 new metric families: - Handshake latency percentiles (PQ key exchange timing) - Separate DHT put/get latency percentiles (p50/p95/p99) - Operations per second (derived from total ops / uptime) - Extended transport stats: connection success/failure counts, byte counters, NAT traversal success rate, connection pool size - Connection failure breakdown by reason (labeled counter) - Replication timing: repair cycle duration, keys repaired, bytes transferred, grace period expiry tracking Update saorsa-core dependency to feat-metrics_phase2 branch which provides new MetricEvent variants (ConnectionEstablished, ConnectionFailed, HandshakeCompleted, ReplicationStarted, ReplicationCompleted, GracePeriodExpired) and extended TransportStats. Co-Authored-By: Claude Opus 4.6 (1M context) --- Cargo.toml | 2 +- src/metrics/aggregator.rs | 225 ++++++++++++++++- src/metrics/prometheus.rs | 507 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 723 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7c8bf1bc..5060e1e4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,7 @@ path = "src/bin/saorsa-cli/main.rs" [dependencies] # Core (provides EVERYTHING: networking, DHT, security, trust, storage) -saorsa-core = { git = "https://github.com/jacderida/saorsa-core", branch = "feat-metrics_event_channel" } +saorsa-core = { git = "https://github.com/jacderida/saorsa-core", branch = "feat-metrics_phase2" } saorsa-pqc = "0.5" # Payment verification - autonomi network lookup + EVM payment diff --git a/src/metrics/aggregator.rs b/src/metrics/aggregator.rs index 18c3df66..b72aa7a8 100644 --- a/src/metrics/aggregator.rs +++ b/src/metrics/aggregator.rs @@ -8,7 +8,7 @@ use saorsa_core::{MetricEvent, StreamClass}; use std::collections::{HashMap, VecDeque}; use std::sync::atomic::{AtomicU64, Ordering}; -use std::time::Duration; +use std::time::{Duration, Instant}; use tokio::sync::RwLock; /// Maximum number of samples retained in each sliding window. @@ -44,6 +44,15 @@ impl OperationCounter { } } +/// Push a microsecond sample into a bounded sliding window. +async fn push_window(window: &RwLock>, micros: u64) { + let mut w = window.write().await; + if w.len() >= WINDOW_SIZE { + w.pop_front(); + } + w.push_back(micros); +} + /// Aggregates event-driven metrics into counters and sliding windows. pub struct MetricsAggregator { // --- Peer connections (from P2PEvent) --- @@ -61,6 +70,10 @@ pub struct MetricsAggregator { pub(crate) dht_gets_total: AtomicU64, pub(crate) dht_gets_success: AtomicU64, + // --- DHT operation latency windows (Phase 2) --- + pub(crate) dht_put_latencies: RwLock>, // microseconds + pub(crate) dht_get_latencies: RwLock>, // microseconds + // --- Auth --- pub(crate) auth_failures_total: AtomicU64, @@ -72,6 +85,25 @@ pub struct MetricsAggregator { pub(crate) storage_reads: OperationCounter, pub(crate) storage_writes: OperationCounter, pub(crate) storage_deletes: OperationCounter, + + // --- Handshake latency (Phase 2) --- + pub(crate) handshake_latencies: RwLock>, // microseconds + + // --- Connection failure breakdown (Phase 2) --- + pub(crate) connection_failures_by_reason: RwLock>, + + // --- Replication metrics (Phase 2) --- + pub(crate) replication_cycles_total: AtomicU64, + pub(crate) replication_durations: RwLock>, // microseconds + pub(crate) replication_bytes_total: AtomicU64, + pub(crate) replication_keys_repaired_total: AtomicU64, + + // --- Grace period metrics (Phase 2) --- + pub(crate) grace_periods_expired_total: AtomicU64, + pub(crate) grace_period_keys_affected_total: AtomicU64, + + // --- Uptime tracking for ops/sec (Phase 2) --- + pub(crate) start_time: Instant, } impl MetricsAggregator { @@ -91,6 +123,9 @@ impl MetricsAggregator { dht_gets_total: AtomicU64::new(0), dht_gets_success: AtomicU64::new(0), + dht_put_latencies: RwLock::new(VecDeque::with_capacity(WINDOW_SIZE)), + dht_get_latencies: RwLock::new(VecDeque::with_capacity(WINDOW_SIZE)), + auth_failures_total: AtomicU64::new(0), stream_bandwidth: RwLock::new(HashMap::new()), @@ -99,6 +134,20 @@ impl MetricsAggregator { storage_reads: OperationCounter::new(), storage_writes: OperationCounter::new(), storage_deletes: OperationCounter::new(), + + handshake_latencies: RwLock::new(VecDeque::with_capacity(WINDOW_SIZE)), + + connection_failures_by_reason: RwLock::new(HashMap::new()), + + replication_cycles_total: AtomicU64::new(0), + replication_durations: RwLock::new(VecDeque::with_capacity(WINDOW_SIZE)), + replication_bytes_total: AtomicU64::new(0), + replication_keys_repaired_total: AtomicU64::new(0), + + grace_periods_expired_total: AtomicU64::new(0), + grace_period_keys_affected_total: AtomicU64::new(0), + + start_time: Instant::now(), } } @@ -110,13 +159,7 @@ impl MetricsAggregator { MetricEvent::LookupCompleted { duration, hops } => { self.lookup_count.fetch_add(1, Ordering::Relaxed); let micros = duration.as_micros().min(u128::from(u64::MAX)) as u64; - { - let mut w = self.lookup_latencies.write().await; - if w.len() >= WINDOW_SIZE { - w.pop_front(); - } - w.push_back(micros); - } + push_window(&self.lookup_latencies, micros).await; { let mut w = self.lookup_hops.write().await; if w.len() >= WINDOW_SIZE { @@ -129,17 +172,21 @@ impl MetricsAggregator { self.lookup_count.fetch_add(1, Ordering::Relaxed); self.lookup_timeouts.fetch_add(1, Ordering::Relaxed); } - MetricEvent::DhtPutCompleted { success, .. } => { + MetricEvent::DhtPutCompleted { duration, success } => { self.dht_puts_total.fetch_add(1, Ordering::Relaxed); if success { self.dht_puts_success.fetch_add(1, Ordering::Relaxed); } + let micros = duration.as_micros().min(u128::from(u64::MAX)) as u64; + push_window(&self.dht_put_latencies, micros).await; } - MetricEvent::DhtGetCompleted { success, .. } => { + MetricEvent::DhtGetCompleted { duration, success } => { self.dht_gets_total.fetch_add(1, Ordering::Relaxed); if success { self.dht_gets_success.fetch_add(1, Ordering::Relaxed); } + let micros = duration.as_micros().min(u128::from(u64::MAX)) as u64; + push_window(&self.dht_get_latencies, micros).await; } MetricEvent::AuthFailure => { self.auth_failures_total.fetch_add(1, Ordering::Relaxed); @@ -168,6 +215,43 @@ impl MetricsAggregator { } window.push_back(micros); } + // --- Phase 2: Transport --- + MetricEvent::ConnectionEstablished { .. } => { + // Connection counts are tracked in TransportStats (pull-based). + // No additional event-driven aggregation needed here. + } + MetricEvent::ConnectionFailed { reason } => { + let key = format!("{reason:?}"); + let mut map = self.connection_failures_by_reason.write().await; + *map.entry(key).or_insert(0) += 1; + } + MetricEvent::HandshakeCompleted { duration } => { + let micros = duration.as_micros().min(u128::from(u64::MAX)) as u64; + push_window(&self.handshake_latencies, micros).await; + } + // --- Phase 2: Replication --- + MetricEvent::ReplicationStarted { .. } => { + self.replication_cycles_total + .fetch_add(1, Ordering::Relaxed); + } + MetricEvent::ReplicationCompleted { + duration, + keys_repaired, + bytes_transferred, + } => { + let micros = duration.as_micros().min(u128::from(u64::MAX)) as u64; + push_window(&self.replication_durations, micros).await; + self.replication_keys_repaired_total + .fetch_add(keys_repaired, Ordering::Relaxed); + self.replication_bytes_total + .fetch_add(bytes_transferred, Ordering::Relaxed); + } + MetricEvent::GracePeriodExpired { keys_affected } => { + self.grace_periods_expired_total + .fetch_add(1, Ordering::Relaxed); + self.grace_period_keys_affected_total + .fetch_add(keys_affected, Ordering::Relaxed); + } } } @@ -249,6 +333,17 @@ impl MetricsAggregator { + self.dht_gets_success.load(Ordering::Relaxed); success as f64 / total as f64 } + + /// Total DHT operations per second since node start. + pub fn operations_per_second(&self) -> f64 { + let total = self.dht_puts_total.load(Ordering::Relaxed) + + self.dht_gets_total.load(Ordering::Relaxed); + let elapsed = self.start_time.elapsed().as_secs_f64(); + if elapsed < 1.0 { + return 0.0; + } + total as f64 / elapsed + } } impl Default for MetricsAggregator { @@ -283,6 +378,7 @@ pub(crate) fn percentile_u8(sorted: &[u8], p: f64) -> u8 { #[allow(clippy::unwrap_used, clippy::expect_used)] mod tests { use super::*; + use saorsa_core::{ConnectionFailureReason, ConnectionNatType}; #[test] fn percentile_empty() { @@ -357,6 +453,27 @@ mod tests { assert!((rate - 2.0 / 3.0).abs() < 0.001); } + #[tokio::test] + async fn dht_put_get_latency_windows() { + let agg = MetricsAggregator::new(); + agg.handle_metric_event(MetricEvent::DhtPutCompleted { + duration: Duration::from_millis(15), + success: true, + }) + .await; + agg.handle_metric_event(MetricEvent::DhtGetCompleted { + duration: Duration::from_millis(25), + success: true, + }) + .await; + + assert_eq!(agg.dht_put_latencies.read().await.len(), 1); + assert_eq!(agg.dht_get_latencies.read().await.len(), 1); + // 15ms = 15000 microseconds + assert_eq!(*agg.dht_put_latencies.read().await.front().unwrap(), 15000); + assert_eq!(*agg.dht_get_latencies.read().await.front().unwrap(), 25000); + } + #[tokio::test] async fn peer_connect_disconnect() { let agg = MetricsAggregator::new(); @@ -420,4 +537,92 @@ mod tests { assert_eq!(agg.lookup_latencies.read().await.len(), WINDOW_SIZE); assert_eq!(agg.lookup_hops.read().await.len(), WINDOW_SIZE); } + + #[tokio::test] + async fn handshake_latency() { + let agg = MetricsAggregator::new(); + agg.handle_metric_event(MetricEvent::HandshakeCompleted { + duration: Duration::from_millis(120), + }) + .await; + + assert_eq!(agg.handshake_latencies.read().await.len(), 1); + assert_eq!( + *agg.handshake_latencies.read().await.front().unwrap(), + 120_000 + ); + } + + #[tokio::test] + async fn connection_failure_breakdown() { + let agg = MetricsAggregator::new(); + agg.handle_metric_event(MetricEvent::ConnectionFailed { + reason: ConnectionFailureReason::Timeout, + }) + .await; + agg.handle_metric_event(MetricEvent::ConnectionFailed { + reason: ConnectionFailureReason::Timeout, + }) + .await; + agg.handle_metric_event(MetricEvent::ConnectionFailed { + reason: ConnectionFailureReason::NatTraversalFailed, + }) + .await; + + let map = agg.connection_failures_by_reason.read().await; + assert_eq!(map.get("Timeout"), Some(&2)); + assert_eq!(map.get("NatTraversalFailed"), Some(&1)); + } + + #[tokio::test] + async fn replication_metrics() { + let agg = MetricsAggregator::new(); + agg.handle_metric_event(MetricEvent::ReplicationStarted { keys_to_repair: 10 }) + .await; + agg.handle_metric_event(MetricEvent::ReplicationCompleted { + duration: Duration::from_secs(5), + keys_repaired: 8, + bytes_transferred: 1024, + }) + .await; + + assert_eq!(agg.replication_cycles_total.load(Ordering::Relaxed), 1); + assert_eq!( + agg.replication_keys_repaired_total.load(Ordering::Relaxed), + 8 + ); + assert_eq!(agg.replication_bytes_total.load(Ordering::Relaxed), 1024); + assert_eq!(agg.replication_durations.read().await.len(), 1); + } + + #[tokio::test] + async fn grace_period_metrics() { + let agg = MetricsAggregator::new(); + agg.handle_metric_event(MetricEvent::GracePeriodExpired { keys_affected: 42 }) + .await; + + assert_eq!(agg.grace_periods_expired_total.load(Ordering::Relaxed), 1); + assert_eq!( + agg.grace_period_keys_affected_total.load(Ordering::Relaxed), + 42 + ); + } + + #[tokio::test] + async fn connection_established_no_panic() { + let agg = MetricsAggregator::new(); + agg.handle_metric_event(MetricEvent::ConnectionEstablished { + duration: Duration::from_millis(50), + nat_type: ConnectionNatType::Direct, + }) + .await; + // No assertion — just verify it doesn't panic + } + + #[test] + fn operations_per_second_zero_initially() { + let agg = MetricsAggregator::new(); + // Elapsed < 1s, should return 0 + assert!((agg.operations_per_second() - 0.0).abs() < 0.001); + } } diff --git a/src/metrics/prometheus.rs b/src/metrics/prometheus.rs index a17a74d5..3900dfc7 100644 --- a/src/metrics/prometheus.rs +++ b/src/metrics/prometheus.rs @@ -49,6 +49,14 @@ impl PrometheusFormatter { Self::format_transport_metrics(&mut out, &snapshot.transport)?; Self::format_strategy_metrics(&mut out, &snapshot.strategy_stats)?; + // Phase 2 additions + Self::format_handshake_metrics(&mut out, aggregator).await?; + Self::format_dht_latency_metrics(&mut out, aggregator).await?; + Self::format_ops_per_second(&mut out, aggregator)?; + Self::format_extended_transport_metrics(&mut out, &snapshot.transport)?; + Self::format_connection_failure_breakdown(&mut out, aggregator).await?; + Self::format_replication_timing_metrics(&mut out, aggregator).await?; + Ok(out) } @@ -921,6 +929,349 @@ impl PrometheusFormatter { Ok(()) } + // ---- Phase 2 metrics ---- + + async fn format_handshake_metrics( + out: &mut String, + agg: &MetricsAggregator, + ) -> std::fmt::Result { + let window = agg.handshake_latencies.read().await; + let mut sorted: Vec = window.iter().copied().collect(); + sorted.sort_unstable(); + let p50 = percentile_u64(&sorted, 50.0) as f64 / 1000.0; + let p95 = percentile_u64(&sorted, 95.0) as f64 / 1000.0; + let p99 = percentile_u64(&sorted, 99.0) as f64 / 1000.0; + + writeln!( + out, + "# HELP p2p_handshake_latency_p50_ms PQ handshake latency p50 in milliseconds" + )?; + writeln!(out, "# TYPE p2p_handshake_latency_p50_ms gauge")?; + writeln!(out, "p2p_handshake_latency_p50_ms {p50:.3}")?; + + writeln!( + out, + "# HELP p2p_handshake_latency_p95_ms PQ handshake latency p95 in milliseconds" + )?; + writeln!(out, "# TYPE p2p_handshake_latency_p95_ms gauge")?; + writeln!(out, "p2p_handshake_latency_p95_ms {p95:.3}")?; + + writeln!( + out, + "# HELP p2p_handshake_latency_p99_ms PQ handshake latency p99 in milliseconds" + )?; + writeln!(out, "# TYPE p2p_handshake_latency_p99_ms gauge")?; + writeln!(out, "p2p_handshake_latency_p99_ms {p99:.3}")?; + + Ok(()) + } + + async fn format_dht_latency_metrics( + out: &mut String, + agg: &MetricsAggregator, + ) -> std::fmt::Result { + // DHT put latencies + { + let window = agg.dht_put_latencies.read().await; + let mut sorted: Vec = window.iter().copied().collect(); + sorted.sort_unstable(); + let p50 = percentile_u64(&sorted, 50.0) as f64 / 1000.0; + let p95 = percentile_u64(&sorted, 95.0) as f64 / 1000.0; + let p99 = percentile_u64(&sorted, 99.0) as f64 / 1000.0; + + writeln!( + out, + "# HELP p2p_dht_put_latency_p50_ms DHT put latency p50 in milliseconds" + )?; + writeln!(out, "# TYPE p2p_dht_put_latency_p50_ms gauge")?; + writeln!(out, "p2p_dht_put_latency_p50_ms {p50:.3}")?; + + writeln!( + out, + "# HELP p2p_dht_put_latency_p95_ms DHT put latency p95 in milliseconds" + )?; + writeln!(out, "# TYPE p2p_dht_put_latency_p95_ms gauge")?; + writeln!(out, "p2p_dht_put_latency_p95_ms {p95:.3}")?; + + writeln!( + out, + "# HELP p2p_dht_put_latency_p99_ms DHT put latency p99 in milliseconds" + )?; + writeln!(out, "# TYPE p2p_dht_put_latency_p99_ms gauge")?; + writeln!(out, "p2p_dht_put_latency_p99_ms {p99:.3}")?; + } + + // DHT get latencies + { + let window = agg.dht_get_latencies.read().await; + let mut sorted: Vec = window.iter().copied().collect(); + sorted.sort_unstable(); + let p50 = percentile_u64(&sorted, 50.0) as f64 / 1000.0; + let p95 = percentile_u64(&sorted, 95.0) as f64 / 1000.0; + let p99 = percentile_u64(&sorted, 99.0) as f64 / 1000.0; + + writeln!( + out, + "# HELP p2p_dht_get_latency_p50_ms DHT get latency p50 in milliseconds" + )?; + writeln!(out, "# TYPE p2p_dht_get_latency_p50_ms gauge")?; + writeln!(out, "p2p_dht_get_latency_p50_ms {p50:.3}")?; + + writeln!( + out, + "# HELP p2p_dht_get_latency_p95_ms DHT get latency p95 in milliseconds" + )?; + writeln!(out, "# TYPE p2p_dht_get_latency_p95_ms gauge")?; + writeln!(out, "p2p_dht_get_latency_p95_ms {p95:.3}")?; + + writeln!( + out, + "# HELP p2p_dht_get_latency_p99_ms DHT get latency p99 in milliseconds" + )?; + writeln!(out, "# TYPE p2p_dht_get_latency_p99_ms gauge")?; + writeln!(out, "p2p_dht_get_latency_p99_ms {p99:.3}")?; + } + + Ok(()) + } + + fn format_ops_per_second(out: &mut String, agg: &MetricsAggregator) -> std::fmt::Result { + let ops = agg.operations_per_second(); + writeln!( + out, + "# HELP p2p_operations_per_second DHT operations per second" + )?; + writeln!(out, "# TYPE p2p_operations_per_second gauge")?; + writeln!(out, "p2p_operations_per_second {ops:.6}")?; + Ok(()) + } + + fn format_extended_transport_metrics(out: &mut String, m: &TransportStats) -> std::fmt::Result { + writeln!( + out, + "# HELP p2p_transport_total_connections_established Total connections established" + )?; + writeln!( + out, + "# TYPE p2p_transport_total_connections_established counter" + )?; + writeln!( + out, + "p2p_transport_total_connections_established {}", + m.total_connections_established + )?; + + writeln!( + out, + "# HELP p2p_transport_connection_failures Total connection failures" + )?; + writeln!(out, "# TYPE p2p_transport_connection_failures counter")?; + writeln!( + out, + "p2p_transport_connection_failures {}", + m.connection_failures + )?; + + let total_attempts = m.total_connections_established + m.connection_failures; + let success_rate = if total_attempts == 0 { + 0.0 + } else { + m.total_connections_established as f64 / total_attempts as f64 + }; + writeln!( + out, + "# HELP p2p_transport_connection_success_rate Connection success rate" + )?; + writeln!(out, "# TYPE p2p_transport_connection_success_rate gauge")?; + writeln!( + out, + "p2p_transport_connection_success_rate {success_rate:.6}" + )?; + + writeln!( + out, + "# HELP p2p_transport_bytes_sent_total Total bytes sent" + )?; + writeln!(out, "# TYPE p2p_transport_bytes_sent_total counter")?; + writeln!(out, "p2p_transport_bytes_sent_total {}", m.bytes_sent_total)?; + + writeln!( + out, + "# HELP p2p_transport_bytes_received_total Total bytes received" + )?; + writeln!(out, "# TYPE p2p_transport_bytes_received_total counter")?; + writeln!( + out, + "p2p_transport_bytes_received_total {}", + m.bytes_received_total + )?; + + writeln!( + out, + "# HELP p2p_transport_nat_traversal_attempts_total Total NAT traversal attempts" + )?; + writeln!( + out, + "# TYPE p2p_transport_nat_traversal_attempts_total counter" + )?; + writeln!( + out, + "p2p_transport_nat_traversal_attempts_total {}", + m.nat_traversal_attempts + )?; + + writeln!( + out, + "# HELP p2p_transport_nat_traversal_successes_total Successful NAT traversals" + )?; + writeln!( + out, + "# TYPE p2p_transport_nat_traversal_successes_total counter" + )?; + writeln!( + out, + "p2p_transport_nat_traversal_successes_total {}", + m.nat_traversal_successes + )?; + + let nat_rate = if m.nat_traversal_attempts == 0 { + 0.0 + } else { + m.nat_traversal_successes as f64 / m.nat_traversal_attempts as f64 + }; + writeln!( + out, + "# HELP p2p_transport_nat_traversal_success_rate NAT traversal success rate" + )?; + writeln!(out, "# TYPE p2p_transport_nat_traversal_success_rate gauge")?; + writeln!( + out, + "p2p_transport_nat_traversal_success_rate {nat_rate:.6}" + )?; + + writeln!( + out, + "# HELP p2p_transport_connection_pool_size Current connection pool size" + )?; + writeln!(out, "# TYPE p2p_transport_connection_pool_size gauge")?; + writeln!( + out, + "p2p_transport_connection_pool_size {}", + m.connection_pool_size + )?; + + Ok(()) + } + + async fn format_connection_failure_breakdown( + out: &mut String, + agg: &MetricsAggregator, + ) -> std::fmt::Result { + let guard = agg.connection_failures_by_reason.read().await; + let map: &HashMap = &guard; + if !map.is_empty() { + writeln!( + out, + "# HELP p2p_transport_connection_failures_by_reason Connection failures by reason" + )?; + writeln!( + out, + "# TYPE p2p_transport_connection_failures_by_reason counter" + )?; + for (reason, count) in map { + writeln!( + out, + "p2p_transport_connection_failures_by_reason{{reason=\"{reason}\"}} {count}" + )?; + } + } + Ok(()) + } + + async fn format_replication_timing_metrics( + out: &mut String, + agg: &MetricsAggregator, + ) -> std::fmt::Result { + let cycles = agg.replication_cycles_total.load(Ordering::Relaxed); + writeln!( + out, + "# HELP p2p_replication_cycles_total Total replication repair cycles" + )?; + writeln!(out, "# TYPE p2p_replication_cycles_total counter")?; + writeln!(out, "p2p_replication_cycles_total {cycles}")?; + + { + let window = agg.replication_durations.read().await; + let mut sorted: Vec = window.iter().copied().collect(); + sorted.sort_unstable(); + let p50 = percentile_u64(&sorted, 50.0) as f64 / 1000.0; + let p95 = percentile_u64(&sorted, 95.0) as f64 / 1000.0; + + writeln!( + out, + "# HELP p2p_replication_duration_p50_ms Replication duration p50 in milliseconds" + )?; + writeln!(out, "# TYPE p2p_replication_duration_p50_ms gauge")?; + writeln!(out, "p2p_replication_duration_p50_ms {p50:.3}")?; + + writeln!( + out, + "# HELP p2p_replication_duration_p95_ms Replication duration p95 in milliseconds" + )?; + writeln!(out, "# TYPE p2p_replication_duration_p95_ms gauge")?; + writeln!(out, "p2p_replication_duration_p95_ms {p95:.3}")?; + } + + let keys = agg.replication_keys_repaired_total.load(Ordering::Relaxed); + writeln!( + out, + "# HELP p2p_replication_keys_repaired_total Total keys repaired" + )?; + writeln!(out, "# TYPE p2p_replication_keys_repaired_total counter")?; + writeln!(out, "p2p_replication_keys_repaired_total {keys}")?; + + let bytes = agg.replication_bytes_total.load(Ordering::Relaxed); + writeln!( + out, + "# HELP p2p_replication_bytes_transferred_total Total replication bytes transferred" + )?; + writeln!( + out, + "# TYPE p2p_replication_bytes_transferred_total counter" + )?; + writeln!(out, "p2p_replication_bytes_transferred_total {bytes}")?; + + let grace_expired = agg.grace_periods_expired_total.load(Ordering::Relaxed); + writeln!( + out, + "# HELP p2p_replication_grace_periods_expired_total Total grace periods expired" + )?; + writeln!( + out, + "# TYPE p2p_replication_grace_periods_expired_total counter" + )?; + writeln!( + out, + "p2p_replication_grace_periods_expired_total {grace_expired}" + )?; + + let grace_keys = agg.grace_period_keys_affected_total.load(Ordering::Relaxed); + writeln!( + out, + "# HELP p2p_replication_grace_period_keys_affected_total Keys affected by grace period expiry" + )?; + writeln!( + out, + "# TYPE p2p_replication_grace_period_keys_affected_total counter" + )?; + writeln!( + out, + "p2p_replication_grace_period_keys_affected_total {grace_keys}" + )?; + + Ok(()) + } + fn format_strategy_metrics(out: &mut String, stats: &[StrategyStats]) -> std::fmt::Result { if stats.is_empty() { return Ok(()); @@ -1124,4 +1475,160 @@ mod tests { let output = PrometheusFormatter::format(&agg, &snapshot).await.unwrap(); assert!(output.contains("p2p_stream_bandwidth_p50_bytes_per_sec{class=\"file\"}")); } + + // ---- Phase 2 tests ---- + + #[tokio::test] + async fn phase2_handshake_metrics() { + let agg = MetricsAggregator::new(); + agg.handle_metric_event(MetricEvent::HandshakeCompleted { + duration: Duration::from_millis(100), + }) + .await; + + let snapshot = default_snapshot(); + let output = PrometheusFormatter::format(&agg, &snapshot).await.unwrap(); + assert!(output.contains("p2p_handshake_latency_p50_ms")); + assert!(output.contains("p2p_handshake_latency_p95_ms")); + assert!(output.contains("p2p_handshake_latency_p99_ms")); + } + + #[tokio::test] + async fn phase2_dht_put_get_latencies_separate() { + let agg = MetricsAggregator::new(); + agg.handle_metric_event(MetricEvent::DhtPutCompleted { + duration: Duration::from_millis(20), + success: true, + }) + .await; + agg.handle_metric_event(MetricEvent::DhtGetCompleted { + duration: Duration::from_millis(30), + success: true, + }) + .await; + + let snapshot = default_snapshot(); + let output = PrometheusFormatter::format(&agg, &snapshot).await.unwrap(); + assert!(output.contains("p2p_dht_put_latency_p50_ms")); + assert!(output.contains("p2p_dht_get_latency_p50_ms")); + // Verify separate: put is 20ms, get is 30ms + assert!(output.contains("p2p_dht_put_latency_p50_ms 20.000")); + assert!(output.contains("p2p_dht_get_latency_p50_ms 30.000")); + } + + #[tokio::test] + async fn phase2_ops_per_second() { + let agg = MetricsAggregator::new(); + let snapshot = default_snapshot(); + let output = PrometheusFormatter::format(&agg, &snapshot).await.unwrap(); + assert!(output.contains("p2p_operations_per_second")); + } + + #[tokio::test] + async fn phase2_extended_transport_metrics() { + let agg = MetricsAggregator::new(); + let mut snapshot = default_snapshot(); + snapshot.transport.total_connections_established = 100; + snapshot.transport.connection_failures = 5; + snapshot.transport.bytes_sent_total = 1_000_000; + snapshot.transport.bytes_received_total = 2_000_000; + snapshot.transport.nat_traversal_attempts = 20; + snapshot.transport.nat_traversal_successes = 15; + snapshot.transport.connection_pool_size = 42; + + let output = PrometheusFormatter::format(&agg, &snapshot).await.unwrap(); + assert!(output.contains("p2p_transport_total_connections_established 100")); + assert!(output.contains("p2p_transport_connection_failures 5")); + assert!(output.contains("p2p_transport_bytes_sent_total 1000000")); + assert!(output.contains("p2p_transport_bytes_received_total 2000000")); + assert!(output.contains("p2p_transport_nat_traversal_attempts_total 20")); + assert!(output.contains("p2p_transport_nat_traversal_successes_total 15")); + assert!(output.contains("p2p_transport_connection_pool_size 42")); + // Derived rates + assert!(output.contains("p2p_transport_connection_success_rate")); + assert!(output.contains("p2p_transport_nat_traversal_success_rate")); + } + + #[tokio::test] + async fn phase2_connection_failure_breakdown() { + use saorsa_core::ConnectionFailureReason; + + let agg = MetricsAggregator::new(); + agg.handle_metric_event(MetricEvent::ConnectionFailed { + reason: ConnectionFailureReason::Timeout, + }) + .await; + agg.handle_metric_event(MetricEvent::ConnectionFailed { + reason: ConnectionFailureReason::NatTraversalFailed, + }) + .await; + + let snapshot = default_snapshot(); + let output = PrometheusFormatter::format(&agg, &snapshot).await.unwrap(); + assert!( + output.contains("p2p_transport_connection_failures_by_reason{reason=\"Timeout\"} 1") + ); + assert!(output.contains( + "p2p_transport_connection_failures_by_reason{reason=\"NatTraversalFailed\"} 1" + )); + } + + #[tokio::test] + async fn phase2_replication_metrics() { + let agg = MetricsAggregator::new(); + agg.handle_metric_event(MetricEvent::ReplicationStarted { keys_to_repair: 10 }) + .await; + agg.handle_metric_event(MetricEvent::ReplicationCompleted { + duration: Duration::from_secs(3), + keys_repaired: 8, + bytes_transferred: 4096, + }) + .await; + agg.handle_metric_event(MetricEvent::GracePeriodExpired { keys_affected: 5 }) + .await; + + let snapshot = default_snapshot(); + let output = PrometheusFormatter::format(&agg, &snapshot).await.unwrap(); + assert!(output.contains("p2p_replication_cycles_total 1")); + assert!(output.contains("p2p_replication_duration_p50_ms")); + assert!(output.contains("p2p_replication_keys_repaired_total 8")); + assert!(output.contains("p2p_replication_bytes_transferred_total 4096")); + assert!(output.contains("p2p_replication_grace_periods_expired_total 1")); + assert!(output.contains("p2p_replication_grace_period_keys_affected_total 5")); + } + + #[tokio::test] + async fn phase2_no_orphaned_headers() { + use saorsa_core::ConnectionFailureReason; + + let agg = MetricsAggregator::new(); + // Generate some phase 2 events to populate all paths + agg.handle_metric_event(MetricEvent::HandshakeCompleted { + duration: Duration::from_millis(50), + }) + .await; + agg.handle_metric_event(MetricEvent::ConnectionFailed { + reason: ConnectionFailureReason::Timeout, + }) + .await; + agg.handle_metric_event(MetricEvent::ReplicationStarted { keys_to_repair: 1 }) + .await; + + let snapshot = default_snapshot(); + let output = PrometheusFormatter::format(&agg, &snapshot).await.unwrap(); + + for line in output.lines() { + if line.starts_with("# HELP ") { + let metric_name = line + .strip_prefix("# HELP ") + .and_then(|s| s.split_whitespace().next()) + .unwrap(); + let type_line = format!("# TYPE {metric_name}"); + assert!( + output.contains(&type_line), + "HELP without TYPE for {metric_name}" + ); + } + } + } } From b885e2652b638d098ecb8bdedd945dd8528accf6 Mon Sep 17 00:00:00 2001 From: Chris O'Neil Date: Mon, 16 Mar 2026 12:29:26 +0000 Subject: [PATCH 04/11] fix: subscribe to metric events before starting P2P node Move start_metric_event_loop() before p2p_node.start() so that connection and handshake MetricEvents emitted during startup are captured by the aggregator instead of being lost. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/node.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/node.rs b/src/node.rs index 4370a975..0eeba237 100644 --- a/src/node.rs +++ b/src/node.rs @@ -605,6 +605,10 @@ impl RunningNode { pub async fn run(&mut self) -> Result<()> { info!("Node runtime loop starting"); + // Subscribe to metric events before starting the P2P node so we + // don't miss connection/handshake events emitted during startup. + self.start_metric_event_loop(); + // Start the P2P node self.p2p_node .start() @@ -622,9 +626,6 @@ impl RunningNode { // Start protocol message routing (P2P → AntProtocol → P2P response) self.start_protocol_routing(); - // Start metric event subscription loop - self.start_metric_event_loop(); - // Start health/metrics HTTP server if metrics_port != 0 self.start_health_server(); From e8fa264afdeec0e3b41640a5e31b07ca4a5e6140 Mon Sep 17 00:00:00 2001 From: Chris O'Neil Date: Mon, 16 Mar 2026 12:54:56 +0000 Subject: [PATCH 05/11] chore: track Cargo.lock for reproducible builds Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitignore | 1 - Cargo.lock | 7649 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 7649 insertions(+), 1 deletion(-) create mode 100644 Cargo.lock diff --git a/.gitignore b/.gitignore index 6d84177e..b33a611d 100644 --- a/.gitignore +++ b/.gitignore @@ -63,7 +63,6 @@ release_key* # ----------------------------------------------------------------------------- /target/ **/*.rs.bk -Cargo.lock *.rlib *.rmeta diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 00000000..fc19198b --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7649 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "addr2line" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b5d307320b3181d6d7954e663bd7c774a838b8220fe0593c86d9fb09f498b4b" +dependencies = [ + "gimli", +] + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "aead" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0" +dependencies = [ + "crypto-common", + "generic-array", +] + +[[package]] +name = "aes" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" +dependencies = [ + "cfg-if", + "cipher", + "cpufeatures", +] + +[[package]] +name = "aes-gcm" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "831010a0f742e1209b3bcea8fab6a8e149051ba6099432c8cb2cc117dec3ead1" +dependencies = [ + "aead", + "aes", + "cipher", + "ctr", + "ghash", + "subtle", +] + +[[package]] +name = "aes-gcm-siv" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae0784134ba9375416d469ec31e7c5f9fa94405049cf08c5ce5b4698be673e0d" +dependencies = [ + "aead", + "aes", + "cipher", + "ctr", + "polyval", + "subtle", + "zeroize", +] + +[[package]] +name = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +dependencies = [ + "memchr", +] + +[[package]] +name = "alloc-no-stdlib" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3" + +[[package]] +name = "alloc-stdlib" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece" +dependencies = [ + "alloc-no-stdlib", +] + +[[package]] +name = "allocator-api2" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" + +[[package]] +name = "alloy" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4973038846323e4e69a433916522195dce2947770076c03078fc21c80ea0f1c4" +dependencies = [ + "alloy-consensus", + "alloy-contract", + "alloy-core", + "alloy-eips", + "alloy-genesis", + "alloy-json-rpc", + "alloy-network", + "alloy-node-bindings", + "alloy-provider", + "alloy-rpc-client", + "alloy-rpc-types", + "alloy-serde", + "alloy-signer", + "alloy-signer-local", + "alloy-transport", + "alloy-transport-http", + "alloy-trie", +] + +[[package]] +name = "alloy-chains" +version = "0.2.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d9d22005bf31b018f31ef9ecadb5d2c39cf4f6acc8db0456f72c815f3d7f757" +dependencies = [ + "alloy-primitives", + "num_enum", + "strum", +] + +[[package]] +name = "alloy-consensus" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0c0dc44157867da82c469c13186015b86abef209bf0e41625e4b68bac61d728" +dependencies = [ + "alloy-eips", + "alloy-primitives", + "alloy-rlp", + "alloy-serde", + "alloy-trie", + "alloy-tx-macros", + "auto_impl", + "borsh", + "c-kzg", + "derive_more", + "either", + "k256", + "once_cell", + "rand 0.8.5", + "secp256k1", + "serde", + "serde_json", + "serde_with", + "thiserror 2.0.18", +] + +[[package]] +name = "alloy-consensus-any" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba4cdb42df3871cd6b346d6a938ec2ba69a9a0f49d1f82714bc5c48349268434" +dependencies = [ + "alloy-consensus", + "alloy-eips", + "alloy-primitives", + "alloy-rlp", + "alloy-serde", + "serde", +] + +[[package]] +name = "alloy-contract" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca63b7125a981415898ffe2a2a696c83696c9c6bdb1671c8a912946bbd8e49e7" +dependencies = [ + "alloy-consensus", + "alloy-dyn-abi", + "alloy-json-abi", + "alloy-network", + "alloy-network-primitives", + "alloy-primitives", + "alloy-provider", + "alloy-rpc-types-eth", + "alloy-sol-types", + "alloy-transport", + "futures", + "futures-util", + "serde_json", + "thiserror 2.0.18", +] + +[[package]] +name = "alloy-core" +version = "1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23e8604b0c092fabc80d075ede181c9b9e596249c70b99253082d7e689836529" +dependencies = [ + "alloy-dyn-abi", + "alloy-json-abi", + "alloy-primitives", + "alloy-rlp", + "alloy-sol-types", +] + +[[package]] +name = "alloy-dyn-abi" +version = "1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc2db5c583aaef0255aa63a4fe827f826090142528bba48d1bf4119b62780cad" +dependencies = [ + "alloy-json-abi", + "alloy-primitives", + "alloy-sol-type-parser", + "alloy-sol-types", + "itoa", + "serde", + "serde_json", + "winnow", +] + +[[package]] +name = "alloy-eip2124" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "741bdd7499908b3aa0b159bba11e71c8cddd009a2c2eb7a06e825f1ec87900a5" +dependencies = [ + "alloy-primitives", + "alloy-rlp", + "crc", + "serde", + "thiserror 2.0.18", +] + +[[package]] +name = "alloy-eip2930" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9441120fa82df73e8959ae0e4ab8ade03de2aaae61be313fbf5746277847ce25" +dependencies = [ + "alloy-primitives", + "alloy-rlp", + "borsh", + "serde", +] + +[[package]] +name = "alloy-eip7702" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2919c5a56a1007492da313e7a3b6d45ef5edc5d33416fdec63c0d7a2702a0d20" +dependencies = [ + "alloy-primitives", + "alloy-rlp", + "borsh", + "serde", + "thiserror 2.0.18", +] + +[[package]] +name = "alloy-eip7928" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8222b1d88f9a6d03be84b0f5e76bb60cd83991b43ad8ab6477f0e4a7809b98d" +dependencies = [ + "alloy-primitives", + "alloy-rlp", + "borsh", + "serde", +] + +[[package]] +name = "alloy-eips" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9f7ef09f21bd1e9cb8a686f168cb4a206646804567f0889eadb8dcc4c9288c8" +dependencies = [ + "alloy-eip2124", + "alloy-eip2930", + "alloy-eip7702", + "alloy-eip7928", + "alloy-primitives", + "alloy-rlp", + "alloy-serde", + "auto_impl", + "borsh", + "c-kzg", + "derive_more", + "either", + "serde", + "serde_with", + "sha2", + "thiserror 2.0.18", +] + +[[package]] +name = "alloy-genesis" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c9cf3b99f46615fbf7dc1add0c96553abb7bf88fc9ec70dfbe7ad0b47ba7fe8" +dependencies = [ + "alloy-eips", + "alloy-primitives", + "alloy-serde", + "alloy-trie", + "borsh", + "serde", + "serde_with", +] + +[[package]] +name = "alloy-hardforks" +version = "0.2.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3165210652f71dfc094b051602bafd691f506c54050a174b1cba18fb5ef706a3" +dependencies = [ + "alloy-chains", + "alloy-eip2124", + "alloy-primitives", + "auto_impl", + "dyn-clone", +] + +[[package]] +name = "alloy-json-abi" +version = "1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9dbe713da0c737d9e5e387b0ba790eb98b14dd207fe53eef50e19a5a8ec3dac" +dependencies = [ + "alloy-primitives", + "alloy-sol-type-parser", + "serde", + "serde_json", +] + +[[package]] +name = "alloy-json-rpc" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff42cd777eea61f370c0b10f2648a1c81e0b783066cd7269228aa993afd487f7" +dependencies = [ + "alloy-primitives", + "alloy-sol-types", + "http", + "serde", + "serde_json", + "thiserror 2.0.18", + "tracing", +] + +[[package]] +name = "alloy-network" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cbca04f9b410fdc51aaaf88433cbac761213905a65fe832058bcf6690585762" +dependencies = [ + "alloy-consensus", + "alloy-consensus-any", + "alloy-eips", + "alloy-json-rpc", + "alloy-network-primitives", + "alloy-primitives", + "alloy-rpc-types-any", + "alloy-rpc-types-eth", + "alloy-serde", + "alloy-signer", + "alloy-sol-types", + "async-trait", + "auto_impl", + "derive_more", + "futures-utils-wasm", + "serde", + "serde_json", + "thiserror 2.0.18", +] + +[[package]] +name = "alloy-network-primitives" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42d6d15e069a8b11f56bef2eccbad2a873c6dd4d4c81d04dda29710f5ea52f04" +dependencies = [ + "alloy-consensus", + "alloy-eips", + "alloy-primitives", + "alloy-serde", + "serde", +] + +[[package]] +name = "alloy-node-bindings" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "091dc8117d84de3a9ac7ec97f2c4d83987e24d485b478d26aa1ec455d7d52f7d" +dependencies = [ + "alloy-genesis", + "alloy-hardforks", + "alloy-network", + "alloy-primitives", + "alloy-signer", + "alloy-signer-local", + "k256", + "libc", + "rand 0.8.5", + "serde_json", + "tempfile", + "thiserror 2.0.18", + "tracing", + "url", +] + +[[package]] +name = "alloy-primitives" +version = "1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de3b431b4e72cd8bd0ec7a50b4be18e73dab74de0dba180eef171055e5d5926e" +dependencies = [ + "alloy-rlp", + "bytes", + "cfg-if", + "const-hex", + "derive_more", + "foldhash 0.2.0", + "hashbrown 0.16.1", + "indexmap 2.13.0", + "itoa", + "k256", + "keccak-asm", + "paste", + "proptest", + "rand 0.9.2", + "rapidhash", + "ruint", + "rustc-hash", + "serde", + "sha3", +] + +[[package]] +name = "alloy-provider" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d181c8cc7cf4805d7e589bf4074d56d55064fa1a979f005a45a62b047616d870" +dependencies = [ + "alloy-chains", + "alloy-consensus", + "alloy-eips", + "alloy-json-rpc", + "alloy-network", + "alloy-network-primitives", + "alloy-node-bindings", + "alloy-primitives", + "alloy-rpc-client", + "alloy-rpc-types-anvil", + "alloy-rpc-types-eth", + "alloy-signer", + "alloy-sol-types", + "alloy-transport", + "alloy-transport-http", + "async-stream", + "async-trait", + "auto_impl", + "dashmap", + "either", + "futures", + "futures-utils-wasm", + "lru", + "parking_lot", + "pin-project", + "reqwest 0.12.28", + "serde", + "serde_json", + "thiserror 2.0.18", + "tokio", + "tracing", + "url", + "wasmtimer", +] + +[[package]] +name = "alloy-rlp" +version = "0.3.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e93e50f64a77ad9c5470bf2ad0ca02f228da70c792a8f06634801e202579f35e" +dependencies = [ + "alloy-rlp-derive", + "arrayvec", + "bytes", +] + +[[package]] +name = "alloy-rlp-derive" +version = "0.3.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce8849c74c9ca0f5a03da1c865e3eb6f768df816e67dd3721a398a8a7e398011" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "alloy-rpc-client" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2792758a93ae32a32e9047c843d536e1448044f78422d71bf7d7c05149e103f" +dependencies = [ + "alloy-json-rpc", + "alloy-primitives", + "alloy-transport", + "alloy-transport-http", + "futures", + "pin-project", + "reqwest 0.12.28", + "serde", + "serde_json", + "tokio", + "tokio-stream", + "tower", + "tracing", + "url", + "wasmtimer", +] + +[[package]] +name = "alloy-rpc-types" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7bdcbf9dfd5eea8bfeb078b1d906da8cd3a39c4d4dbe7a628025648e323611f6" +dependencies = [ + "alloy-primitives", + "alloy-rpc-types-eth", + "alloy-serde", + "serde", +] + +[[package]] +name = "alloy-rpc-types-anvil" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0a3100b76987c1b1dc81f3abe592b7edc29e92b1242067a69d65e0030b35cf9" +dependencies = [ + "alloy-primitives", + "alloy-rpc-types-eth", + "alloy-serde", + "serde", +] + +[[package]] +name = "alloy-rpc-types-any" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd720b63f82b457610f2eaaf1f32edf44efffe03ae25d537632e7d23e7929e1a" +dependencies = [ + "alloy-consensus-any", + "alloy-rpc-types-eth", + "alloy-serde", +] + +[[package]] +name = "alloy-rpc-types-eth" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b2dc411f13092f237d2bf6918caf80977fc2f51485f9b90cb2a2f956912c8c9" +dependencies = [ + "alloy-consensus", + "alloy-consensus-any", + "alloy-eips", + "alloy-network-primitives", + "alloy-primitives", + "alloy-rlp", + "alloy-serde", + "alloy-sol-types", + "itertools 0.14.0", + "serde", + "serde_json", + "serde_with", + "thiserror 2.0.18", +] + +[[package]] +name = "alloy-serde" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2ce1e0dbf7720eee747700e300c99aac01b1a95bb93f493a01e78ee28bb1a37" +dependencies = [ + "alloy-primitives", + "serde", + "serde_json", +] + +[[package]] +name = "alloy-signer" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2425c6f314522c78e8198979c8cbf6769362be4da381d4152ea8eefce383535d" +dependencies = [ + "alloy-primitives", + "async-trait", + "auto_impl", + "either", + "elliptic-curve", + "k256", + "thiserror 2.0.18", +] + +[[package]] +name = "alloy-signer-local" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3ecb71ee53d8d9c3fa7bac17542c8116ebc7a9726c91b1bf333ec3d04f5a789" +dependencies = [ + "alloy-consensus", + "alloy-network", + "alloy-primitives", + "alloy-signer", + "async-trait", + "k256", + "rand 0.8.5", + "thiserror 2.0.18", +] + +[[package]] +name = "alloy-sol-macro" +version = "1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab81bab693da9bb79f7a95b64b394718259fdd7e41dceeced4cad57cb71c4f6a" +dependencies = [ + "alloy-sol-macro-expander", + "alloy-sol-macro-input", + "proc-macro-error2", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "alloy-sol-macro-expander" +version = "1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "489f1620bb7e2483fb5819ed01ab6edc1d2f93939dce35a5695085a1afd1d699" +dependencies = [ + "alloy-json-abi", + "alloy-sol-macro-input", + "const-hex", + "heck", + "indexmap 2.13.0", + "proc-macro-error2", + "proc-macro2", + "quote", + "sha3", + "syn 2.0.117", + "syn-solidity", +] + +[[package]] +name = "alloy-sol-macro-input" +version = "1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56cef806ad22d4392c5fc83cf8f2089f988eb99c7067b4e0c6f1971fc1cca318" +dependencies = [ + "alloy-json-abi", + "const-hex", + "dunce", + "heck", + "macro-string", + "proc-macro2", + "quote", + "serde_json", + "syn 2.0.117", + "syn-solidity", +] + +[[package]] +name = "alloy-sol-type-parser" +version = "1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6df77fea9d6a2a75c0ef8d2acbdfd92286cc599983d3175ccdc170d3433d249" +dependencies = [ + "serde", + "winnow", +] + +[[package]] +name = "alloy-sol-types" +version = "1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64612d29379782a5dde6f4b6570d9c756d734d760c0c94c254d361e678a6591f" +dependencies = [ + "alloy-json-abi", + "alloy-primitives", + "alloy-sol-macro", + "serde", +] + +[[package]] +name = "alloy-transport" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa186e560d523d196580c48bf00f1bf62e63041f28ecf276acc22f8b27bb9f53" +dependencies = [ + "alloy-json-rpc", + "auto_impl", + "base64", + "derive_more", + "futures", + "futures-utils-wasm", + "parking_lot", + "serde", + "serde_json", + "thiserror 2.0.18", + "tokio", + "tower", + "tracing", + "url", + "wasmtimer", +] + +[[package]] +name = "alloy-transport-http" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa501ad58dd20acddbfebc65b52e60f05ebf97c52fa40d1b35e91f5e2da0ad0e" +dependencies = [ + "alloy-json-rpc", + "alloy-transport", + "itertools 0.14.0", + "reqwest 0.12.28", + "serde_json", + "tower", + "tracing", + "url", +] + +[[package]] +name = "alloy-trie" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f14b5d9b2c2173980202c6ff470d96e7c5e202c65a9f67884ad565226df7fbb" +dependencies = [ + "alloy-primitives", + "alloy-rlp", + "derive_more", + "nybbles", + "serde", + "smallvec", + "thiserror 2.0.18", + "tracing", +] + +[[package]] +name = "alloy-tx-macros" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fa0c53e8c1e1ef4d01066b01c737fb62fc9397ab52c6e7bb5669f97d281b9bc" +dependencies = [ + "darling 0.21.3", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "anstream" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" + +[[package]] +name = "anstyle-parse" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" +dependencies = [ + "anstyle", + "once_cell_polyfill", + "windows-sys 0.61.2", +] + +[[package]] +name = "ant-evm" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a83cf15203b24ca3fd13f9d481a3d15ca1c384032095f20d5069d8f9bc16afb" +dependencies = [ + "ant-merkle", + "custom_debug", + "evmlib", + "hex", + "libp2p", + "rand 0.8.5", + "ring", + "rmp-serde", + "serde", + "serde_json", + "tempfile", + "thiserror 1.0.69", + "tiny-keccak", + "tracing", + "xor_name", +] + +[[package]] +name = "ant-merkle" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ce758c01a51171003dce5fe999b7c7021e2e7322404884a9b6f9e9f1bd9235d" +dependencies = [ + "sha2", +] + +[[package]] +name = "anyhow" +version = "1.0.102" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" + +[[package]] +name = "approx" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6" +dependencies = [ + "num-traits", +] + +[[package]] +name = "argon2" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c3610892ee6e0cbce8ae2700349fcf8f98adb0dbfbee85aec3c9179d29cc072" +dependencies = [ + "base64ct", + "blake2", + "cpufeatures", + "password-hash", +] + +[[package]] +name = "ark-ff" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b3235cc41ee7a12aaaf2c575a2ad7b46713a8a50bda2fc3b003a04845c05dd6" +dependencies = [ + "ark-ff-asm 0.3.0", + "ark-ff-macros 0.3.0", + "ark-serialize 0.3.0", + "ark-std 0.3.0", + "derivative", + "num-bigint", + "num-traits", + "paste", + "rustc_version 0.3.3", + "zeroize", +] + +[[package]] +name = "ark-ff" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec847af850f44ad29048935519032c33da8aa03340876d351dfab5660d2966ba" +dependencies = [ + "ark-ff-asm 0.4.2", + "ark-ff-macros 0.4.2", + "ark-serialize 0.4.2", + "ark-std 0.4.0", + "derivative", + "digest 0.10.7", + "itertools 0.10.5", + "num-bigint", + "num-traits", + "paste", + "rustc_version 0.4.1", + "zeroize", +] + +[[package]] +name = "ark-ff" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a177aba0ed1e0fbb62aa9f6d0502e9b46dad8c2eab04c14258a1212d2557ea70" +dependencies = [ + "ark-ff-asm 0.5.0", + "ark-ff-macros 0.5.0", + "ark-serialize 0.5.0", + "ark-std 0.5.0", + "arrayvec", + "digest 0.10.7", + "educe", + "itertools 0.13.0", + "num-bigint", + "num-traits", + "paste", + "zeroize", +] + +[[package]] +name = "ark-ff-asm" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db02d390bf6643fb404d3d22d31aee1c4bc4459600aef9113833d17e786c6e44" +dependencies = [ + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-ff-asm" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ed4aa4fe255d0bc6d79373f7e31d2ea147bcf486cba1be5ba7ea85abdb92348" +dependencies = [ + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-ff-asm" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62945a2f7e6de02a31fe400aa489f0e0f5b2502e69f95f853adb82a96c7a6b60" +dependencies = [ + "quote", + "syn 2.0.117", +] + +[[package]] +name = "ark-ff-macros" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db2fd794a08ccb318058009eefdf15bcaaaaf6f8161eb3345f907222bac38b20" +dependencies = [ + "num-bigint", + "num-traits", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-ff-macros" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7abe79b0e4288889c4574159ab790824d0033b9fdcb2a112a3182fac2e514565" +dependencies = [ + "num-bigint", + "num-traits", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-ff-macros" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09be120733ee33f7693ceaa202ca41accd5653b779563608f1234f78ae07c4b3" +dependencies = [ + "num-bigint", + "num-traits", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "ark-serialize" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d6c2b318ee6e10f8c2853e73a83adc0ccb88995aa978d8a3408d492ab2ee671" +dependencies = [ + "ark-std 0.3.0", + "digest 0.9.0", +] + +[[package]] +name = "ark-serialize" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adb7b85a02b83d2f22f89bd5cac66c9c89474240cb6207cb1efc16d098e822a5" +dependencies = [ + "ark-std 0.4.0", + "digest 0.10.7", + "num-bigint", +] + +[[package]] +name = "ark-serialize" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f4d068aaf107ebcd7dfb52bc748f8030e0fc930ac8e360146ca54c1203088f7" +dependencies = [ + "ark-std 0.5.0", + "arrayvec", + "digest 0.10.7", + "num-bigint", +] + +[[package]] +name = "ark-std" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1df2c09229cbc5a028b1d70e00fdb2acee28b1055dfb5ca73eea49c5a25c4e7c" +dependencies = [ + "num-traits", + "rand 0.8.5", +] + +[[package]] +name = "ark-std" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94893f1e0c6eeab764ade8dc4c0db24caf4fe7cbbaafc0eba0a9030f447b5185" +dependencies = [ + "num-traits", + "rand 0.8.5", +] + +[[package]] +name = "ark-std" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "246a225cc6131e9ee4f24619af0f19d67761fff15d7ccc22e42b80846e69449a" +dependencies = [ + "num-traits", + "rand 0.8.5", +] + +[[package]] +name = "array-init" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d62b7694a562cdf5a74227903507c56ab2cc8bdd1f781ed5cb4cf9c9f810bfc" + +[[package]] +name = "arrayref" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" + +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + +[[package]] +name = "asn1-rs" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56624a96882bb8c26d61312ae18cb45868e5a9992ea73c58e45c3101e56a1e60" +dependencies = [ + "asn1-rs-derive", + "asn1-rs-impl", + "displaydoc", + "nom", + "num-traits", + "rusticata-macros", + "thiserror 2.0.18", + "time", +] + +[[package]] +name = "asn1-rs-derive" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3109e49b1e4909e9db6515a30c633684d68cdeaa252f215214cb4fa1a5bfee2c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", + "synstructure", +] + +[[package]] +name = "asn1-rs-impl" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b18050c2cd6fe86c3a76584ef5e0baf286d038cda203eb6223df2cc413565f7" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "async-stream" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b5a71a6f37880a80d1d7f19efd781e4b5de42c88f0722cc13bcb6cc2cfe8476" +dependencies = [ + "async-stream-impl", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-stream-impl" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "async-trait" +version = "0.1.89" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "asynchronous-codec" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a860072022177f903e59730004fb5dc13db9275b79bb2aef7ba8ce831956c233" +dependencies = [ + "bytes", + "futures-sink", + "futures-util", + "memchr", + "pin-project-lite", +] + +[[package]] +name = "atomic-polyfill" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cf2bce30dfe09ef0bfaef228b9d414faaf7e563035494d7fe092dba54b300f4" +dependencies = [ + "critical-section", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "auto_impl" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffdcb70bdbc4d478427380519163274ac86e52916e10f0a8889adf0f96d3fee7" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "autocfg" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" + +[[package]] +name = "aws-lc-rs" +version = "1.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94bffc006df10ac2a68c83692d734a465f8ee6c5b384d8545a636f81d858f4bf" +dependencies = [ + "aws-lc-sys", + "zeroize", +] + +[[package]] +name = "aws-lc-sys" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4321e568ed89bb5a7d291a7f37997c2c0df89809d7b6d12062c81ddb54aa782e" +dependencies = [ + "cc", + "cmake", + "dunce", + "fs_extra", +] + +[[package]] +name = "axum" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b52af3cb4058c895d37317bb27508dccc8e5f2d39454016b297bf4a400597b8" +dependencies = [ + "axum-core", + "bytes", + "form_urlencoded", + "futures-util", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-util", + "itoa", + "matchit", + "memchr", + "mime", + "percent-encoding", + "pin-project-lite", + "serde_core", + "serde_json", + "serde_path_to_error", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tower", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "axum-core" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08c78f31d7b1291f7ee735c1c6780ccde7785daae9a9206026862dab7d8792d1" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "http-body-util", + "mime", + "pin-project-lite", + "sync_wrapper", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "backtrace" +version = "0.3.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb531853791a215d7c62a30daf0dde835f381ab5de4589cfe7c649d2cbe92bd6" +dependencies = [ + "addr2line", + "cfg-if", + "libc", + "miniz_oxide", + "object", + "rustc-demangle", + "windows-link", +] + +[[package]] +name = "base-x" +version = "0.2.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cbbc9d0964165b47557570cce6c952866c2678457aca742aafc9fb771d30270" + +[[package]] +name = "base16ct" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" + +[[package]] +name = "base256emoji" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5e9430d9a245a77c92176e649af6e275f20839a48389859d1661e9a128d077c" +dependencies = [ + "const-str", + "match-lookup", +] + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "base64ct" +version = "1.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06" + +[[package]] +name = "bincode" +version = "1.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" +dependencies = [ + "serde", +] + +[[package]] +name = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + +[[package]] +name = "bitcoin-io" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dee39a0ee5b4095224a0cfc6bf4cc1baf0f9624b96b367e53b66d974e51d953" + +[[package]] +name = "bitcoin_hashes" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26ec84b80c482df901772e931a9a681e26a1b9ee2302edeff23cb30328745c8b" +dependencies = [ + "bitcoin-io", + "hex-conservative", +] + +[[package]] +name = "bitflags" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af" +dependencies = [ + "serde_core", +] + +[[package]] +name = "bitvec" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" +dependencies = [ + "funty", + "radium", + "tap", + "wyz", +] + +[[package]] +name = "blake2" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46502ad458c9a52b69d4d4d32775c788b7a1b85e8bc9d482d92250fc0e3f8efe" +dependencies = [ + "digest 0.10.7", +] + +[[package]] +name = "blake3" +version = "1.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2468ef7d57b3fb7e16b576e8377cdbde2320c60e1491e961d11da40fc4f02a2d" +dependencies = [ + "arrayref", + "arrayvec", + "cc", + "cfg-if", + "constant_time_eq", + "cpufeatures", +] + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "blst" +version = "0.3.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dcdb4c7013139a150f9fc55d123186dbfaba0d912817466282c73ac49e71fb45" +dependencies = [ + "cc", + "glob", + "threadpool", + "zeroize", +] + +[[package]] +name = "borsh" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1da5ab77c1437701eeff7c88d968729e7766172279eab0676857b3d63af7a6f" +dependencies = [ + "borsh-derive", + "cfg_aliases", +] + +[[package]] +name = "borsh-derive" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0686c856aa6aac0c4498f936d7d6a02df690f614c03e4d906d1018062b5c5e2c" +dependencies = [ + "once_cell", + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "brotli" +version = "3.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1a0b1dbcc8ae29329621f8d4f0d835787c1c38bb1401979b49d13b0b305ff68" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", +] + +[[package]] +name = "brotli-decompressor" +version = "2.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "503a0bcf59056a66c55d8eefd05e9c0f00f9c9cdddbb6bd499623ce49100da43" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", +] + +[[package]] +name = "bs58" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "bumpalo" +version = "3.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb" + +[[package]] +name = "byte-slice-cast" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7575182f7272186991736b70173b0ea045398f984bf5ebbb3804736ce1330c9d" + +[[package]] +name = "bytemuck" +version = "1.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" +dependencies = [ + "serde", +] + +[[package]] +name = "c-kzg" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6648ed1e4ea8e8a1a4a2c78e1cda29a3fd500bc622899c340d8525ea9a76b24a" +dependencies = [ + "blst", + "cc", + "glob", + "hex", + "libc", + "once_cell", + "serde", +] + +[[package]] +name = "cc" +version = "1.2.57" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a0dd1ca384932ff3641c8718a02769f1698e7563dc6974ffd03346116310423" +dependencies = [ + "find-msvc-tools", + "jobserver", + "libc", + "shlex", +] + +[[package]] +name = "cesu8" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + +[[package]] +name = "chacha20" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3613f74bd2eac03dad61bd53dbe620703d4371614fe0bc3b9f04dd36fe4e818" +dependencies = [ + "cfg-if", + "cipher", + "cpufeatures", +] + +[[package]] +name = "chacha20poly1305" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10cd79432192d1c0f4e1a0fef9527696cc039165d729fb41b3f4f4f354c2dc35" +dependencies = [ + "aead", + "chacha20", + "cipher", + "poly1305", + "zeroize", +] + +[[package]] +name = "chrono" +version = "0.4.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0" +dependencies = [ + "iana-time-zone", + "js-sys", + "num-traits", + "serde", + "wasm-bindgen", + "windows-link", +] + +[[package]] +name = "cipher" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" +dependencies = [ + "crypto-common", + "inout", + "zeroize", +] + +[[package]] +name = "clap" +version = "4.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b193af5b67834b676abd72466a96c1024e6a6ad978a1f484bd90b85c94041351" +dependencies = [ + "clap_builder", + "clap_derive", +] + +[[package]] +name = "clap_builder" +version = "4.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "714a53001bf66416adb0e2ef5ac857140e7dc3a0c48fb28b2f10762fc4b5069f" +dependencies = [ + "anstream", + "anstyle", + "clap_lex", + "strsim", +] + +[[package]] +name = "clap_derive" +version = "4.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1110bd8a634a1ab8cb04345d8d878267d57c3cf1b38d91b71af6686408bbca6a" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "clap_lex" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9" + +[[package]] +name = "cmake" +version = "0.1.57" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75443c44cd6b379beb8c5b45d85d0773baf31cce901fe7bb252f4eff3008ef7d" +dependencies = [ + "cc", +] + +[[package]] +name = "cobs" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fa961b519f0b462e3a3b4a34b64d119eeaca1d59af726fe450bbba07a9fc0a1" +dependencies = [ + "thiserror 2.0.18", +] + +[[package]] +name = "color-eyre" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5920befb47832a6d61ee3a3a846565cfa39b331331e68a3b1d1116630f2f26d" +dependencies = [ + "backtrace", + "color-spantrace", + "eyre", + "indenter", + "once_cell", + "owo-colors", + "tracing-error", +] + +[[package]] +name = "color-spantrace" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8b88ea9df13354b55bc7234ebcce36e6ef896aca2e42a15de9e10edce01b427" +dependencies = [ + "once_cell", + "owo-colors", + "tracing-core", + "tracing-error", +] + +[[package]] +name = "colorchoice" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570" + +[[package]] +name = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "const-hex" +version = "1.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "531185e432bb31db1ecda541e9e7ab21468d4d844ad7505e0546a49b4945d49b" +dependencies = [ + "cfg-if", + "cpufeatures", + "proptest", + "serde_core", +] + +[[package]] +name = "const-oid" +version = "0.9.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" + +[[package]] +name = "const-str" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f421161cb492475f1661ddc9815a745a1c894592070661180fdec3d4872e9c3" + +[[package]] +name = "const_format" +version = "0.2.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7faa7469a93a566e9ccc1c73fe783b4a65c274c5ace346038dca9c39fe0030ad" +dependencies = [ + "const_format_proc_macros", +] + +[[package]] +name = "const_format_proc_macros" +version = "0.2.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d57c2eccfb16dbac1f4e61e206105db5820c9d26c3c472bc17c774259ef7744" +dependencies = [ + "proc-macro2", + "quote", + "unicode-xid", +] + +[[package]] +name = "constant_time_eq" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b" + +[[package]] +name = "convert_case" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "633458d4ef8c78b72454de2d54fd6ab2e60f9e02be22f3c6104cdc8a4e0fceb9" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "core-foundation" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "core2" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b49ba7ef1ad6107f8824dbe97de947cbaac53c44e7f9756a1fba0d37c1eec505" +dependencies = [ + "memchr", +] + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "crc" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5eb8a2a1cd12ab0d987a5d5e825195d372001a4094a0376319d5a0ad71c1ba0d" +dependencies = [ + "crc-catalog", +] + +[[package]] +name = "crc-catalog" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5" + +[[package]] +name = "crc32fast" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "critical-section" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "790eea4361631c5e7d22598ecd5723ff611904e3344ce8720784c93e3d83d40b" + +[[package]] +name = "crossbeam-channel" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-deque" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-queue" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f58bbc28f91df819d0aa2a2c00cd19754769c2fad90579b3592b1c9ba7a3115" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + +[[package]] +name = "crunchy" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" + +[[package]] +name = "crypto-bigint" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" +dependencies = [ + "generic-array", + "rand_core 0.6.4", + "subtle", + "zeroize", +] + +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "rand_core 0.6.4", + "typenum", +] + +[[package]] +name = "ctr" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835" +dependencies = [ + "cipher", +] + +[[package]] +name = "curve25519-dalek" +version = "4.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" +dependencies = [ + "cfg-if", + "cpufeatures", + "curve25519-dalek-derive", + "digest 0.10.7", + "fiat-crypto", + "rustc_version 0.4.1", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek-derive" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "custom_debug" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2da7d1ad9567b3e11e877f1d7a0fa0360f04162f94965fc4448fbed41a65298e" +dependencies = [ + "custom_debug_derive", +] + +[[package]] +name = "custom_debug_derive" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a707ceda8652f6c7624f2be725652e9524c815bf3b9d55a0b2320be2303f9c11" +dependencies = [ + "darling 0.20.11", + "proc-macro2", + "quote", + "syn 2.0.117", + "synstructure", +] + +[[package]] +name = "darling" +version = "0.20.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee" +dependencies = [ + "darling_core 0.20.11", + "darling_macro 0.20.11", +] + +[[package]] +name = "darling" +version = "0.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9cdf337090841a411e2a7f3deb9187445851f91b309c0c0a29e05f74a00a48c0" +dependencies = [ + "darling_core 0.21.3", + "darling_macro 0.21.3", +] + +[[package]] +name = "darling" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d" +dependencies = [ + "darling_core 0.23.0", + "darling_macro 0.23.0", +] + +[[package]] +name = "darling_core" +version = "0.20.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 2.0.117", +] + +[[package]] +name = "darling_core" +version = "0.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1247195ecd7e3c85f83c8d2a366e4210d588e802133e1e355180a9870b517ea4" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "serde", + "strsim", + "syn 2.0.117", +] + +[[package]] +name = "darling_core" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0" +dependencies = [ + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 2.0.117", +] + +[[package]] +name = "darling_macro" +version = "0.20.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead" +dependencies = [ + "darling_core 0.20.11", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "darling_macro" +version = "0.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d38308df82d1080de0afee5d069fa14b0326a88c14f15c5ccda35b4a6c414c81" +dependencies = [ + "darling_core 0.21.3", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "darling_macro" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d" +dependencies = [ + "darling_core 0.23.0", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "dashmap" +version = "6.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5041cc499144891f3790297212f32a74fb938e5136a14943f338ef9e0ae276cf" +dependencies = [ + "cfg-if", + "crossbeam-utils", + "hashbrown 0.14.5", + "lock_api", + "once_cell", + "parking_lot_core", +] + +[[package]] +name = "data-encoding" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7a1e2f27636f116493b8b860f5546edb47c8d8f8ea73e1d2a20be88e28d1fea" + +[[package]] +name = "data-encoding-macro" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8142a83c17aa9461d637e649271eae18bf2edd00e91f2e105df36c3c16355bdb" +dependencies = [ + "data-encoding", + "data-encoding-macro-internal", +] + +[[package]] +name = "data-encoding-macro-internal" +version = "0.1.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ab67060fc6b8ef687992d439ca0fa36e7ed17e9a0b16b25b601e8757df720de" +dependencies = [ + "data-encoding", + "syn 2.0.117", +] + +[[package]] +name = "der" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb" +dependencies = [ + "const-oid", + "zeroize", +] + +[[package]] +name = "der-parser" +version = "10.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07da5016415d5a3c4dd39b11ed26f915f52fc4e0dc197d87908bc916e51bc1a6" +dependencies = [ + "asn1-rs", + "displaydoc", + "nom", + "num-bigint", + "num-traits", + "rusticata-macros", +] + +[[package]] +name = "deranged" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" +dependencies = [ + "powerfmt", + "serde_core", +] + +[[package]] +name = "derivative" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "derive_more" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb" +dependencies = [ + "convert_case", + "proc-macro2", + "quote", + "rustc_version 0.4.1", + "syn 2.0.117", + "unicode-xid", +] + +[[package]] +name = "digest" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" +dependencies = [ + "generic-array", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "const-oid", + "crypto-common", + "subtle", +] + +[[package]] +name = "directories" +version = "5.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a49173b84e034382284f27f1af4dcbbd231ffa358c0fe316541a7337f376a35" +dependencies = [ + "dirs-sys 0.4.1", +] + +[[package]] +name = "dirs" +version = "5.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225" +dependencies = [ + "dirs-sys 0.4.1", +] + +[[package]] +name = "dirs" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e" +dependencies = [ + "dirs-sys 0.5.0", +] + +[[package]] +name = "dirs-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c" +dependencies = [ + "libc", + "option-ext", + "redox_users 0.4.6", + "windows-sys 0.48.0", +] + +[[package]] +name = "dirs-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab" +dependencies = [ + "libc", + "option-ext", + "redox_users 0.5.2", + "windows-sys 0.61.2", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "doxygen-rs" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "415b6ec780d34dcf624666747194393603d0373b7141eef01d12ee58881507d9" +dependencies = [ + "phf", +] + +[[package]] +name = "dtoa" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c3cf4824e2d5f025c7b531afcb2325364084a16806f6d47fbc1f5fbd9960590" + +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + +[[package]] +name = "dyn-clone" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" + +[[package]] +name = "ecdsa" +version = "0.16.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca" +dependencies = [ + "der", + "digest 0.10.7", + "elliptic-curve", + "rfc6979", + "serdect", + "signature", + "spki", +] + +[[package]] +name = "ed25519" +version = "2.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53" +dependencies = [ + "pkcs8", + "signature", +] + +[[package]] +name = "ed25519-dalek" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70e796c081cee67dc755e1a36a0a172b897fab85fc3f6bc48307991f64e4eca9" +dependencies = [ + "curve25519-dalek", + "ed25519", + "rand_core 0.6.4", + "serde", + "sha2", + "subtle", + "zeroize", +] + +[[package]] +name = "educe" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d7bc049e1bd8cdeb31b68bbd586a9464ecf9f3944af3958a7a9d0f8b9799417" +dependencies = [ + "enum-ordinalize", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "either" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" +dependencies = [ + "serde", +] + +[[package]] +name = "elliptic-curve" +version = "0.13.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47" +dependencies = [ + "base16ct", + "crypto-bigint", + "digest 0.10.7", + "ff", + "generic-array", + "group", + "hkdf", + "pkcs8", + "rand_core 0.6.4", + "sec1", + "serdect", + "subtle", + "zeroize", +] + +[[package]] +name = "embedded-io" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef1a6892d9eef45c8fa6b9e0086428a2cca8491aca8f787c534a3d6d0bcb3ced" + +[[package]] +name = "embedded-io" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edd0f118536f44f5ccd48bcb8b111bdc3de888b58c74639dfb034a357d0f206d" + +[[package]] +name = "enum-ordinalize" +version = "4.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a1091a7bb1f8f2c4b28f1fe2cef4980ca2d410a3d727d67ecc3178c9b0800f0" +dependencies = [ + "enum-ordinalize-derive", +] + +[[package]] +name = "enum-ordinalize-derive" +version = "4.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ca9601fb2d62598ee17836250842873a413586e5d7ed88b356e38ddbb0ec631" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "evmlib" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0830ac5a8d0e13e2275782c6375464ea49f255c0b59ccba4ca11f8fb7d67cea5" +dependencies = [ + "alloy", + "exponential-backoff", + "hex", + "rand 0.8.5", + "serde", + "serde_with", + "thiserror 1.0.69", + "tokio", + "tracing", +] + +[[package]] +name = "exponential-backoff" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "020662aa57307d8884be79fca464cce073745cfe6ac70805770972113ca6ee95" +dependencies = [ + "fastrand", +] + +[[package]] +name = "eyre" +version = "0.6.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cd915d99f24784cdc19fd37ef22b97e3ff0ae756c7e492e9fbfe897d61e2aec" +dependencies = [ + "indenter", + "once_cell", +] + +[[package]] +name = "fallible-iterator" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649" + +[[package]] +name = "fallible-streaming-iterator" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a" + +[[package]] +name = "fastrand" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" + +[[package]] +name = "fastrlp" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "139834ddba373bbdd213dffe02c8d110508dcf1726c2be27e8d1f7d7e1856418" +dependencies = [ + "arrayvec", + "auto_impl", + "bytes", +] + +[[package]] +name = "fastrlp" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce8dba4714ef14b8274c371879b175aa55b16b30f269663f19d576f380018dc4" +dependencies = [ + "arrayvec", + "auto_impl", + "bytes", +] + +[[package]] +name = "ff" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0b50bfb653653f9ca9095b427bed08ab8d75a137839d9ad64eb11810d5b6393" +dependencies = [ + "rand_core 0.6.4", + "subtle", +] + +[[package]] +name = "fiat-crypto" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" + +[[package]] +name = "filetime" +version = "0.2.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f98844151eee8917efc50bd9e8318cb963ae8b297431495d3f758616ea5c57db" +dependencies = [ + "cfg-if", + "libc", + "libredox", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + +[[package]] +name = "fips203" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8bdb6454f692ca2a2b45cd554c6828c639d7f9c968cf83a678899ec4443a280" +dependencies = [ + "rand_core 0.6.4", + "sha3", + "subtle", + "zeroize", +] + +[[package]] +name = "fips204" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9fb5a367b9846933e271a3c2a992930743f82ae5e8cb7faa780715a80fa0b15" +dependencies = [ + "rand_core 0.6.4", + "sha2", + "sha3", + "zeroize", +] + +[[package]] +name = "fips205" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f5626bf5534df4ebdbd2536465d7eaa8a9dc2cdeb7e036e0ecf291dcc80ffb6" +dependencies = [ + "rand_core 0.6.4", + "sha2", + "sha3", + "zeroize", +] + +[[package]] +name = "fixed-hash" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "835c052cb0c08c1acf6ffd71c022172e18723949c8282f2b9f27efbc51e64534" +dependencies = [ + "byteorder", + "rand 0.8.5", + "rustc-hex", + "static_assertions", +] + +[[package]] +name = "flate2" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "fs_extra" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" + +[[package]] +name = "funty" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" + +[[package]] +name = "futures" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b147ee9d1f6d097cef9ce628cd2ee62288d963e16fb287bd9286455b241382d" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-bounded" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91f328e7fb845fc832912fb6a34f40cf6d1888c92f974d1893a54e97b5ff542e" +dependencies = [ + "futures-timer", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" + +[[package]] +name = "futures-executor" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718" + +[[package]] +name = "futures-macro" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "futures-sink" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893" + +[[package]] +name = "futures-task" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393" + +[[package]] +name = "futures-timer" +version = "3.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f288b0a4f20f9a56b5d1da57e2227c661b7b16168e2f72365f57b63326e29b24" + +[[package]] +name = "futures-util" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "futures-utils-wasm" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42012b0f064e01aa58b545fe3727f90f7dd4020f4a3ea735b50344965f5a57e9" + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", + "zeroize", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi", + "wasm-bindgen", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "r-efi 5.3.0", + "wasip2", + "wasm-bindgen", +] + +[[package]] +name = "getrandom" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555" +dependencies = [ + "cfg-if", + "libc", + "r-efi 6.0.0", + "wasip2", + "wasip3", +] + +[[package]] +name = "ghash" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0d8a4362ccb29cb0b265253fb0a2728f592895ee6854fd9bc13f2ffda266ff1" +dependencies = [ + "opaque-debug", + "polyval", +] + +[[package]] +name = "gimli" +version = "0.32.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e629b9b98ef3dd8afe6ca2bd0f89306cec16d43d907889945bc5d6687f2f13c7" + +[[package]] +name = "glob" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280" + +[[package]] +name = "group" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" +dependencies = [ + "ff", + "rand_core 0.6.4", + "subtle", +] + +[[package]] +name = "half" +version = "1.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b43ede17f21864e81be2fa654110bf1e793774238d86ef8555c37e6519c0403" + +[[package]] +name = "hash32" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0c35f58762feb77d74ebe43bdbc3210f09be9fe6742234d573bacc26ed92b67" +dependencies = [ + "byteorder", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "hashbrown" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" + +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash 0.1.5", +] + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +dependencies = [ + "allocator-api2", + "equivalent", + "foldhash 0.2.0", + "serde", + "serde_core", +] + +[[package]] +name = "hashlink" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7382cf6263419f2d8df38c55d7da83da5c18aef87fc7a7fc1fb1e344edfe14c1" +dependencies = [ + "hashbrown 0.15.5", +] + +[[package]] +name = "heapless" +version = "0.7.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdc6457c0eb62c71aac4bc17216026d8410337c4126773b9c5daba343f17964f" +dependencies = [ + "atomic-polyfill", + "hash32", + "rustc_version 0.4.1", + "serde", + "spin", + "stable_deref_trait", +] + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "heed" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a56c94661ddfb51aa9cdfbf102cfcc340aa69267f95ebccc4af08d7c530d393" +dependencies = [ + "bitflags", + "byteorder", + "heed-traits", + "heed-types", + "libc", + "lmdb-master-sys", + "once_cell", + "page_size", + "serde", + "synchronoise", + "url", +] + +[[package]] +name = "heed-traits" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb3130048d404c57ce5a1ac61a903696e8fcde7e8c2991e9fcfc1f27c3ef74ff" + +[[package]] +name = "heed-types" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c255bdf46e07fb840d120a36dcc81f385140d7191c76a7391672675c01a55d" +dependencies = [ + "bincode", + "byteorder", + "heed-traits", + "serde", + "serde_json", +] + +[[package]] +name = "hermit-abi" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "hex-conservative" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fda06d18ac606267c40c04e41b9947729bf8b9efe74bd4e82b61a5f26a510b9f" +dependencies = [ + "arrayvec", +] + +[[package]] +name = "hkdf" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" +dependencies = [ + "hmac", +] + +[[package]] +name = "hmac" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest 0.10.7", +] + +[[package]] +name = "hpke" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f65d16b699dd1a1fa2d851c970b0c971b388eeeb40f744252b8de48860980c8f" +dependencies = [ + "aead", + "aes-gcm", + "chacha20poly1305", + "digest 0.10.7", + "generic-array", + "hkdf", + "hmac", + "p256", + "rand_core 0.9.5", + "sha2", + "subtle", + "x25519-dalek", + "zeroize", +] + +[[package]] +name = "http" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "httpdate" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" + +[[package]] +name = "hyper" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ab2d4f250c3d7b1c9fcdff1cece94ea4e2dfbec68614f7b87cb205f24ca9d11" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "http", + "http-body", + "httparse", + "httpdate", + "itoa", + "pin-project-lite", + "pin-utils", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.27.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58" +dependencies = [ + "http", + "hyper", + "hyper-util", + "rustls", + "rustls-pki-types", + "tokio", + "tokio-rustls", + "tower-service", + "webpki-roots", +] + +[[package]] +name = "hyper-util" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" +dependencies = [ + "base64", + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "hyper", + "ipnet", + "libc", + "percent-encoding", + "pin-project-lite", + "socket2 0.6.3", + "tokio", + "tower-service", + "tracing", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core 0.62.2", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "icu_collections" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43" +dependencies = [ + "displaydoc", + "potential_utf", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edba7861004dd3714265b4db54a3c390e880ab658fec5f7db895fae2046b5bb6" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a" + +[[package]] +name = "icu_properties" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "020bfc02fe870ec3a66d93e677ccca0562506e5872c650f893269e08615d74ec" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "616c294cf8d725c6afcd8f55abc17c56464ef6211f9ed59cccffe534129c77af" + +[[package]] +name = "icu_provider" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85962cf0ce02e1e0a629cc34e7ca3e373ce20dda4c4d7294bbd0bf1fdb59e614" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "id-arena" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "impl-codec" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba6a270039626615617f3f36d15fc827041df3b78c439da2cadfa47455a77f2f" +dependencies = [ + "parity-scale-codec", +] + +[[package]] +name = "impl-trait-for-tuples" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0eb5a3343abf848c0984fe4604b2b105da9539376e24fc0a3b0007411ae4fd9" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "indenter" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "964de6e86d545b246d84badc0fef527924ace5134f30641c203ef52ba83f58d5" + +[[package]] +name = "indexmap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", + "serde", +] + +[[package]] +name = "indexmap" +version = "2.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017" +dependencies = [ + "equivalent", + "hashbrown 0.16.1", + "serde", + "serde_core", +] + +[[package]] +name = "inout" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" +dependencies = [ + "generic-array", +] + +[[package]] +name = "ipnet" +version = "2.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2" + +[[package]] +name = "iri-string" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c91338f0783edbd6195decb37bae672fd3b165faffb89bf7b9e6942f8b1a731a" +dependencies = [ + "memchr", + "serde", +] + +[[package]] +name = "is_terminal_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" + +[[package]] +name = "itertools" +version = "0.10.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" +dependencies = [ + "either", +] + +[[package]] +name = "itertools" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" +dependencies = [ + "either", +] + +[[package]] +name = "itertools" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2" + +[[package]] +name = "jni" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" +dependencies = [ + "cesu8", + "cfg-if", + "combine", + "jni-sys", + "log", + "thiserror 1.0.69", + "walkdir", + "windows-sys 0.45.0", +] + +[[package]] +name = "jni-sys" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" + +[[package]] +name = "jobserver" +version = "0.1.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33" +dependencies = [ + "getrandom 0.3.4", + "libc", +] + +[[package]] +name = "js-sys" +version = "0.3.91" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b49715b7073f385ba4bc528e5747d02e66cb39c6146efb66b781f131f0fb399c" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "k256" +version = "0.13.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6e3919bbaa2945715f0bb6d3934a173d1e9a59ac23767fbaaef277265a7411b" +dependencies = [ + "cfg-if", + "ecdsa", + "elliptic-curve", + "once_cell", + "serdect", + "sha2", +] + +[[package]] +name = "keccak" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb26cec98cce3a3d96cbb7bced3c4b16e3d13f27ec56dbd62cbc8f39cfb9d653" +dependencies = [ + "cpufeatures", +] + +[[package]] +name = "keccak-asm" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b646a74e746cd25045aa0fd42f4f7f78aa6d119380182c7e63a5593c4ab8df6f" +dependencies = [ + "digest 0.10.7", + "sha3-asm", +] + +[[package]] +name = "keyring" +version = "3.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eebcc3aff044e5944a8fbaf69eb277d11986064cba30c468730e8b9909fb551c" +dependencies = [ + "log", + "zeroize", +] + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + +[[package]] +name = "leb128fmt" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" + +[[package]] +name = "libc" +version = "0.2.183" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5b646652bf6661599e1da8901b3b9522896f01e736bad5f723fe7a3a27f899d" + +[[package]] +name = "libm" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" + +[[package]] +name = "libp2p" +version = "0.56.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce71348bf5838e46449ae240631117b487073d5f347c06d434caddcb91dceb5a" +dependencies = [ + "bytes", + "either", + "futures", + "futures-timer", + "getrandom 0.2.17", + "libp2p-allow-block-list", + "libp2p-connection-limits", + "libp2p-core", + "libp2p-identify", + "libp2p-identity", + "libp2p-kad", + "libp2p-metrics", + "libp2p-swarm", + "multiaddr", + "pin-project", + "rw-stream-sink", + "thiserror 2.0.18", +] + +[[package]] +name = "libp2p-allow-block-list" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d16ccf824ee859ca83df301e1c0205270206223fd4b1f2e512a693e1912a8f4a" +dependencies = [ + "libp2p-core", + "libp2p-identity", + "libp2p-swarm", +] + +[[package]] +name = "libp2p-connection-limits" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a18b8b607cf3bfa2f8c57db9c7d8569a315d5cc0a282e6bfd5ebfc0a9840b2a0" +dependencies = [ + "libp2p-core", + "libp2p-identity", + "libp2p-swarm", +] + +[[package]] +name = "libp2p-core" +version = "0.43.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "249128cd37a2199aff30a7675dffa51caf073b51aa612d2f544b19932b9aebca" +dependencies = [ + "either", + "fnv", + "futures", + "futures-timer", + "libp2p-identity", + "multiaddr", + "multihash", + "multistream-select", + "parking_lot", + "pin-project", + "quick-protobuf", + "rand 0.8.5", + "rw-stream-sink", + "thiserror 2.0.18", + "tracing", + "unsigned-varint 0.8.0", + "web-time", +] + +[[package]] +name = "libp2p-identify" +version = "0.47.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ab792a8b68fdef443a62155b01970c81c3aadab5e659621b063ef252a8e65e8" +dependencies = [ + "asynchronous-codec", + "either", + "futures", + "futures-bounded", + "futures-timer", + "libp2p-core", + "libp2p-identity", + "libp2p-swarm", + "quick-protobuf", + "quick-protobuf-codec", + "smallvec", + "thiserror 2.0.18", + "tracing", +] + +[[package]] +name = "libp2p-identity" +version = "0.2.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0c7892c221730ba55f7196e98b0b8ba5e04b4155651736036628e9f73ed6fc3" +dependencies = [ + "bs58", + "ed25519-dalek", + "hkdf", + "multihash", + "quick-protobuf", + "rand 0.8.5", + "sha2", + "thiserror 2.0.18", + "tracing", + "zeroize", +] + +[[package]] +name = "libp2p-kad" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13d3fd632a5872ec804d37e7413ceea20588f69d027a0fa3c46f82574f4dee60" +dependencies = [ + "asynchronous-codec", + "bytes", + "either", + "fnv", + "futures", + "futures-bounded", + "futures-timer", + "libp2p-core", + "libp2p-identity", + "libp2p-swarm", + "quick-protobuf", + "quick-protobuf-codec", + "rand 0.8.5", + "sha2", + "smallvec", + "thiserror 2.0.18", + "tracing", + "uint 0.10.0", + "web-time", +] + +[[package]] +name = "libp2p-metrics" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "805a555148522cb3414493a5153451910cb1a146c53ffbf4385708349baf62b7" +dependencies = [ + "futures", + "libp2p-core", + "libp2p-identify", + "libp2p-identity", + "libp2p-kad", + "libp2p-swarm", + "pin-project", + "prometheus-client", + "web-time", +] + +[[package]] +name = "libp2p-swarm" +version = "0.47.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce88c6c4bf746c8482480345ea3edfd08301f49e026889d1cbccfa1808a9ed9e" +dependencies = [ + "either", + "fnv", + "futures", + "futures-timer", + "hashlink", + "libp2p-core", + "libp2p-identity", + "multistream-select", + "rand 0.8.5", + "smallvec", + "tracing", + "web-time", +] + +[[package]] +name = "libredox" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1744e39d1d6a9948f4f388969627434e31128196de472883b39f148769bfe30a" +dependencies = [ + "bitflags", + "libc", + "plain", + "redox_syscall 0.7.3", +] + +[[package]] +name = "libsqlite3-sys" +version = "0.35.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "133c182a6a2c87864fe97778797e46c7e999672690dc9fa3ee8e241aa4a9c13f" +dependencies = [ + "cc", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "litemap" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77" + +[[package]] +name = "lmdb-master-sys" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "864808e0b19fb6dd3b70ba94ee671b82fce17554cf80aeb0a155c65bb08027df" +dependencies = [ + "cc", + "doxygen-rs", + "libc", +] + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" + +[[package]] +name = "lru" +version = "0.16.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1dc47f592c06f33f8e3aea9591776ec7c9f9e4124778ff8a3c3b87159f7e593" +dependencies = [ + "hashbrown 0.16.1", +] + +[[package]] +name = "lru-slab" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" + +[[package]] +name = "macro-string" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b27834086c65ec3f9387b096d66e99f221cf081c2b738042aa252bcd41204e3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "match-lookup" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "757aee279b8bdbb9f9e676796fd459e4207a1f986e87886700abf589f5abf771" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "matchers" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" +dependencies = [ + "regex-automata", +] + +[[package]] +name = "matchit" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3" + +[[package]] +name = "matrixmultiply" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a06de3016e9fae57a36fd14dba131fccf49f74b40b7fbdb472f96e361ec71a08" +dependencies = [ + "autocfg", + "rawpointer", +] + +[[package]] +name = "memchr" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a69bcab0ad47271a0234d9422b131806bf3968021e5dc9328caf2d4cd58557fc" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "multiaddr" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe6351f60b488e04c1d21bc69e56b89cb3f5e8f5d22557d6e8031bdfd79b6961" +dependencies = [ + "arrayref", + "byteorder", + "data-encoding", + "libp2p-identity", + "multibase", + "multihash", + "percent-encoding", + "serde", + "static_assertions", + "unsigned-varint 0.8.0", + "url", +] + +[[package]] +name = "multibase" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8694bb4835f452b0e3bb06dbebb1d6fc5385b6ca1caf2e55fd165c042390ec77" +dependencies = [ + "base-x", + "base256emoji", + "data-encoding", + "data-encoding-macro", +] + +[[package]] +name = "multihash" +version = "0.19.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b430e7953c29dd6a09afc29ff0bb69c6e306329ee6794700aee27b76a1aea8d" +dependencies = [ + "core2", + "unsigned-varint 0.8.0", +] + +[[package]] +name = "multistream-select" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea0df8e5eec2298a62b326ee4f0d7fe1a6b90a09dfcf9df37b38f947a8c42f19" +dependencies = [ + "bytes", + "futures", + "log", + "pin-project", + "smallvec", + "unsigned-varint 0.7.2", +] + +[[package]] +name = "nalgebra" +version = "0.33.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26aecdf64b707efd1310e3544d709c5c0ac61c13756046aaaba41be5c4f66a3b" +dependencies = [ + "approx", + "matrixmultiply", + "num-complex", + "num-rational", + "num-traits", + "rand 0.8.5", + "rand_distr", + "simba", + "typenum", +] + +[[package]] +name = "nix" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" +dependencies = [ + "bitflags", + "cfg-if", + "cfg_aliases", + "libc", + "memoffset", +] + +[[package]] +name = "nom" +version = "7.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" +dependencies = [ + "memchr", + "minimal-lexical", +] + +[[package]] +name = "nu-ansi-term" +version = "0.50.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "num-bigint" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-complex" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-conv" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf97ec579c3c42f953ef76dbf8d55ac91fb219dde70e49aa4a6b7d74e9919050" + +[[package]] +name = "num-integer" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-rational" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824" +dependencies = [ + "num-bigint", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", + "libm", +] + +[[package]] +name = "num_cpus" +version = "1.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b" +dependencies = [ + "hermit-abi", + "libc", +] + +[[package]] +name = "num_enum" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "num_threads" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c7398b9c8b70908f6371f47ed36737907c87c52af34c268fed0bf0ceb92ead9" +dependencies = [ + "libc", +] + +[[package]] +name = "nybbles" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d49ff0c0d00d4a502b39df9af3a525e1efeb14b9dabb5bb83335284c1309210" +dependencies = [ + "alloy-rlp", + "cfg-if", + "proptest", + "ruint", + "serde", + "smallvec", +] + +[[package]] +name = "object" +version = "0.37.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff76201f031d8863c38aa7f905eca4f53abbfa15f609db4277d44cd8938f33fe" +dependencies = [ + "memchr", +] + +[[package]] +name = "oid-registry" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12f40cff3dde1b6087cc5d5f5d4d65712f34016a03ed60e9c08dcc392736b5b7" +dependencies = [ + "asn1-rs", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "once_cell_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" + +[[package]] +name = "opaque-debug" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" + +[[package]] +name = "openssl-probe" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" + +[[package]] +name = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + +[[package]] +name = "owo-colors" +version = "4.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d211803b9b6b570f68772237e415a029d5a50c65d382910b879fb19d3271f94d" + +[[package]] +name = "p256" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9863ad85fa8f4460f9c48cb909d38a0d689dba1f6f6988a5e3e0d31071bcd4b" +dependencies = [ + "elliptic-curve", + "primeorder", +] + +[[package]] +name = "page_size" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30d5b2194ed13191c1999ae0704b7839fb18384fa22e49b57eeaa97d79ce40da" +dependencies = [ + "libc", + "winapi", +] + +[[package]] +name = "parity-scale-codec" +version = "3.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "799781ae679d79a948e13d4824a40970bfa500058d245760dd857301059810fa" +dependencies = [ + "arrayvec", + "bitvec", + "byte-slice-cast", + "const_format", + "impl-trait-for-tuples", + "parity-scale-codec-derive", + "rustversion", + "serde", +] + +[[package]] +name = "parity-scale-codec-derive" +version = "3.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34b4653168b563151153c9e4c08ebed57fb8262bebfa79711552fa983c623e7a" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall 0.5.18", + "smallvec", + "windows-link", +] + +[[package]] +name = "password-hash" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "346f04948ba92c43e8469c1ee6736c7563d71012b17d40745260fe106aac2166" +dependencies = [ + "base64ct", + "rand_core 0.6.4", + "subtle", +] + +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + +[[package]] +name = "pbkdf2" +version = "0.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2" +dependencies = [ + "digest 0.10.7", + "hmac", + "password-hash", + "sha2", +] + +[[package]] +name = "pem" +version = "3.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d30c53c26bc5b31a98cd02d20f25a7c8567146caf63ed593a9d87b2775291be" +dependencies = [ + "base64", + "serde_core", +] + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "pest" +version = "2.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0848c601009d37dfa3430c4666e147e49cdcf1b92ecd3e63657d8a5f19da662" +dependencies = [ + "memchr", + "ucd-trie", +] + +[[package]] +name = "phf" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078" +dependencies = [ + "phf_macros", + "phf_shared", +] + +[[package]] +name = "phf_generator" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d" +dependencies = [ + "phf_shared", + "rand 0.8.5", +] + +[[package]] +name = "phf_macros" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f84ac04429c13a7ff43785d75ad27569f2951ce0ffd30a3321230db2fc727216" +dependencies = [ + "phf_generator", + "phf_shared", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "phf_shared" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5" +dependencies = [ + "siphasher", +] + +[[package]] +name = "pin-project" +version = "1.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1749c7ed4bcaf4c3d0a3efc28538844fb29bcdd7d2b67b2be7e20ba861ff517" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b20ed30f105399776b9c883e68e536ef602a16ae6f596d2c473591d6ad64c6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "pkcs8" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" +dependencies = [ + "der", + "spki", +] + +[[package]] +name = "pkg-config" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" + +[[package]] +name = "plain" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6" + +[[package]] +name = "poly1305" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8159bd90725d2df49889a078b54f4f79e87f1f8a8444194cdca81d38f5393abf" +dependencies = [ + "cpufeatures", + "opaque-debug", + "universal-hash", +] + +[[package]] +name = "polyval" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d1fe60d06143b2430aa532c94cfe9e29783047f06c0d7fd359a9a51b729fa25" +dependencies = [ + "cfg-if", + "cpufeatures", + "opaque-debug", + "universal-hash", +] + +[[package]] +name = "postcard" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6764c3b5dd454e283a30e6dfe78e9b31096d9e32036b5d1eaac7a6119ccb9a24" +dependencies = [ + "cobs", + "embedded-io 0.4.0", + "embedded-io 0.6.1", + "heapless", + "serde", +] + +[[package]] +name = "potential_utf" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b73949432f5e2a09657003c25bca5e19a0e9c84f8058ca374f49e0ebe605af77" +dependencies = [ + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "prettyplease" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +dependencies = [ + "proc-macro2", + "syn 2.0.117", +] + +[[package]] +name = "primeorder" +version = "0.13.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "353e1ca18966c16d9deb1c69278edbc5f194139612772bd9537af60ac231e1e6" +dependencies = [ + "elliptic-curve", +] + +[[package]] +name = "primitive-types" +version = "0.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b34d9fd68ae0b74a41b21c03c2f62847aa0ffea044eee893b4c140b37e244e2" +dependencies = [ + "fixed-hash", + "impl-codec", + "uint 0.9.5", +] + +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit 0.25.4+spec-1.1.0", +] + +[[package]] +name = "proc-macro-error-attr2" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96de42df36bb9bba5542fe9f1a054b8cc87e172759a1868aa05c1f3acc89dfc5" +dependencies = [ + "proc-macro2", + "quote", +] + +[[package]] +name = "proc-macro-error2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11ec05c52be0a07b08061f7dd003e7d7092e0472bc731b4af7bb1ef876109802" +dependencies = [ + "proc-macro-error-attr2", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "proc-macro2" +version = "1.0.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "prometheus" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ca5326d8d0b950a9acd87e6a3f94745394f62e4dae1b1ee22b2bc0c394af43a" +dependencies = [ + "cfg-if", + "fnv", + "lazy_static", + "memchr", + "parking_lot", + "thiserror 2.0.18", +] + +[[package]] +name = "prometheus-client" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf41c1a7c32ed72abe5082fb19505b969095c12da9f5732a4bc9878757fd087c" +dependencies = [ + "dtoa", + "itoa", + "parking_lot", + "prometheus-client-derive-encode", +] + +[[package]] +name = "prometheus-client-derive-encode" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "440f724eba9f6996b75d63681b0a92b06947f1457076d503a4d2e2c8f56442b8" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "proptest" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37566cb3fdacef14c0737f9546df7cfeadbfbc9fef10991038bf5015d0c80532" +dependencies = [ + "bit-set", + "bit-vec", + "bitflags", + "num-traits", + "rand 0.9.2", + "rand_chacha 0.9.0", + "rand_xorshift", + "regex-syntax", + "rusty-fork", + "tempfile", + "unarray", +] + +[[package]] +name = "quick-error" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" + +[[package]] +name = "quick-protobuf" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d6da84cc204722a989e01ba2f6e1e276e190f22263d0cb6ce8526fcdb0d2e1f" +dependencies = [ + "byteorder", +] + +[[package]] +name = "quick-protobuf-codec" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15a0580ab32b169745d7a39db2ba969226ca16738931be152a3209b409de2474" +dependencies = [ + "asynchronous-codec", + "bytes", + "quick-protobuf", + "thiserror 1.0.69", + "unsigned-varint 0.8.0", +] + +[[package]] +name = "quinn" +version = "0.11.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e20a958963c291dc322d98411f541009df2ced7b5a4f2bd52337638cfccf20" +dependencies = [ + "bytes", + "cfg_aliases", + "pin-project-lite", + "quinn-proto", + "quinn-udp", + "rustc-hash", + "rustls", + "socket2 0.6.3", + "thiserror 2.0.18", + "tokio", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-proto" +version = "0.11.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "434b42fec591c96ef50e21e886936e66d3cc3f737104fdb9b737c40ffb94c098" +dependencies = [ + "aws-lc-rs", + "bytes", + "getrandom 0.3.4", + "lru-slab", + "rand 0.9.2", + "ring", + "rustc-hash", + "rustls", + "rustls-pki-types", + "slab", + "thiserror 2.0.18", + "tinyvec", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-udp" +version = "0.5.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd" +dependencies = [ + "cfg_aliases", + "libc", + "once_cell", + "socket2 0.6.3", + "tracing", + "windows-sys 0.60.2", +] + +[[package]] +name = "quote" +version = "1.0.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "radium" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" + +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", + "serde", +] + +[[package]] +name = "rand" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" +dependencies = [ + "rand_chacha 0.9.0", + "rand_core 0.9.5", + "serde", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core 0.9.5", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.17", +] + +[[package]] +name = "rand_core" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +dependencies = [ + "getrandom 0.3.4", + "serde", +] + +[[package]] +name = "rand_distr" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32cb0b9bc82b0a0876c2dd994a7e7a2683d3e7390ca40e6886785ef0c7e3ee31" +dependencies = [ + "num-traits", + "rand 0.8.5", +] + +[[package]] +name = "rand_xorshift" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "513962919efc330f829edb2535844d1b912b0fbe2ca165d613e4e8788bb05a5a" +dependencies = [ + "rand_core 0.9.5", +] + +[[package]] +name = "rapidhash" +version = "4.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5e48930979c155e2f33aa36ab3119b5ee81332beb6482199a8ecd6029b80b59" +dependencies = [ + "rustversion", +] + +[[package]] +name = "rawpointer" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3" + +[[package]] +name = "rayon" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "368f01d005bf8fd9b1206fb6fa653e6c4a81ceb1466406b81792d87c5677a58f" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] + +[[package]] +name = "rcgen" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10b99e0098aa4082912d4c649628623db6aba77335e4f4569ff5083a6448b32e" +dependencies = [ + "pem", + "ring", + "rustls-pki-types", + "time", + "x509-parser", + "yasna", +] + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags", +] + +[[package]] +name = "redox_syscall" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce70a74e890531977d37e532c34d45e9055d2409ed08ddba14529471ed0be16" +dependencies = [ + "bitflags", +] + +[[package]] +name = "redox_users" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" +dependencies = [ + "getrandom 0.2.17", + "libredox", + "thiserror 1.0.69", +] + +[[package]] +name = "redox_users" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac" +dependencies = [ + "getrandom 0.2.17", + "libredox", + "thiserror 2.0.18", +] + +[[package]] +name = "ref-cast" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d" +dependencies = [ + "ref-cast-impl", +] + +[[package]] +name = "ref-cast-impl" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "regex" +version = "1.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" + +[[package]] +name = "reqwest" +version = "0.12.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147" +dependencies = [ + "base64", + "bytes", + "futures-core", + "futures-util", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-util", + "js-sys", + "log", + "percent-encoding", + "pin-project-lite", + "quinn", + "rustls", + "rustls-pki-types", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tokio-rustls", + "tokio-util", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-streams", + "web-sys", + "webpki-roots", +] + +[[package]] +name = "reqwest" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab3f43e3283ab1488b624b44b0e988d0acea0b3214e694730a055cb6b2efa801" +dependencies = [ + "base64", + "bytes", + "futures-core", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-util", + "js-sys", + "log", + "percent-encoding", + "pin-project-lite", + "quinn", + "rustls", + "rustls-pki-types", + "rustls-platform-verifier", + "serde", + "serde_json", + "sync_wrapper", + "tokio", + "tokio-rustls", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "rfc6979" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" +dependencies = [ + "hmac", + "subtle", +] + +[[package]] +name = "ring" +version = "0.17.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" +dependencies = [ + "cc", + "cfg-if", + "getrandom 0.2.17", + "libc", + "untrusted", + "windows-sys 0.52.0", +] + +[[package]] +name = "rlp" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb919243f34364b6bd2fc10ef797edbfa75f33c252e7998527479c6d6b47e1ec" +dependencies = [ + "bytes", + "rustc-hex", +] + +[[package]] +name = "rmp" +version = "0.8.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ba8be72d372b2c9b35542551678538b562e7cf86c3315773cae48dfbfe7790c" +dependencies = [ + "num-traits", +] + +[[package]] +name = "rmp-serde" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f81bee8c8ef9b577d1681a70ebbc962c232461e397b22c208c43c04b67a155" +dependencies = [ + "rmp", + "serde", +] + +[[package]] +name = "ruint" +version = "1.17.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c141e807189ad38a07276942c6623032d3753c8859c146104ac2e4d68865945a" +dependencies = [ + "alloy-rlp", + "ark-ff 0.3.0", + "ark-ff 0.4.2", + "ark-ff 0.5.0", + "bytes", + "fastrlp 0.3.1", + "fastrlp 0.4.0", + "num-bigint", + "num-integer", + "num-traits", + "parity-scale-codec", + "primitive-types", + "proptest", + "rand 0.8.5", + "rand 0.9.2", + "rlp", + "ruint-macro", + "serde_core", + "valuable", + "zeroize", +] + +[[package]] +name = "ruint-macro" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48fd7bd8a6377e15ad9d42a8ec25371b94ddc67abe7c8b9127bec79bebaaae18" + +[[package]] +name = "rusqlite" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "165ca6e57b20e1351573e3729b958bc62f0e48025386970b6e4d29e7a7e71f3f" +dependencies = [ + "bitflags", + "chrono", + "fallible-iterator", + "fallible-streaming-iterator", + "hashlink", + "libsqlite3-sys", + "serde_json", + "smallvec", + "uuid", +] + +[[package]] +name = "rustc-demangle" +version = "0.1.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b50b8869d9fc858ce7266cce0194bd74df58b9d0e3f6df3a9fc8eb470d95c09d" + +[[package]] +name = "rustc-hash" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" + +[[package]] +name = "rustc-hex" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e75f6a532d0fd9f7f13144f392b6ad56a32696bfcd9c78f797f16bbb6f072d6" + +[[package]] +name = "rustc_version" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0dfe2087c51c460008730de8b57e6a320782fbfb312e1f4d520e6c6fae155ee" +dependencies = [ + "semver 0.11.0", +] + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver 1.0.27", +] + +[[package]] +name = "rusticata-macros" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "faf0c4a6ece9950b9abdb62b1cfcf2a68b3b67a10ba445b3bb85be2a293d0632" +dependencies = [ + "nom", +] + +[[package]] +name = "rustix" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +dependencies = [ + "bitflags", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls" +version = "0.23.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "758025cb5fccfd3bc2fd74708fd4682be41d99e5dff73c377c0646c6012c73a4" +dependencies = [ + "aws-lc-rs", + "log", + "once_cell", + "ring", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-native-certs" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "612460d5f7bea540c490b2b6395d8e34a953e52b491accd6c86c8164c5932a63" +dependencies = [ + "openssl-probe", + "rustls-pki-types", + "schannel", + "security-framework", +] + +[[package]] +name = "rustls-pemfile" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "rustls-pki-types" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be040f8b0a225e40375822a563fa9524378b9d63112f53e19ffff34df5d33fdd" +dependencies = [ + "web-time", + "zeroize", +] + +[[package]] +name = "rustls-platform-verifier" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d99feebc72bae7ab76ba994bb5e121b8d83d910ca40b36e0921f53becc41784" +dependencies = [ + "core-foundation 0.10.1", + "core-foundation-sys", + "jni", + "log", + "once_cell", + "rustls", + "rustls-native-certs", + "rustls-platform-verifier-android", + "rustls-webpki", + "security-framework", + "security-framework-sys", + "webpki-root-certs", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls-platform-verifier-android" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f" + +[[package]] +name = "rustls-post-quantum" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0da3cd9229bac4fae1f589c8f875b3c891a058ddaa26eb3bde16b5e43dc174ce" +dependencies = [ + "aws-lc-rs", + "rustls", + "rustls-webpki", +] + +[[package]] +name = "rustls-webpki" +version = "0.103.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7df23109aa6c1567d1c575b9952556388da57401e4ace1d15f79eedad0d8f53" +dependencies = [ + "aws-lc-rs", + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[package]] +name = "rusty-fork" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc6bf79ff24e648f6da1f8d1f011e9cac26491b619e6b9280f2b47f1774e6ee2" +dependencies = [ + "fnv", + "quick-error", + "tempfile", + "wait-timeout", +] + +[[package]] +name = "rw-stream-sink" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8c9026ff5d2f23da5e45bbc283f156383001bfb09c4e44256d02c1a685fe9a1" +dependencies = [ + "futures", + "pin-project", + "static_assertions", +] + +[[package]] +name = "ryu" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" + +[[package]] +name = "safe_arch" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96b02de82ddbe1b636e6170c21be622223aea188ef2e139be0a5b219ec215323" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "saorsa-core" +version = "0.15.0" +source = "git+https://github.com/jacderida/saorsa-core?branch=feat-metrics_phase2#e13b41bd11dcd46494314ba350a5216f82dade64" +dependencies = [ + "anyhow", + "argon2", + "array-init", + "async-trait", + "axum", + "base64", + "blake3", + "bytes", + "chrono", + "clap", + "dirs 6.0.0", + "fastrand", + "flate2", + "futures", + "hex", + "hkdf", + "libc", + "log", + "lru", + "num_cpus", + "once_cell", + "parking_lot", + "postcard", + "prometheus", + "rand 0.8.5", + "rand_core 0.6.4", + "regex", + "reqwest 0.12.28", + "rusqlite", + "saorsa-pqc 0.5.0", + "saorsa-transport", + "serde", + "serde_cbor", + "serde_json", + "smallvec", + "statrs", + "subtle", + "thiserror 2.0.18", + "tokio", + "tokio-stream", + "tokio-util", + "toml", + "tower", + "tracing", + "uuid", + "winapi", + "wyz", +] + +[[package]] +name = "saorsa-node" +version = "0.3.2" +dependencies = [ + "aes-gcm-siv", + "alloy", + "ant-evm", + "axum", + "blake3", + "bytes", + "chrono", + "clap", + "color-eyre", + "directories", + "evmlib", + "flate2", + "futures", + "heed", + "hex", + "hkdf", + "libp2p", + "lru", + "multihash", + "parking_lot", + "postcard", + "proptest", + "rand 0.8.5", + "reqwest 0.13.2", + "rmp-serde", + "saorsa-core", + "saorsa-pqc 0.5.0", + "self_encryption", + "semver 1.0.27", + "serde", + "serde_json", + "serial_test", + "tar", + "tempfile", + "thiserror 2.0.18", + "tokio", + "tokio-test", + "tokio-util", + "toml", + "tracing", + "tracing-appender", + "tracing-subscriber", + "xor_name", +] + +[[package]] +name = "saorsa-pqc" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56d4bae22bfc65b379efcaae0c9ec5075916a79c05e97d595a4b78fb8ff6545b" +dependencies = [ + "aead", + "aes-gcm", + "anyhow", + "blake3", + "bytes", + "chacha20poly1305", + "curve25519-dalek", + "ed25519-dalek", + "fips203", + "fips204", + "fips205", + "futures", + "hkdf", + "hmac", + "hpke", + "libc", + "log", + "pbkdf2", + "postcard", + "rand 0.8.5", + "rand_chacha 0.3.1", + "rand_core 0.6.4", + "rayon", + "serde", + "serde_json", + "sha2", + "sha3", + "subtle", + "thiserror 2.0.18", + "time", + "tokio", + "tracing", + "wide", + "x25519-dalek", + "zeroize", +] + +[[package]] +name = "saorsa-pqc" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "846eb36cf54149d079fd824aa0aaeaa708dd612ef54eaaf65583c82f90b19f95" +dependencies = [ + "aead", + "aes-gcm", + "anyhow", + "blake3", + "bytes", + "chacha20poly1305", + "curve25519-dalek", + "ed25519-dalek", + "fips203", + "fips204", + "fips205", + "futures", + "hkdf", + "hmac", + "hpke", + "libc", + "log", + "pbkdf2", + "postcard", + "rand 0.8.5", + "rand_chacha 0.3.1", + "rand_core 0.6.4", + "rayon", + "serde", + "serde_json", + "sha2", + "sha3", + "subtle", + "thiserror 2.0.18", + "time", + "tokio", + "tracing", + "wide", + "x25519-dalek", + "zeroize", +] + +[[package]] +name = "saorsa-transport" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3713dbca5446e786e7f703f3dd0c4b3157dc3bdbb2e7ba12f82d82e91470f2af" +dependencies = [ + "anyhow", + "async-trait", + "aws-lc-rs", + "blake3", + "bytes", + "chrono", + "clap", + "core-foundation 0.9.4", + "dashmap", + "dirs 5.0.1", + "futures-util", + "hex", + "indexmap 2.13.0", + "keyring", + "libc", + "lru-slab", + "nix", + "once_cell", + "parking_lot", + "pin-project-lite", + "quinn-udp", + "rand 0.8.5", + "rcgen", + "regex", + "reqwest 0.12.28", + "rustc-hash", + "rustls", + "rustls-native-certs", + "rustls-pemfile", + "rustls-platform-verifier", + "rustls-post-quantum", + "saorsa-pqc 0.4.2", + "serde", + "serde_json", + "serde_yaml", + "slab", + "socket2 0.5.10", + "system-configuration", + "thiserror 2.0.18", + "time", + "tinyvec", + "tokio", + "tokio-util", + "tracing", + "tracing-subscriber", + "unicode-width", + "uuid", + "windows", + "x25519-dalek", + "zeroize", +] + +[[package]] +name = "scc" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46e6f046b7fef48e2660c57ed794263155d713de679057f2d0c169bfc6e756cc" +dependencies = [ + "sdd", +] + +[[package]] +name = "schannel" +version = "0.1.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "schemars" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2b42f36aa1cd011945615b92222f6bf73c599a102a300334cd7f8dbeec726cc" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "sdd" +version = "3.0.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "490dcfcbfef26be6800d11870ff2df8774fa6e86d047e3e8c8a76b25655e41ca" + +[[package]] +name = "sec1" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" +dependencies = [ + "base16ct", + "der", + "generic-array", + "pkcs8", + "serdect", + "subtle", + "zeroize", +] + +[[package]] +name = "secp256k1" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b50c5943d326858130af85e049f2661ba3c78b26589b8ab98e65e80ae44a1252" +dependencies = [ + "bitcoin_hashes", + "rand 0.8.5", + "secp256k1-sys", + "serde", +] + +[[package]] +name = "secp256k1-sys" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4387882333d3aa8cb20530a17c69a3752e97837832f34f6dccc760e715001d9" +dependencies = [ + "cc", +] + +[[package]] +name = "security-framework" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" +dependencies = [ + "bitflags", + "core-foundation 0.10.1", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "self_encryption" +version = "0.35.0" +source = "git+https://github.com/grumbach/self_encryption.git?branch=post_quatum#b0953b5aefcf4751816cfa04ab7cfde0c513585f" +dependencies = [ + "bincode", + "blake3", + "brotli", + "bytes", + "chacha20poly1305", + "hex", + "rand 0.8.5", + "rand_chacha 0.3.1", + "rayon", + "serde", + "tempfile", + "thiserror 1.0.69", + "tokio", + "xor_name", +] + +[[package]] +name = "semver" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6" +dependencies = [ + "semver-parser", +] + +[[package]] +name = "semver" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2" + +[[package]] +name = "semver-parser" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9900206b54a3527fdc7b8a938bffd94a568bac4f4aa8113b209df75a09c0dec2" +dependencies = [ + "pest", +] + +[[package]] +name = "serde" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_cbor" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bef2ebfde456fb76bbcf9f59315333decc4fda0b2b44b420243c11e0f5ec1f5" +dependencies = [ + "half", + "serde", +] + +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "serde_json" +version = "1.0.149" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_path_to_error" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457" +dependencies = [ + "itoa", + "serde", + "serde_core", +] + +[[package]] +name = "serde_spanned" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_test" +version = "1.0.177" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f901ee573cab6b3060453d2d5f0bae4e6d628c23c0a962ff9b5f1d7c8d4f1ed" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "serde_with" +version = "3.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd5414fad8e6907dbdd5bc441a50ae8d6e26151a03b1de04d89a5576de61d01f" +dependencies = [ + "base64", + "chrono", + "hex", + "indexmap 1.9.3", + "indexmap 2.13.0", + "schemars 0.9.0", + "schemars 1.2.1", + "serde_core", + "serde_json", + "serde_with_macros", + "time", +] + +[[package]] +name = "serde_with_macros" +version = "3.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3db8978e608f1fe7357e211969fd9abdcae80bac1ba7a3369bb7eb6b404eb65" +dependencies = [ + "darling 0.23.0", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "serde_yaml" +version = "0.9.34+deprecated" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47" +dependencies = [ + "indexmap 2.13.0", + "itoa", + "ryu", + "serde", + "unsafe-libyaml", +] + +[[package]] +name = "serdect" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a84f14a19e9a014bb9f4512488d9829a68e04ecabffb0f9904cd1ace94598177" +dependencies = [ + "base16ct", + "serde", +] + +[[package]] +name = "serial_test" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "911bd979bf1070a3f3aa7b691a3b3e9968f339ceeec89e08c280a8a22207a32f" +dependencies = [ + "futures-executor", + "futures-util", + "log", + "once_cell", + "parking_lot", + "scc", + "serial_test_derive", +] + +[[package]] +name = "serial_test_derive" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a7d91949b85b0d2fb687445e448b40d322b6b3e4af6b44a29b21d9a5f33e6d9" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest 0.10.7", +] + +[[package]] +name = "sha3" +version = "0.10.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" +dependencies = [ + "digest 0.10.7", + "keccak", +] + +[[package]] +name = "sha3-asm" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b31139435f327c93c6038ed350ae4588e2c70a13d50599509fee6349967ba35a" +dependencies = [ + "cc", + "cfg-if", +] + +[[package]] +name = "sharded-slab" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" +dependencies = [ + "lazy_static", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "signature" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" +dependencies = [ + "digest 0.10.7", + "rand_core 0.6.4", +] + +[[package]] +name = "simba" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c99284beb21666094ba2b75bbceda012e610f5479dfcc2d6e2426f53197ffd95" +dependencies = [ + "approx", + "num-complex", + "num-traits", + "paste", + "wide", +] + +[[package]] +name = "simd-adler32" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2" + +[[package]] +name = "siphasher" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2aa850e253778c88a04c3d7323b043aeda9d3e30d5971937c1855769763678e" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" +dependencies = [ + "serde", +] + +[[package]] +name = "socket2" +version = "0.5.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678" +dependencies = [ + "libc", + "windows-sys 0.52.0", +] + +[[package]] +name = "socket2" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "spin" +version = "0.9.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" +dependencies = [ + "lock_api", +] + +[[package]] +name = "spki" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" +dependencies = [ + "base64ct", + "der", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "statrs" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a3fe7c28c6512e766b0874335db33c94ad7b8f9054228ae1c2abd47ce7d335e" +dependencies = [ + "approx", + "nalgebra", + "num-traits", + "rand 0.8.5", +] + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "strum" +version = "0.27.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af23d6f6c1a224baef9d3f61e287d2761385a5b88fdab4eb4c6f11aeb54c4bcf" +dependencies = [ + "strum_macros", +] + +[[package]] +name = "strum_macros" +version = "0.27.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7695ce3845ea4b33927c055a39dc438a45b059f7c1b3d91d38d10355fb8cbca7" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn-solidity" +version = "1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53f425ae0b12e2f5ae65542e00898d500d4d318b4baf09f40fd0d410454e9947" +dependencies = [ + "paste", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +dependencies = [ + "futures-core", +] + +[[package]] +name = "synchronoise" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3dbc01390fc626ce8d1cffe3376ded2b72a11bb70e1c75f404a210e4daa4def2" +dependencies = [ + "crossbeam-queue", +] + +[[package]] +name = "synstructure" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "system-configuration" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b" +dependencies = [ + "bitflags", + "core-foundation 0.9.4", + "system-configuration-sys", +] + +[[package]] +name = "system-configuration-sys" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "tap" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" + +[[package]] +name = "tar" +version = "0.4.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d863878d212c87a19c1a610eb53bb01fe12951c0501cf5a0d65f724914a667a" +dependencies = [ + "filetime", + "libc", + "xattr", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.2", + "once_cell", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" +dependencies = [ + "thiserror-impl 2.0.18", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "thread_local" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "threadpool" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa" +dependencies = [ + "num_cpus", +] + +[[package]] +name = "time" +version = "0.3.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c" +dependencies = [ + "deranged", + "itoa", + "libc", + "num-conv", + "num_threads", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" + +[[package]] +name = "time-macros" +version = "0.2.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tiny-keccak" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237" +dependencies = [ + "crunchy", +] + +[[package]] +name = "tinystr" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42d3e9c45c09de15d06dd8acf5f4e0e399e85927b7f00711024eb7ae10fa4869" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "tokio" +version = "1.50.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27ad5e34374e03cfffefc301becb44e9dc3c17584f414349ebe29ed26661822d" +dependencies = [ + "bytes", + "libc", + "mio", + "parking_lot", + "pin-project-lite", + "signal-hook-registry", + "socket2 0.6.3", + "tokio-macros", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-macros" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c55a2eff8b69ce66c84f85e1da1c233edc36ceb85a2058d11b0d6a3c7e7569c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "tokio-rustls" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61" +dependencies = [ + "rustls", + "tokio", +] + +[[package]] +name = "tokio-stream" +version = "0.1.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32da49809aab5c3bc678af03902d4ccddea2a87d028d86392a4b1560c6906c70" +dependencies = [ + "futures-core", + "pin-project-lite", + "tokio", + "tokio-util", +] + +[[package]] +name = "tokio-test" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f6d24790a10a7af737693a3e8f1d03faef7e6ca0cc99aae5066f533766de545" +dependencies = [ + "futures-core", + "tokio", + "tokio-stream", +] + +[[package]] +name = "tokio-util" +version = "0.7.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "futures-util", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "toml" +version = "0.8.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362" +dependencies = [ + "serde", + "serde_spanned", + "toml_datetime 0.6.11", + "toml_edit 0.22.27", +] + +[[package]] +name = "toml_datetime" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_datetime" +version = "1.0.0+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32c2555c699578a4f59f0cc68e5116c8d7cabbd45e1409b989d4be085b53f13e" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.22.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a" +dependencies = [ + "indexmap 2.13.0", + "serde", + "serde_spanned", + "toml_datetime 0.6.11", + "toml_write", + "winnow", +] + +[[package]] +name = "toml_edit" +version = "0.25.4+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7193cbd0ce53dc966037f54351dbbcf0d5a642c7f0038c382ef9e677ce8c13f2" +dependencies = [ + "indexmap 2.13.0", + "toml_datetime 1.0.0+spec-1.1.0", + "toml_parser", + "winnow", +] + +[[package]] +name = "toml_parser" +version = "1.0.9+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "702d4415e08923e7e1ef96cd5727c0dfed80b4d2fa25db9647fe5eb6f7c5a4c4" +dependencies = [ + "winnow", +] + +[[package]] +name = "toml_write" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801" + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tower-http" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8" +dependencies = [ + "bitflags", + "bytes", + "futures-util", + "http", + "http-body", + "iri-string", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "log", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-appender" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "786d480bce6247ab75f005b14ae1624ad978d3029d9113f0a22fa1ac773faeaf" +dependencies = [ + "crossbeam-channel", + "thiserror 2.0.18", + "time", + "tracing-subscriber", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", + "valuable", +] + +[[package]] +name = "tracing-error" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b1581020d7a273442f5b45074a6a57d5757ad0a47dac0e9f0bd57b81936f3db" +dependencies = [ + "tracing", + "tracing-subscriber", +] + +[[package]] +name = "tracing-log" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" +dependencies = [ + "log", + "once_cell", + "tracing-core", +] + +[[package]] +name = "tracing-serde" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "704b1aeb7be0d0a84fc9828cae51dab5970fee5088f83d1dd7ee6f6246fc6ff1" +dependencies = [ + "serde", + "tracing-core", +] + +[[package]] +name = "tracing-subscriber" +version = "0.3.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319" +dependencies = [ + "matchers", + "nu-ansi-term", + "once_cell", + "regex-automata", + "serde", + "serde_json", + "sharded-slab", + "smallvec", + "thread_local", + "time", + "tracing", + "tracing-core", + "tracing-log", + "tracing-serde", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "typenum" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" + +[[package]] +name = "ucd-trie" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971" + +[[package]] +name = "uint" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76f64bba2c53b04fcab63c01a7d7427eadc821e3bc48c34dc9ba29c501164b52" +dependencies = [ + "byteorder", + "crunchy", + "hex", + "static_assertions", +] + +[[package]] +name = "uint" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "909988d098b2f738727b161a106cfc7cab00c539c2687a8836f8e565976fb53e" +dependencies = [ + "byteorder", + "crunchy", + "hex", + "static_assertions", +] + +[[package]] +name = "unarray" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94" + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "unicode-segmentation" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" + +[[package]] +name = "unicode-width" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd" + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "universal-hash" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea" +dependencies = [ + "crypto-common", + "subtle", +] + +[[package]] +name = "unsafe-libyaml" +version = "0.2.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861" + +[[package]] +name = "unsigned-varint" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6889a77d49f1f013504cec6bf97a2c730394adedaeb1deb5ea08949a50541105" + +[[package]] +name = "unsigned-varint" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb066959b24b5196ae73cb057f45598450d2c5f71460e98c49b738086eff9c06" + +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", + "serde_derive", +] + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + +[[package]] +name = "uuid" +version = "1.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a68d3c8f01c0cfa54a75291d83601161799e4a89a39e0929f4b0354d88757a37" +dependencies = [ + "getrandom 0.4.2", + "js-sys", + "serde_core", + "wasm-bindgen", +] + +[[package]] +name = "valuable" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" + +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "wait-timeout" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ac3b126d3914f9849036f826e054cbabdc8519970b8998ddaf3b5bd3c65f11" +dependencies = [ + "libc", +] + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.2+wasi-0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasip3" +version = "0.4.0+wasi-0.3.0-rc-2026-01-06" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6532f9a5c1ece3798cb1c2cfdba640b9b3ba884f5db45973a6f442510a87d38e" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.64" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9c5522b3a28661442748e09d40924dfb9ca614b21c00d3fd135720e48b67db8" +dependencies = [ + "cfg-if", + "futures-util", + "js-sys", + "once_cell", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18a2d50fcf105fb33bb15f00e7a77b772945a2ee45dcf454961fd843e74c18e6" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03ce4caeaac547cdf713d280eda22a730824dd11e6b8c3ca9e42247b25c631e3" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 2.0.117", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75a326b8c223ee17883a4251907455a2431acc2791c98c26279376490c378c16" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-encoder" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319" +dependencies = [ + "leb128fmt", + "wasmparser", +] + +[[package]] +name = "wasm-metadata" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909" +dependencies = [ + "anyhow", + "indexmap 2.13.0", + "wasm-encoder", + "wasmparser", +] + +[[package]] +name = "wasm-streams" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "wasmparser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" +dependencies = [ + "bitflags", + "hashbrown 0.15.5", + "indexmap 2.13.0", + "semver 1.0.27", +] + +[[package]] +name = "wasmtimer" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c598d6b99ea013e35844697fc4670d08339d5cda15588f193c6beedd12f644b" +dependencies = [ + "futures", + "js-sys", + "parking_lot", + "pin-utils", + "slab", + "wasm-bindgen", +] + +[[package]] +name = "web-sys" +version = "0.3.91" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "854ba17bb104abfb26ba36da9729addc7ce7f06f5c0f90f3c391f8461cca21f9" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "webpki-root-certs" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "804f18a4ac2676ffb4e8b5b5fa9ae38af06df08162314f96a68d2a363e21a8ca" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "webpki-roots" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22cfaf3c063993ff62e73cb4311efde4db1efb31ab78a3e5c457939ad5cc0bed" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "wide" +version = "0.7.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ce5da8ecb62bcd8ec8b7ea19f69a51275e91299be594ea5cc6ef7819e16cd03" +dependencies = [ + "bytemuck", + "safe_arch", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "windows" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6" +dependencies = [ + "windows-core 0.58.0", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-core" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99" +dependencies = [ + "windows-implement 0.58.0", + "windows-interface 0.58.0", + "windows-result 0.2.0", + "windows-strings 0.1.0", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement 0.60.2", + "windows-interface 0.59.3", + "windows-link", + "windows-result 0.4.1", + "windows-strings 0.5.1", +] + +[[package]] +name = "windows-implement" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "windows-interface" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-result" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" +dependencies = [ + "windows-result 0.2.0", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets 0.42.2", +] + +[[package]] +name = "windows-sys" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +dependencies = [ + "windows-targets 0.48.5", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" +dependencies = [ + "windows-targets 0.53.5", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", +] + +[[package]] +name = "windows-targets" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +dependencies = [ + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm 0.52.6", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-targets" +version = "0.53.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" +dependencies = [ + "windows-link", + "windows_aarch64_gnullvm 0.53.1", + "windows_aarch64_msvc 0.53.1", + "windows_i686_gnu 0.53.1", + "windows_i686_gnullvm 0.53.1", + "windows_i686_msvc 0.53.1", + "windows_x86_64_gnu 0.53.1", + "windows_x86_64_gnullvm 0.53.1", + "windows_x86_64_msvc 0.53.1", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" + +[[package]] +name = "windows_i686_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" + +[[package]] +name = "windows_i686_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" + +[[package]] +name = "windows_i686_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" + +[[package]] +name = "windows_i686_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_i686_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" + +[[package]] +name = "winnow" +version = "0.7.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945" +dependencies = [ + "memchr", +] + +[[package]] +name = "wit-bindgen" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" +dependencies = [ + "wit-bindgen-rust-macro", +] + +[[package]] +name = "wit-bindgen-core" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc" +dependencies = [ + "anyhow", + "heck", + "wit-parser", +] + +[[package]] +name = "wit-bindgen-rust" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21" +dependencies = [ + "anyhow", + "heck", + "indexmap 2.13.0", + "prettyplease", + "syn 2.0.117", + "wasm-metadata", + "wit-bindgen-core", + "wit-component", +] + +[[package]] +name = "wit-bindgen-rust-macro" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a" +dependencies = [ + "anyhow", + "prettyplease", + "proc-macro2", + "quote", + "syn 2.0.117", + "wit-bindgen-core", + "wit-bindgen-rust", +] + +[[package]] +name = "wit-component" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" +dependencies = [ + "anyhow", + "bitflags", + "indexmap 2.13.0", + "log", + "serde", + "serde_derive", + "serde_json", + "wasm-encoder", + "wasm-metadata", + "wasmparser", + "wit-parser", +] + +[[package]] +name = "wit-parser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736" +dependencies = [ + "anyhow", + "id-arena", + "indexmap 2.13.0", + "log", + "semver 1.0.27", + "serde", + "serde_derive", + "serde_json", + "unicode-xid", + "wasmparser", +] + +[[package]] +name = "writeable" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9" + +[[package]] +name = "wyz" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed" +dependencies = [ + "tap", +] + +[[package]] +name = "x25519-dalek" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7e468321c81fb07fa7f4c636c3972b9100f0346e5b6a9f2bd0603a52f7ed277" +dependencies = [ + "curve25519-dalek", + "rand_core 0.6.4", + "serde", + "zeroize", +] + +[[package]] +name = "x509-parser" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d43b0f71ce057da06bc0851b23ee24f3f86190b07203dd8f567d0b706a185202" +dependencies = [ + "asn1-rs", + "data-encoding", + "der-parser", + "lazy_static", + "nom", + "oid-registry", + "ring", + "rusticata-macros", + "thiserror 2.0.18", + "time", +] + +[[package]] +name = "xattr" +version = "1.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156" +dependencies = [ + "libc", + "rustix", +] + +[[package]] +name = "xor_name" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fd9dddecfdbc7c17ae93da6d28a5a9c4f5564abe7b735d2530c7a159b6b55e8" +dependencies = [ + "hex", + "rand 0.8.5", + "rand_core 0.6.4", + "serde", + "serde_test", + "tiny-keccak", +] + +[[package]] +name = "yasna" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e17bb3549cc1321ae1296b9cdc2698e2b6cb1992adfa19a8c72e5b7a738f44cd" +dependencies = [ + "time", +] + +[[package]] +name = "yoke" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72d6e5c6afb84d73944e5cedb052c4680d5657337201555f9f2a16b7406d4954" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b659052874eb698efe5b9e8cf382204678a0086ebf46982b79d6ca3182927e5d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", + "synstructure", +] + +[[package]] +name = "zerocopy" +version = "0.8.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2578b716f8a7a858b7f02d5bd870c14bf4ddbbcf3a4c05414ba6503640505e3" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e6cc098ea4d3bd6246687de65af3f920c430e236bee1e3bf2e441463f08a02f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "zerofrom" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", + "synstructure", +] + +[[package]] +name = "zeroize" +version = "1.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85a5b4158499876c763cb03bc4e49185d3cccbabb15b33c627f7884f43db852e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "zerotrie" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a59c17a5562d507e4b54960e8569ebee33bee890c70aa3fe7b97e85a9fd7851" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c28719294829477f525be0186d13efa9a3c602f7ec202ca9e353d310fb9a002" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "zmij" +version = "1.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" From b28cfe965c3e4f1379aae9918c94b743fc0b8a19 Mon Sep 17 00:00:00 2001 From: Chris O'Neil Date: Mon, 16 Mar 2026 15:49:21 +0000 Subject: [PATCH 06/11] fix: adapt to saorsa-core MetricEvent API changes - StrategyStats.name replaced with strategy: StrategyChoice enum; format via Debug when rendering Prometheus labels - HandshakeCompleted.duration and ConnectionEstablished.duration are now Option; guard with if-let before recording latency - Add match arm for new ConnectionLost metric event variant - Update test fixtures and assertions accordingly Co-Authored-By: Claude Opus 4.6 (1M context) --- Cargo.lock | 4 ++-- src/metrics/aggregator.rs | 14 ++++++++++---- src/metrics/prometheus.rs | 22 +++++++++++----------- 3 files changed, 23 insertions(+), 17 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fc19198b..63e7acfa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2122,7 +2122,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ab67060fc6b8ef687992d439ca0fa36e7ed17e9a0b16b25b601e8757df720de" dependencies = [ "data-encoding", - "syn 2.0.117", + "syn 1.0.109", ] [[package]] @@ -5220,7 +5220,7 @@ dependencies = [ [[package]] name = "saorsa-core" version = "0.15.0" -source = "git+https://github.com/jacderida/saorsa-core?branch=feat-metrics_phase2#e13b41bd11dcd46494314ba350a5216f82dade64" +source = "git+https://github.com/jacderida/saorsa-core?branch=feat-metrics_phase2#1f1433560cda615ad118927ade1f8371639f5eba" dependencies = [ "anyhow", "argon2", diff --git a/src/metrics/aggregator.rs b/src/metrics/aggregator.rs index b72aa7a8..88c184c1 100644 --- a/src/metrics/aggregator.rs +++ b/src/metrics/aggregator.rs @@ -226,8 +226,14 @@ impl MetricsAggregator { *map.entry(key).or_insert(0) += 1; } MetricEvent::HandshakeCompleted { duration } => { - let micros = duration.as_micros().min(u128::from(u64::MAX)) as u64; - push_window(&self.handshake_latencies, micros).await; + if let Some(d) = duration { + let micros = d.as_micros().min(u128::from(u64::MAX)) as u64; + push_window(&self.handshake_latencies, micros).await; + } + } + MetricEvent::ConnectionLost { .. } => { + // Connection loss is tracked via P2PEvent::PeerDisconnected (pull-based). + // No additional event-driven aggregation needed here. } // --- Phase 2: Replication --- MetricEvent::ReplicationStarted { .. } => { @@ -542,7 +548,7 @@ mod tests { async fn handshake_latency() { let agg = MetricsAggregator::new(); agg.handle_metric_event(MetricEvent::HandshakeCompleted { - duration: Duration::from_millis(120), + duration: Some(Duration::from_millis(120)), }) .await; @@ -612,7 +618,7 @@ mod tests { async fn connection_established_no_panic() { let agg = MetricsAggregator::new(); agg.handle_metric_event(MetricEvent::ConnectionEstablished { - duration: Duration::from_millis(50), + duration: Some(Duration::from_millis(50)), nat_type: ConnectionNatType::Direct, }) .await; diff --git a/src/metrics/prometheus.rs b/src/metrics/prometheus.rs index 3900dfc7..ce5becd9 100644 --- a/src/metrics/prometheus.rs +++ b/src/metrics/prometheus.rs @@ -1286,7 +1286,7 @@ impl PrometheusFormatter { writeln!( out, "p2p_strategy_selections_total{{strategy=\"{}\"}} {}", - s.name, s.selections + format!("{:?}", s.strategy), s.selections )?; } @@ -1299,7 +1299,7 @@ impl PrometheusFormatter { writeln!( out, "p2p_strategy_successes_total{{strategy=\"{}\"}} {}", - s.name, s.successes + format!("{:?}", s.strategy), s.successes )?; } @@ -1312,7 +1312,7 @@ impl PrometheusFormatter { writeln!( out, "p2p_strategy_estimated_success_rate{{strategy=\"{}\"}} {:.6}", - s.name, s.estimated_success_rate + format!("{:?}", s.strategy), s.estimated_success_rate )?; } @@ -1325,7 +1325,7 @@ impl PrometheusFormatter { writeln!( out, "p2p_strategy_alpha{{strategy=\"{}\"}} {:.6}", - s.name, s.alpha + format!("{:?}", s.strategy), s.alpha )?; } @@ -1338,7 +1338,7 @@ impl PrometheusFormatter { writeln!( out, "p2p_strategy_beta{{strategy=\"{}\"}} {:.6}", - s.name, s.beta + format!("{:?}", s.strategy), s.beta )?; } @@ -1430,7 +1430,7 @@ mod tests { let mut snapshot = default_snapshot(); snapshot.strategy_stats = vec![ StrategyStats { - name: "kademlia".to_string(), + strategy: saorsa_core::adaptive::StrategyChoice::Kademlia, selections: 100, successes: 90, alpha: 91.0, @@ -1438,7 +1438,7 @@ mod tests { estimated_success_rate: 0.9, }, StrategyStats { - name: "hyperbolic".to_string(), + strategy: saorsa_core::adaptive::StrategyChoice::Hyperbolic, selections: 50, successes: 45, alpha: 46.0, @@ -1450,8 +1450,8 @@ mod tests { let output = PrometheusFormatter::format(&agg, &snapshot).await.unwrap(); // Verify contiguous grouping: all selections_total lines together - assert!(output.contains("p2p_strategy_selections_total{strategy=\"kademlia\"} 100")); - assert!(output.contains("p2p_strategy_selections_total{strategy=\"hyperbolic\"} 50")); + assert!(output.contains("p2p_strategy_selections_total{strategy=\"Kademlia\"} 100")); + assert!(output.contains("p2p_strategy_selections_total{strategy=\"Hyperbolic\"} 50")); } #[tokio::test] @@ -1482,7 +1482,7 @@ mod tests { async fn phase2_handshake_metrics() { let agg = MetricsAggregator::new(); agg.handle_metric_event(MetricEvent::HandshakeCompleted { - duration: Duration::from_millis(100), + duration: Some(Duration::from_millis(100)), }) .await; @@ -1604,7 +1604,7 @@ mod tests { let agg = MetricsAggregator::new(); // Generate some phase 2 events to populate all paths agg.handle_metric_event(MetricEvent::HandshakeCompleted { - duration: Duration::from_millis(50), + duration: Some(Duration::from_millis(50)), }) .await; agg.handle_metric_event(MetricEvent::ConnectionFailed { From 20af5c9ff5a82e6661e017edb14767ea87579089 Mon Sep 17 00:00:00 2001 From: Chris O'Neil Date: Mon, 16 Mar 2026 17:42:27 +0000 Subject: [PATCH 07/11] fix: address CI failures and review feedback - Fix all clippy pedantic/nursery lints without blanket #[allow]: - Replace u128-as-u64 casts with u64::try_from().unwrap_or() - Extract helper functions (ratio, percentile_index, duration_to_micros) - Drop RwLock guards early to fix significant_drop_tightening - Split long functions (security, trust, placement, transport metrics) - Use #[expect] for unavoidable u64->f64 precision-loss casts - Fix format! in format_args, pass StreamClass by value, use Option<&T> - Combine identical ConnectionEstablished/ConnectionLost match arms - Fix formatting issues (cargo fmt) - Fix e2e test compilation: convert Vec to Vec - Address review comments: - Move metrics server log inside spawned task after bind succeeds - Fix JSON error responses with serde_json::json! for proper escaping - Only start metric event loop when metrics are enabled Co-Authored-By: Claude Opus 4.6 (1M context) --- src/metrics/aggregator.rs | 136 +++++++++++++++------- src/metrics/prometheus.rs | 239 ++++++++++++++++++++++++++++---------- src/node.rs | 14 ++- tests/e2e/live_testnet.rs | 5 +- tests/e2e/testnet.rs | 8 +- 5 files changed, 283 insertions(+), 119 deletions(-) diff --git a/src/metrics/aggregator.rs b/src/metrics/aggregator.rs index 88c184c1..66678f6d 100644 --- a/src/metrics/aggregator.rs +++ b/src/metrics/aggregator.rs @@ -14,8 +14,36 @@ use tokio::sync::RwLock; /// Maximum number of samples retained in each sliding window. const WINDOW_SIZE: usize = 1000; +/// Convert a `Duration` to microseconds clamped to `u64::MAX`. +fn duration_to_micros(d: Duration) -> u64 { + u64::try_from(d.as_micros()).unwrap_or(u64::MAX) +} + +/// Integer-to-float ratio. Precision loss above 2^52 is acceptable for metrics. +fn ratio(numerator: u64, denominator: u64) -> f64 { + #[expect(clippy::cast_precision_loss)] + let num = numerator as f64; + #[expect(clippy::cast_precision_loss)] + let den = denominator as f64; + num / den +} + +/// Compute the index into a sorted slice for the given percentile `p` (0--100). +fn percentile_index(len: usize, p: f64) -> usize { + if len == 0 { + return 0; + } + #[expect(clippy::cast_precision_loss)] + let len_f = (len - 1) as f64; + let raw = (p / 100.0 * len_f).round().max(0.0).min(len_f); + // `raw` is in [0, len-1] which always fits in usize. + #[expect(clippy::cast_possible_truncation, clippy::cast_sign_loss)] + let idx = raw as usize; + idx +} + /// Counters for a single storage operation type (read / write / delete). -pub(crate) struct OperationCounter { +pub struct OperationCounter { pub total: AtomicU64, pub errors: AtomicU64, pub durations: RwLock>, @@ -35,7 +63,7 @@ impl OperationCounter { if !success { self.errors.fetch_add(1, Ordering::Relaxed); } - let micros = duration.as_micros().min(u128::from(u64::MAX)) as u64; + let micros = duration_to_micros(duration); let mut window = self.durations.write().await; if window.len() >= WINDOW_SIZE { window.pop_front(); @@ -44,6 +72,25 @@ impl OperationCounter { } } +/// Push a sample into a keyed map of bounded sliding windows. +/// +/// The write guard must stay alive while we mutate the inner `VecDeque`. +#[expect(clippy::significant_drop_tightening)] +async fn push_map_window( + map_lock: &RwLock>>, + key: StreamClass, + value: u64, +) { + let mut map = map_lock.write().await; + let window = map + .entry(key) + .or_insert_with(|| VecDeque::with_capacity(WINDOW_SIZE)); + if window.len() >= WINDOW_SIZE { + window.pop_front(); + } + window.push_back(value); +} + /// Push a microsecond sample into a bounded sliding window. async fn push_window(window: &RwLock>, micros: u64) { let mut w = window.write().await; @@ -158,7 +205,7 @@ impl MetricsAggregator { match event { MetricEvent::LookupCompleted { duration, hops } => { self.lookup_count.fetch_add(1, Ordering::Relaxed); - let micros = duration.as_micros().min(u128::from(u64::MAX)) as u64; + let micros = duration_to_micros(duration); push_window(&self.lookup_latencies, micros).await; { let mut w = self.lookup_hops.write().await; @@ -177,7 +224,7 @@ impl MetricsAggregator { if success { self.dht_puts_success.fetch_add(1, Ordering::Relaxed); } - let micros = duration.as_micros().min(u128::from(u64::MAX)) as u64; + let micros = duration_to_micros(duration); push_window(&self.dht_put_latencies, micros).await; } MetricEvent::DhtGetCompleted { duration, success } => { @@ -185,7 +232,7 @@ impl MetricsAggregator { if success { self.dht_gets_success.fetch_add(1, Ordering::Relaxed); } - let micros = duration.as_micros().min(u128::from(u64::MAX)) as u64; + let micros = duration_to_micros(duration); push_window(&self.dht_get_latencies, micros).await; } MetricEvent::AuthFailure => { @@ -195,31 +242,13 @@ impl MetricsAggregator { class, bytes_per_sec, } => { - let mut map = self.stream_bandwidth.write().await; - let window = map - .entry(class) - .or_insert_with(|| VecDeque::with_capacity(WINDOW_SIZE)); - if window.len() >= WINDOW_SIZE { - window.pop_front(); - } - window.push_back(bytes_per_sec); + self.record_stream_bandwidth(class, bytes_per_sec).await; } MetricEvent::StreamRtt { class, rtt } => { - let micros = rtt.as_micros().min(u128::from(u64::MAX)) as u64; - let mut map = self.stream_rtt.write().await; - let window = map - .entry(class) - .or_insert_with(|| VecDeque::with_capacity(WINDOW_SIZE)); - if window.len() >= WINDOW_SIZE { - window.pop_front(); - } - window.push_back(micros); + self.record_stream_rtt(class, rtt).await; } // --- Phase 2: Transport --- - MetricEvent::ConnectionEstablished { .. } => { - // Connection counts are tracked in TransportStats (pull-based). - // No additional event-driven aggregation needed here. - } + MetricEvent::ConnectionEstablished { .. } | MetricEvent::ConnectionLost { .. } => {} MetricEvent::ConnectionFailed { reason } => { let key = format!("{reason:?}"); let mut map = self.connection_failures_by_reason.write().await; @@ -227,14 +256,10 @@ impl MetricsAggregator { } MetricEvent::HandshakeCompleted { duration } => { if let Some(d) = duration { - let micros = d.as_micros().min(u128::from(u64::MAX)) as u64; + let micros = duration_to_micros(d); push_window(&self.handshake_latencies, micros).await; } } - MetricEvent::ConnectionLost { .. } => { - // Connection loss is tracked via P2PEvent::PeerDisconnected (pull-based). - // No additional event-driven aggregation needed here. - } // --- Phase 2: Replication --- MetricEvent::ReplicationStarted { .. } => { self.replication_cycles_total @@ -245,7 +270,7 @@ impl MetricsAggregator { keys_repaired, bytes_transferred, } => { - let micros = duration.as_micros().min(u128::from(u64::MAX)) as u64; + let micros = duration_to_micros(duration); push_window(&self.replication_durations, micros).await; self.replication_keys_repaired_total .fetch_add(keys_repaired, Ordering::Relaxed); @@ -261,6 +286,17 @@ impl MetricsAggregator { } } + /// Record a stream bandwidth sample. + async fn record_stream_bandwidth(&self, class: StreamClass, bytes_per_sec: u64) { + push_map_window(&self.stream_bandwidth, class, bytes_per_sec).await; + } + + /// Record a stream RTT sample. + async fn record_stream_rtt(&self, class: StreamClass, rtt: Duration) { + let micros = duration_to_micros(rtt); + push_map_window(&self.stream_rtt, class, micros).await; + } + // ---- Peer connection tracking (from P2PEvent) ---- /// Record a new peer connection. @@ -325,7 +361,8 @@ impl MetricsAggregator { if total == 0 { return 0.0; } - self.lookup_timeouts.load(Ordering::Relaxed) as f64 / total as f64 + let timeouts = self.lookup_timeouts.load(Ordering::Relaxed); + ratio(timeouts, total) } /// DHT success rate across all puts and gets. @@ -337,7 +374,7 @@ impl MetricsAggregator { } let success = self.dht_puts_success.load(Ordering::Relaxed) + self.dht_gets_success.load(Ordering::Relaxed); - success as f64 / total as f64 + ratio(success, total) } /// Total DHT operations per second since node start. @@ -348,7 +385,9 @@ impl MetricsAggregator { if elapsed < 1.0 { return 0.0; } - total as f64 / elapsed + #[expect(clippy::cast_precision_loss)] + let total_f = total as f64; + total_f / elapsed } } @@ -360,23 +399,23 @@ impl Default for MetricsAggregator { // ---- Percentile helpers ---- -/// Compute a percentile (0–100) from a sorted slice of u64 values. +/// Compute a percentile (0--100) from a sorted slice of u64 values. /// Returns 0 if the slice is empty. -pub(crate) fn percentile_u64(sorted: &[u64], p: f64) -> u64 { +pub fn percentile_u64(sorted: &[u64], p: f64) -> u64 { if sorted.is_empty() { return 0; } - let idx = ((p / 100.0) * (sorted.len() as f64 - 1.0)).round().max(0.0) as usize; + let idx = percentile_index(sorted.len(), p); sorted[idx.min(sorted.len() - 1)] } -/// Compute a percentile (0–100) from a sorted slice of u8 values. +/// Compute a percentile (0--100) from a sorted slice of u8 values. /// Returns 0 if the slice is empty. -pub(crate) fn percentile_u8(sorted: &[u8], p: f64) -> u8 { +pub fn percentile_u8(sorted: &[u8], p: f64) -> u8 { if sorted.is_empty() { return 0; } - let idx = ((p / 100.0) * (sorted.len() as f64 - 1.0)).round().max(0.0) as usize; + let idx = percentile_index(sorted.len(), p); sorted[idx.min(sorted.len() - 1)] } @@ -524,10 +563,14 @@ mod tests { .await; let bw = agg.stream_bandwidth.read().await; - assert_eq!(bw.get(&StreamClass::File).map(VecDeque::len), Some(1)); + let bw_len = bw.get(&StreamClass::File).map(VecDeque::len); + drop(bw); + assert_eq!(bw_len, Some(1)); let rtt = agg.stream_rtt.read().await; - assert_eq!(rtt.get(&StreamClass::Control).map(VecDeque::len), Some(1)); + let rtt_len = rtt.get(&StreamClass::Control).map(VecDeque::len); + drop(rtt); + assert_eq!(rtt_len, Some(1)); } #[tokio::test] @@ -576,8 +619,11 @@ mod tests { .await; let map = agg.connection_failures_by_reason.read().await; - assert_eq!(map.get("Timeout"), Some(&2)); - assert_eq!(map.get("NatTraversalFailed"), Some(&1)); + let timeout_count = map.get("Timeout").copied(); + let nat_count = map.get("NatTraversalFailed").copied(); + drop(map); + assert_eq!(timeout_count, Some(2)); + assert_eq!(nat_count, Some(1)); } #[tokio::test] diff --git a/src/metrics/prometheus.rs b/src/metrics/prometheus.rs index ce5becd9..aaa7b56b 100644 --- a/src/metrics/prometheus.rs +++ b/src/metrics/prometheus.rs @@ -16,7 +16,7 @@ use saorsa_core::dht::metrics::{ }; use saorsa_core::identity::PeerId; use saorsa_core::{StrategyStats, StreamClass, TransportStats}; -use std::collections::{HashMap, VecDeque}; +use std::collections::HashMap; use std::fmt::Write; use std::sync::atomic::Ordering; @@ -43,9 +43,12 @@ impl PrometheusFormatter { Self::format_storage_metrics(&mut out, aggregator).await?; Self::format_routing_table_metrics(&mut out, &snapshot.dht_health)?; Self::format_replication_metrics(&mut out, &snapshot.dht_health)?; - Self::format_security_metrics(&mut out, &snapshot.security)?; - Self::format_trust_metrics(&mut out, &snapshot.trust, &snapshot.trust_scores)?; - Self::format_placement_metrics(&mut out, &snapshot.placement)?; + Self::format_security_attack_metrics(&mut out, &snapshot.security)?; + Self::format_security_operational_metrics(&mut out, &snapshot.security)?; + Self::format_trust_metrics(&mut out, &snapshot.trust)?; + Self::format_trust_distribution(&mut out, &snapshot.trust, snapshot.trust_scores.as_ref())?; + Self::format_placement_storage_metrics(&mut out, &snapshot.placement)?; + Self::format_placement_balance_metrics(&mut out, &snapshot.placement)?; Self::format_transport_metrics(&mut out, &snapshot.transport)?; Self::format_strategy_metrics(&mut out, &snapshot.strategy_stats)?; @@ -53,7 +56,8 @@ impl PrometheusFormatter { Self::format_handshake_metrics(&mut out, aggregator).await?; Self::format_dht_latency_metrics(&mut out, aggregator).await?; Self::format_ops_per_second(&mut out, aggregator)?; - Self::format_extended_transport_metrics(&mut out, &snapshot.transport)?; + Self::format_transport_connection_metrics(&mut out, &snapshot.transport)?; + Self::format_transport_nat_metrics(&mut out, &snapshot.transport)?; Self::format_connection_failure_breakdown(&mut out, aggregator).await?; Self::format_replication_timing_metrics(&mut out, aggregator).await?; @@ -83,11 +87,17 @@ impl PrometheusFormatter { // Latency percentiles { - let window = agg.lookup_latencies.read().await; - let mut sorted: Vec = window.iter().copied().collect(); + let latency_data: Vec = { + let window = agg.lookup_latencies.read().await; + window.iter().copied().collect() + }; + let mut sorted = latency_data; sorted.sort_unstable(); + #[expect(clippy::cast_precision_loss)] let p50 = percentile_u64(&sorted, 50.0) as f64 / 1000.0; + #[expect(clippy::cast_precision_loss)] let p95 = percentile_u64(&sorted, 95.0) as f64 / 1000.0; + #[expect(clippy::cast_precision_loss)] let p99 = percentile_u64(&sorted, 99.0) as f64 / 1000.0; writeln!( @@ -114,8 +124,11 @@ impl PrometheusFormatter { // Hop count percentiles { - let window = agg.lookup_hops.read().await; - let mut sorted: Vec = window.iter().copied().collect(); + let hop_data: Vec = { + let window = agg.lookup_hops.read().await; + window.iter().copied().collect() + }; + let mut sorted = hop_data; sorted.sort_unstable(); let p50 = percentile_u8(&sorted, 50.0); let p95 = percentile_u8(&sorted, 95.0); @@ -192,19 +205,24 @@ impl PrometheusFormatter { } async fn format_stream_metrics(out: &mut String, agg: &MetricsAggregator) -> std::fmt::Result { - // Bandwidth + // Bandwidth — collect data from guard, then drop guard before formatting { - let guard = agg.stream_bandwidth.read().await; - let map: &HashMap> = &guard; - if !map.is_empty() { + let bandwidth_data: Vec<(StreamClass, Vec)> = { + let guard = agg.stream_bandwidth.read().await; + guard + .iter() + .map(|(class, window)| (*class, window.iter().copied().collect())) + .collect() + }; + if !bandwidth_data.is_empty() { writeln!( out, "# HELP p2p_stream_bandwidth_p50_bytes_per_sec Stream bandwidth p50" )?; writeln!(out, "# TYPE p2p_stream_bandwidth_p50_bytes_per_sec gauge")?; - for (class, window) in map { - let label = stream_class_label(class); - let mut sorted: Vec = window.iter().copied().collect(); + for (class, window) in &bandwidth_data { + let label = stream_class_label(*class); + let mut sorted = window.clone(); sorted.sort_unstable(); let p50 = percentile_u64(&sorted, 50.0); writeln!( @@ -217,9 +235,9 @@ impl PrometheusFormatter { "# HELP p2p_stream_bandwidth_p95_bytes_per_sec Stream bandwidth p95" )?; writeln!(out, "# TYPE p2p_stream_bandwidth_p95_bytes_per_sec gauge")?; - for (class, window) in map { - let label = stream_class_label(class); - let mut sorted: Vec = window.iter().copied().collect(); + for (class, window) in &bandwidth_data { + let label = stream_class_label(*class); + let mut sorted = window.clone(); sorted.sort_unstable(); let p95 = percentile_u64(&sorted, 95.0); writeln!( @@ -230,20 +248,26 @@ impl PrometheusFormatter { } } - // RTT + // RTT — collect data from guard, then drop guard before formatting { - let guard = agg.stream_rtt.read().await; - let map: &HashMap> = &guard; - if !map.is_empty() { + let rtt_data: Vec<(StreamClass, Vec)> = { + let guard = agg.stream_rtt.read().await; + guard + .iter() + .map(|(class, window)| (*class, window.iter().copied().collect())) + .collect() + }; + if !rtt_data.is_empty() { writeln!( out, "# HELP p2p_stream_rtt_p50_ms Stream RTT p50 in milliseconds" )?; writeln!(out, "# TYPE p2p_stream_rtt_p50_ms gauge")?; - for (class, window) in map { - let label = stream_class_label(class); - let mut sorted: Vec = window.iter().copied().collect(); + for (class, window) in &rtt_data { + let label = stream_class_label(*class); + let mut sorted = window.clone(); sorted.sort_unstable(); + #[expect(clippy::cast_precision_loss)] let p50 = percentile_u64(&sorted, 50.0) as f64 / 1000.0; writeln!(out, "p2p_stream_rtt_p50_ms{{class=\"{label}\"}} {p50:.3}")?; } @@ -252,10 +276,11 @@ impl PrometheusFormatter { "# HELP p2p_stream_rtt_p95_ms Stream RTT p95 in milliseconds" )?; writeln!(out, "# TYPE p2p_stream_rtt_p95_ms gauge")?; - for (class, window) in map { - let label = stream_class_label(class); - let mut sorted: Vec = window.iter().copied().collect(); + for (class, window) in &rtt_data { + let label = stream_class_label(*class); + let mut sorted = window.clone(); sorted.sort_unstable(); + #[expect(clippy::cast_precision_loss)] let p95 = percentile_u64(&sorted, 95.0) as f64 / 1000.0; writeln!(out, "p2p_stream_rtt_p95_ms{{class=\"{label}\"}} {p95:.3}")?; } @@ -288,8 +313,11 @@ impl PrometheusFormatter { writeln!(out, "# TYPE p2p_storage_{op}_errors_total counter")?; writeln!(out, "p2p_storage_{op}_errors_total {errors}")?; - let window = counter.durations.read().await; - if window.is_empty() { + let durations: Vec = { + let window = counter.durations.read().await; + window.iter().copied().collect() + }; + if durations.is_empty() { writeln!( out, "# HELP p2p_storage_{op}_avg_duration_ms Average {op} duration in ms" @@ -309,10 +337,13 @@ impl PrometheusFormatter { writeln!(out, "# TYPE p2p_storage_{op}_max_duration_ms gauge")?; writeln!(out, "p2p_storage_{op}_max_duration_ms 0")?; } else { - let sum: u64 = window.iter().sum(); - let avg_ms = (sum as f64 / window.len() as f64) / 1000.0; - let min_ms = window.iter().copied().min().unwrap_or(0) as f64 / 1000.0; - let max_ms = window.iter().copied().max().unwrap_or(0) as f64 / 1000.0; + let sum: u64 = durations.iter().sum(); + #[expect(clippy::cast_precision_loss)] + let avg_ms = (sum as f64 / durations.len() as f64) / 1000.0; + #[expect(clippy::cast_precision_loss)] + let min_ms = durations.iter().copied().min().unwrap_or(0) as f64 / 1000.0; + #[expect(clippy::cast_precision_loss)] + let max_ms = durations.iter().copied().max().unwrap_or(0) as f64 / 1000.0; writeln!( out, @@ -440,7 +471,7 @@ impl PrometheusFormatter { Ok(()) } - fn format_security_metrics(out: &mut String, m: &SecurityMetrics) -> std::fmt::Result { + fn format_security_attack_metrics(out: &mut String, m: &SecurityMetrics) -> std::fmt::Result { writeln!( out, "# HELP p2p_security_eclipse_score Eclipse attack risk score" @@ -501,6 +532,13 @@ impl PrometheusFormatter { m.collusion_groups_detected_total )?; + Ok(()) + } + + fn format_security_operational_metrics( + out: &mut String, + m: &SecurityMetrics, + ) -> std::fmt::Result { writeln!( out, "# HELP p2p_security_bft_mode_active BFT consensus mode active" @@ -555,6 +593,15 @@ impl PrometheusFormatter { m.nodes_evicted_total )?; + Self::format_security_validation_metrics(out, m)?; + + Ok(()) + } + + fn format_security_validation_metrics( + out: &mut String, + m: &SecurityMetrics, + ) -> std::fmt::Result { writeln!( out, "# HELP p2p_security_witness_validations_total Total witness validations" @@ -616,11 +663,7 @@ impl PrometheusFormatter { Ok(()) } - fn format_trust_metrics( - out: &mut String, - m: &TrustMetrics, - trust_scores: &Option>, - ) -> std::fmt::Result { + fn format_trust_metrics(out: &mut String, m: &TrustMetrics) -> std::fmt::Result { writeln!( out, "# HELP p2p_trust_eigentrust_avg Average EigenTrust score" @@ -693,6 +736,12 @@ impl PrometheusFormatter { m.negative_interactions_total )?; + Self::format_trust_witness_metrics(out, m)?; + + Ok(()) + } + + fn format_trust_witness_metrics(out: &mut String, m: &TrustMetrics) -> std::fmt::Result { writeln!( out, "# HELP p2p_trust_witness_receipts_issued_total Witness receipts issued" @@ -735,12 +784,21 @@ impl PrometheusFormatter { m.witness_receipts_rejected_total )?; + Ok(()) + } + + fn format_trust_distribution( + out: &mut String, + m: &TrustMetrics, + trust_scores: Option<&HashMap>, + ) -> std::fmt::Result { // Trust score distribution from cached global trust if let Some(scores) = trust_scores { if !scores.is_empty() { let mut buckets = [0u64; 10]; for score in scores.values() { - let idx = (score * 10.0).floor().min(9.0).max(0.0) as usize; + #[expect(clippy::cast_possible_truncation, clippy::cast_sign_loss)] + let idx = (score * 10.0).floor().clamp(0.0, 9.0) as usize; buckets[idx] += 1; } writeln!( @@ -749,7 +807,9 @@ impl PrometheusFormatter { )?; writeln!(out, "# TYPE p2p_trust_score_distribution gauge")?; for (i, count) in buckets.iter().enumerate() { + #[expect(clippy::cast_precision_loss)] let lo = i as f64 / 10.0; + #[expect(clippy::cast_precision_loss)] let hi = (i + 1) as f64 / 10.0; writeln!( out, @@ -781,7 +841,10 @@ impl PrometheusFormatter { Ok(()) } - fn format_placement_metrics(out: &mut String, m: &PlacementMetrics) -> std::fmt::Result { + fn format_placement_storage_metrics( + out: &mut String, + m: &PlacementMetrics, + ) -> std::fmt::Result { writeln!( out, "# HELP p2p_placement_total_stored_bytes Total bytes stored" @@ -847,6 +910,13 @@ impl PrometheusFormatter { m.used_capacity_ratio )?; + Ok(()) + } + + fn format_placement_balance_metrics( + out: &mut String, + m: &PlacementMetrics, + ) -> std::fmt::Result { writeln!( out, "# HELP p2p_placement_load_balance_score Load balance score" @@ -935,11 +1005,17 @@ impl PrometheusFormatter { out: &mut String, agg: &MetricsAggregator, ) -> std::fmt::Result { - let window = agg.handshake_latencies.read().await; - let mut sorted: Vec = window.iter().copied().collect(); + let latency_data: Vec = { + let window = agg.handshake_latencies.read().await; + window.iter().copied().collect() + }; + let mut sorted = latency_data; sorted.sort_unstable(); + #[expect(clippy::cast_precision_loss)] let p50 = percentile_u64(&sorted, 50.0) as f64 / 1000.0; + #[expect(clippy::cast_precision_loss)] let p95 = percentile_u64(&sorted, 95.0) as f64 / 1000.0; + #[expect(clippy::cast_precision_loss)] let p99 = percentile_u64(&sorted, 99.0) as f64 / 1000.0; writeln!( @@ -972,11 +1048,17 @@ impl PrometheusFormatter { ) -> std::fmt::Result { // DHT put latencies { - let window = agg.dht_put_latencies.read().await; - let mut sorted: Vec = window.iter().copied().collect(); + let put_data: Vec = { + let window = agg.dht_put_latencies.read().await; + window.iter().copied().collect() + }; + let mut sorted = put_data; sorted.sort_unstable(); + #[expect(clippy::cast_precision_loss)] let p50 = percentile_u64(&sorted, 50.0) as f64 / 1000.0; + #[expect(clippy::cast_precision_loss)] let p95 = percentile_u64(&sorted, 95.0) as f64 / 1000.0; + #[expect(clippy::cast_precision_loss)] let p99 = percentile_u64(&sorted, 99.0) as f64 / 1000.0; writeln!( @@ -1003,11 +1085,17 @@ impl PrometheusFormatter { // DHT get latencies { - let window = agg.dht_get_latencies.read().await; - let mut sorted: Vec = window.iter().copied().collect(); + let get_data: Vec = { + let window = agg.dht_get_latencies.read().await; + window.iter().copied().collect() + }; + let mut sorted = get_data; sorted.sort_unstable(); + #[expect(clippy::cast_precision_loss)] let p50 = percentile_u64(&sorted, 50.0) as f64 / 1000.0; + #[expect(clippy::cast_precision_loss)] let p95 = percentile_u64(&sorted, 95.0) as f64 / 1000.0; + #[expect(clippy::cast_precision_loss)] let p99 = percentile_u64(&sorted, 99.0) as f64 / 1000.0; writeln!( @@ -1046,7 +1134,10 @@ impl PrometheusFormatter { Ok(()) } - fn format_extended_transport_metrics(out: &mut String, m: &TransportStats) -> std::fmt::Result { + fn format_transport_connection_metrics( + out: &mut String, + m: &TransportStats, + ) -> std::fmt::Result { writeln!( out, "# HELP p2p_transport_total_connections_established Total connections established" @@ -1076,7 +1167,9 @@ impl PrometheusFormatter { let success_rate = if total_attempts == 0 { 0.0 } else { - m.total_connections_established as f64 / total_attempts as f64 + #[expect(clippy::cast_precision_loss)] + let rate = m.total_connections_established as f64 / total_attempts as f64; + rate }; writeln!( out, @@ -1106,6 +1199,10 @@ impl PrometheusFormatter { m.bytes_received_total )?; + Ok(()) + } + + fn format_transport_nat_metrics(out: &mut String, m: &TransportStats) -> std::fmt::Result { writeln!( out, "# HELP p2p_transport_nat_traversal_attempts_total Total NAT traversal attempts" @@ -1137,7 +1234,9 @@ impl PrometheusFormatter { let nat_rate = if m.nat_traversal_attempts == 0 { 0.0 } else { - m.nat_traversal_successes as f64 / m.nat_traversal_attempts as f64 + #[expect(clippy::cast_precision_loss)] + let rate = m.nat_traversal_successes as f64 / m.nat_traversal_attempts as f64; + rate }; writeln!( out, @@ -1167,9 +1266,11 @@ impl PrometheusFormatter { out: &mut String, agg: &MetricsAggregator, ) -> std::fmt::Result { - let guard = agg.connection_failures_by_reason.read().await; - let map: &HashMap = &guard; - if !map.is_empty() { + let failure_data: Vec<(String, u64)> = { + let guard = agg.connection_failures_by_reason.read().await; + guard.iter().map(|(k, v)| (k.clone(), *v)).collect() + }; + if !failure_data.is_empty() { writeln!( out, "# HELP p2p_transport_connection_failures_by_reason Connection failures by reason" @@ -1178,7 +1279,7 @@ impl PrometheusFormatter { out, "# TYPE p2p_transport_connection_failures_by_reason counter" )?; - for (reason, count) in map { + for (reason, count) in &failure_data { writeln!( out, "p2p_transport_connection_failures_by_reason{{reason=\"{reason}\"}} {count}" @@ -1201,10 +1302,15 @@ impl PrometheusFormatter { writeln!(out, "p2p_replication_cycles_total {cycles}")?; { - let window = agg.replication_durations.read().await; - let mut sorted: Vec = window.iter().copied().collect(); + let duration_data: Vec = { + let window = agg.replication_durations.read().await; + window.iter().copied().collect() + }; + let mut sorted = duration_data; sorted.sort_unstable(); + #[expect(clippy::cast_precision_loss)] let p50 = percentile_u64(&sorted, 50.0) as f64 / 1000.0; + #[expect(clippy::cast_precision_loss)] let p95 = percentile_u64(&sorted, 95.0) as f64 / 1000.0; writeln!( @@ -1286,7 +1392,8 @@ impl PrometheusFormatter { writeln!( out, "p2p_strategy_selections_total{{strategy=\"{}\"}} {}", - format!("{:?}", s.strategy), s.selections + format_args!("{:?}", s.strategy), + s.selections )?; } @@ -1299,7 +1406,8 @@ impl PrometheusFormatter { writeln!( out, "p2p_strategy_successes_total{{strategy=\"{}\"}} {}", - format!("{:?}", s.strategy), s.successes + format_args!("{:?}", s.strategy), + s.successes )?; } @@ -1312,7 +1420,8 @@ impl PrometheusFormatter { writeln!( out, "p2p_strategy_estimated_success_rate{{strategy=\"{}\"}} {:.6}", - format!("{:?}", s.strategy), s.estimated_success_rate + format_args!("{:?}", s.strategy), + s.estimated_success_rate )?; } @@ -1325,7 +1434,8 @@ impl PrometheusFormatter { writeln!( out, "p2p_strategy_alpha{{strategy=\"{}\"}} {:.6}", - format!("{:?}", s.strategy), s.alpha + format_args!("{:?}", s.strategy), + s.alpha )?; } @@ -1338,7 +1448,8 @@ impl PrometheusFormatter { writeln!( out, "p2p_strategy_beta{{strategy=\"{}\"}} {:.6}", - format!("{:?}", s.strategy), s.beta + format_args!("{:?}", s.strategy), + s.beta )?; } @@ -1347,7 +1458,7 @@ impl PrometheusFormatter { } /// Map [`StreamClass`] to a Prometheus label value. -fn stream_class_label(class: &StreamClass) -> &'static str { +fn stream_class_label(class: StreamClass) -> &'static str { match class { StreamClass::Control => "control", StreamClass::Mls => "mls", diff --git a/src/node.rs b/src/node.rs index 0eeba237..5da26ef9 100644 --- a/src/node.rs +++ b/src/node.rs @@ -607,7 +607,9 @@ impl RunningNode { // Subscribe to metric events before starting the P2P node so we // don't miss connection/handshake events emitted during startup. - self.start_metric_event_loop(); + if self.config.metrics_port != 0 { + self.start_metric_event_loop(); + } // Start the P2P node self.p2p_node @@ -825,6 +827,8 @@ impl RunningNode { } }; + info!("Metrics server listening on {metrics_addr}"); + let server = axum::serve(listener, app).with_graceful_shutdown(async { let _ = shutdown_rx.await; }); @@ -833,8 +837,6 @@ impl RunningNode { error!("Metrics server error: {e}"); } })); - - info!("Metrics server listening on {metrics_addr}"); } /// Start the protocol message routing background task. @@ -963,7 +965,7 @@ async fn health_handler( Err(e) => ( axum::http::StatusCode::INTERNAL_SERVER_ERROR, [(header::CONTENT_TYPE, "application/json")], - format!("{{\"error\":\"{e}\"}}"), + serde_json::json!({"error": e.to_string()}).to_string(), ), } } @@ -985,7 +987,7 @@ async fn ready_handler( Err(e) => ( axum::http::StatusCode::INTERNAL_SERVER_ERROR, [(header::CONTENT_TYPE, "application/json")], - format!("{{\"error\":\"{e}\"}}"), + serde_json::json!({"error": e.to_string()}).to_string(), ), } } @@ -1038,7 +1040,7 @@ async fn debug_handler( Err(e) => ( axum::http::StatusCode::INTERNAL_SERVER_ERROR, [(header::CONTENT_TYPE, "application/json")], - format!("{{\"error\":\"{e}\"}}"), + serde_json::json!({"error": e.to_string()}).to_string(), ), } } diff --git a/tests/e2e/live_testnet.rs b/tests/e2e/live_testnet.rs index 87affe1b..6e8bb8f0 100644 --- a/tests/e2e/live_testnet.rs +++ b/tests/e2e/live_testnet.rs @@ -42,7 +42,10 @@ async fn create_testnet_client() -> P2PNode { println!("Connecting to testnet via: {bootstrap_addrs:?}"); let mut config = CoreNodeConfig::new().expect("Failed to create config"); - config.bootstrap_peers = bootstrap_addrs; + config.bootstrap_peers = bootstrap_addrs + .into_iter() + .map(saorsa_core::MultiAddr::from) + .collect(); // Use a random port for the client config.listen_addr = "127.0.0.1:0".parse().unwrap(); diff --git a/tests/e2e/testnet.rs b/tests/e2e/testnet.rs index 7460b74e..a01bbe34 100644 --- a/tests/e2e/testnet.rs +++ b/tests/e2e/testnet.rs @@ -1277,9 +1277,11 @@ impl TestNetwork { core_config.listen_addrs = vec![node.address]; core_config.enable_ipv6 = false; // Disable IPv6 for local testing to avoid dual-stack binding issues core_config.connection_timeout = Duration::from_secs(TEST_CORE_CONNECTION_TIMEOUT_SECS); - core_config - .bootstrap_peers - .clone_from(&node.bootstrap_addrs); + core_config.bootstrap_peers = node + .bootstrap_addrs + .iter() + .map(|a| saorsa_core::MultiAddr::from(*a)) + .collect(); // Override the transport-layer message size to accommodate max-size // chunks (4 MiB payload + serialization overhead = 5 MiB wire). core_config.max_message_size = Some(saorsa_node::ant_protocol::MAX_WIRE_MESSAGE_SIZE); From 59bee7807bc00da70e939e0a6ad85581cc570698 Mon Sep 17 00:00:00 2001 From: Chris O'Neil Date: Mon, 16 Mar 2026 18:21:02 +0000 Subject: [PATCH 08/11] feat: wire up live metrics collectors from SecurityDashboard Use the same Arc collector instances that saorsa-core's DHT layer writes to, instead of creating standalone empty instances. This means snapshot-based metrics (DHT health, security, trust, placement) now reflect live data rather than always reporting zeros. Falls back to standalone instances only when security_dashboard is None (minimal test configurations). Depends on saorsa-core aaad76c (SecurityDashboard accessor methods). Co-Authored-By: Claude Opus 4.6 (1M context) --- Cargo.lock | 4 ++-- src/node.rs | 34 ++++++++++++++++++++++++---------- 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 63e7acfa..8f527193 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2122,7 +2122,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ab67060fc6b8ef687992d439ca0fa36e7ed17e9a0b16b25b601e8757df720de" dependencies = [ "data-encoding", - "syn 1.0.109", + "syn 2.0.117", ] [[package]] @@ -5220,7 +5220,7 @@ dependencies = [ [[package]] name = "saorsa-core" version = "0.15.0" -source = "git+https://github.com/jacderida/saorsa-core?branch=feat-metrics_phase2#1f1433560cda615ad118927ade1f8371639f5eba" +source = "git+https://github.com/jacderida/saorsa-core?branch=feat-metrics_phase2#aaad76caa4bfecadbdb782ee9747cff1220cd2a9" dependencies = [ "anyhow", "argon2", diff --git a/src/node.rs b/src/node.rs index 5da26ef9..7df7d9af 100644 --- a/src/node.rs +++ b/src/node.rs @@ -475,17 +475,31 @@ impl NodeBuilder { } /// Build the snapshot collector, wiring in live saorsa-core components. + /// + /// Pulls the same `Arc` collector instances that saorsa-core's internal + /// DHT layer writes to, so snapshot metrics reflect live data. fn build_snapshot_collector(p2p_node: &Arc) -> SnapshotCollector { - // DhtMetricsCollector, TrustMetricsCollector, PlacementMetricsCollector - // are standalone instances — they serve as the canonical source for - // snapshot metrics and will be populated as the DHT layer reports data. - let dht_health = Arc::new(DhtMetricsCollector::new()); - let trust = Arc::new(TrustMetricsCollector::new()); - let placement = Arc::new(PlacementMetricsCollector::new()); - - // SecurityMetricsCollector: standalone instance that will be populated - // as security events are observed by the DHT layer. - let security = Arc::new(saorsa_core::dht::metrics::SecurityMetricsCollector::new()); + let (dht_health, security, trust, placement) = + p2p_node.security_dashboard.as_ref().map_or_else( + || { + // Fallback: standalone instances that report defaults. + // Only hit if security_dashboard is None (e.g., minimal test configs). + ( + Arc::new(DhtMetricsCollector::new()), + Arc::new(saorsa_core::dht::metrics::SecurityMetricsCollector::new()), + Arc::new(TrustMetricsCollector::new()), + Arc::new(PlacementMetricsCollector::new()), + ) + }, + |dashboard| { + ( + dashboard.dht_collector(), + dashboard.security_collector(), + dashboard.trust_collector(), + dashboard.placement_collector(), + ) + }, + ); let eigentrust = p2p_node.trust_engine(); From 7d231df174b1f4bc0aadbd7c894a57aceca1ec25 Mon Sep 17 00:00:00 2001 From: Chris O'Neil Date: Mon, 16 Mar 2026 19:46:35 +0000 Subject: [PATCH 09/11] fix: correct prometheus module doc comment Update doc to accurately describe emission behavior: counters and gauges are always emitted (even when zero) for stable metric names, while optional families like stream bandwidth are conditional. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/metrics/prometheus.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/metrics/prometheus.rs b/src/metrics/prometheus.rs index aaa7b56b..2b230c11 100644 --- a/src/metrics/prometheus.rs +++ b/src/metrics/prometheus.rs @@ -5,7 +5,9 @@ //! text block. //! //! Follows the Prometheus text exposition spec: -//! - HELP/TYPE lines are emitted only when samples exist +//! - Counters and gauges are always emitted (even when zero) so consumers +//! see stable metric names; optional families like stream bandwidth and +//! connection failure breakdowns are only emitted when data exists //! - All samples for a metric family are contiguous //! - Duration metrics use sub-millisecond precision (f64 ms) From 71c7ddbd2e10b6c8508201bc726d1d1f75950eb2 Mon Sep 17 00:00:00 2001 From: Chris O'Neil Date: Mon, 16 Mar 2026 21:46:21 +0000 Subject: [PATCH 10/11] fix: enable loopback in e2e tests and correct prometheus doc - Set allow_loopback = true in e2e test node config. saorsa-core 0.15.0 defaults to rejecting loopback addresses, which caused all e2e tests to fail with "No remote peers found near target address" since every test node runs on 127.0.0.1. - Update prometheus module doc to accurately describe emission behavior. Co-Authored-By: Claude Opus 4.6 (1M context) --- tests/e2e/testnet.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/e2e/testnet.rs b/tests/e2e/testnet.rs index a01bbe34..98a8f895 100644 --- a/tests/e2e/testnet.rs +++ b/tests/e2e/testnet.rs @@ -1276,6 +1276,7 @@ impl TestNetwork { core_config.listen_addr = node.address; core_config.listen_addrs = vec![node.address]; core_config.enable_ipv6 = false; // Disable IPv6 for local testing to avoid dual-stack binding issues + core_config.allow_loopback = true; // All test nodes run on 127.0.0.1 core_config.connection_timeout = Duration::from_secs(TEST_CORE_CONNECTION_TIMEOUT_SECS); core_config.bootstrap_peers = node .bootstrap_addrs From 0fd6d3d452f0275d2d44a4ebfb2eb81f0323ab0f Mon Sep 17 00:00:00 2001 From: Chris O'Neil Date: Mon, 16 Mar 2026 23:01:32 +0000 Subject: [PATCH 11/11] fix: increase DHT recovery wait in node failure e2e test The test_payment_with_node_failures test shuts down 3 of 10 nodes then tries to store a chunk. On Windows with saorsa-core 0.15.0, DHT routing table convergence after node failures is slower due to loopback/diversity changes. Increase the wait-after-failure and post-warmup sleeps from 15s to 30s to give the routing tables time to adapt. Co-Authored-By: Claude Opus 4.6 (1M context) --- tests/e2e/payment_flow.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/e2e/payment_flow.rs b/tests/e2e/payment_flow.rs index 1aa11eb5..cfbecb86 100644 --- a/tests/e2e/payment_flow.rs +++ b/tests/e2e/payment_flow.rs @@ -551,8 +551,9 @@ async fn test_payment_with_node_failures() -> Result<(), Box Result<(), Box 5 needed for quotes) let test_data = b"Resilience test data";