From ff48e69525f1b09359f6c2930663f3a12c62a263 Mon Sep 17 00:00:00 2001 From: UncleSp1d3r Date: Sat, 28 Nov 2026 20:34:59 -0500 Subject: [PATCH 1/7] build(toolchain): Bump Rust to 1.100 and clear new lints and advisories - Move rust-toolchain.toml to the nightly channel and pin rust 1.100.0 and newer tool versions in mise - Fix clippy unused_async_trait_impl: async fns with no await return ready futures or become sync, so their bodies run at call time - Rewrite emptiness assertions to assert_eq!/assert_ne! for the new assert_is_empty lint - Remove unused dependencies (prost-build, prost-types, security-framework) and move rs_merkle and toml to dev-dependencies of daemoneye-lib - Bump rustls-webpki, url, webpki-root-certs, zstd, zstd-safe and zstd-sys in Cargo.lock to clear cargo-audit advisories - Ignore RUSTSEC-2026-0543 (chrono unmaintained, no patched release) in deny.toml with the condition for removing it Signed-off-by: UncleSp1d3r --- Cargo.lock | 34 +- Cargo.toml | 4 +- collector-core/src/binary_hasher.rs | 51 +- collector-core/src/collector.rs | 7 +- collector-core/src/daemoneye_event_bus.rs | 65 +- collector-core/src/health_monitor.rs | 7 +- collector-core/src/load_balancer.rs | 7 +- collector-core/src/performance.rs | 2 +- collector-core/src/shutdown_coordinator.rs | 33 +- collector-core/src/trigger/manager.rs | 43 +- collector-core/src/trigger/sql_evaluator.rs | 2 +- collector-core/src/triggerable.rs | 8 +- .../tests/compatibility_integration_test.rs | 27 +- collector-core/tests/ipc_integration.rs | 26 +- collector-core/tests/performance_tests.rs | 10 +- daemoneye-agent/Cargo.toml | 3 - .../src/broker_manager/state_machine.rs | 6 +- .../src/broker_manager/tests/state_machine.rs | 4 +- daemoneye-agent/src/collector_config.rs | 15 +- daemoneye-agent/src/collector_registry.rs | 5 +- daemoneye-agent/src/integrity_alerts.rs | 63 +- .../tests/collector_admission_tests.rs | 5 +- .../tests/detection_cycle_integration.rs | 5 +- .../tests/detection_cycle_run_integration.rs | 26 +- .../tests/rpc_lifecycle_integration.rs | 2 +- daemoneye-eventbus/src/broker.rs | 5 +- daemoneye-eventbus/src/client.rs | 11 +- daemoneye-eventbus/src/correlation.rs | 14 +- daemoneye-eventbus/src/result_aggregation.rs | 20 +- daemoneye-eventbus/src/rpc/service.rs | 4 +- daemoneye-eventbus/src/rpc/tests.rs | 2 +- daemoneye-eventbus/src/task_distribution.rs | 21 +- daemoneye-eventbus/src/transport.rs | 41 +- .../tests/rpc_integration_tests.rs | 6 +- daemoneye-lib/Cargo.toml | 5 +- daemoneye-lib/src/alerting/mod.rs | 2 +- daemoneye-lib/src/config.rs | 7 +- daemoneye-lib/src/crypto.rs | 2 +- .../src/detection/execution/completeness.rs | 5 +- .../src/detection/execution/functions.rs | 4 +- daemoneye-lib/src/detection/mod.rs | 2 +- daemoneye-lib/src/kernel.rs | 4 +- daemoneye-lib/src/models/completeness.rs | 2 +- daemoneye-lib/src/network.rs | 8 +- daemoneye-lib/src/proto.rs | 5 +- .../src/storage/ingest/flush_tests.rs | 20 +- daemoneye-lib/src/storage/mod.rs | 61 +- daemoneye-lib/src/storage/provider/keyset.rs | 6 +- daemoneye-lib/src/storage/read.rs | 61 +- daemoneye-lib/tests/alerting_config.rs | 5 +- daemoneye-lib/tests/detection_completeness.rs | 10 +- daemoneye-lib/tests/detection_conformance.rs | 8 +- daemoneye-lib/tests/detection_derive.rs | 4 +- daemoneye-lib/tests/detection_execution.rs | 5 +- daemoneye-lib/tests/detection_executor.rs | 19 +- daemoneye-lib/tests/detection_planner.rs | 12 +- daemoneye-lib/tests/detection_rule_health.rs | 6 +- .../tests/ipc_comprehensive_integration.rs | 5 +- .../tests/ipc_cross_platform_tests.rs | 2 +- .../tests/protobuf_multi_domain_tests.rs | 31 +- .../tests/storage_alert_deliveries.rs | 29 +- daemoneye-sinks/tests/syslog.rs | 4 +- deny.toml | 6 +- mise.lock | 777 ++++++++++-------- mise.toml | 48 +- procmond/Cargo.toml | 9 - procmond/src/lib.rs | 12 +- procmond/src/lifecycle.rs | 25 +- procmond/src/process_collector.rs | 2 +- procmond/src/registration/mod.rs | 5 +- procmond/src/registration/tests.rs | 10 +- procmond/src/security.rs | 4 +- procmond/tests/conformance_vectors.rs | 5 +- procmond/tests/lifecycle_integration_tests.rs | 4 +- procmond/tests/lifecycle_tracking_tests.rs | 6 +- .../tests/macos_enhanced_integration_tests.rs | 2 +- procmond/tests/macos_integration_tests.rs | 2 +- rust-toolchain.toml | 2 +- 78 files changed, 1048 insertions(+), 789 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8b75581f..47dda154 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1010,7 +1010,6 @@ dependencies = [ "daemoneye-sinks", "insta", "predicates", - "prost-build", "redb", "serde", "serde_json", @@ -1093,7 +1092,6 @@ dependencies = [ "proptest", "prost", "prost-build", - "prost-types", "quick_cache", "rand 0.10.3", "redb", @@ -1997,9 +1995,9 @@ checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -3437,8 +3435,6 @@ dependencies = [ "postcard", "predicates", "proptest", - "prost-build", - "security-framework", "serde", "serde_json", "sysinfo", @@ -3928,9 +3924,9 @@ checksum = "eec689c0bc40ff2458a5977b6619cb718087084a18e02a131c599b62d05e1a5f" [[package]] name = "rustls-webpki" -version = "0.103.15" +version = "0.103.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2" +checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281" dependencies = [ "ring", "rustls-pki-types", @@ -4324,7 +4320,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.4.2", + "getrandom 0.3.4", "once_cell", "rustix", "windows-sys 0.61.2", @@ -4781,9 +4777,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", @@ -5033,9 +5029,9 @@ dependencies = [ [[package]] name = "webpki-root-certs" -version = "1.0.9" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b96554aa2acc8ccdb7e1c9a58a7a68dd5d13bccc69cd124cb09406db612a1c9b" +checksum = "58ec80e73fd8baf57bf0d9615554c75348bda990d6d5bbeab964dd068319fecb" dependencies = [ "rustls-pki-types", ] @@ -5568,27 +5564,27 @@ checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" [[package]] name = "zstd" -version = "0.13.3" +version = "0.13.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a" +checksum = "cdb02c3132d251ab1606e9fc913a7da6c6ed08cc263df15edf082e1dc497d157" dependencies = [ "zstd-safe", ] [[package]] name = "zstd-safe" -version = "7.3.0" +version = "7.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64d80649ab6db9d9f6f9c80a40becd948eda4714a0a5ac8c4d157a32231c7882" +checksum = "1c8ea04668f5de8d8d51051714ba560c9536519cadcdb8829bba4fe2ad159b03" dependencies = [ "zstd-sys", ] [[package]] name = "zstd-sys" -version = "2.1.0+zstd.1.5.7" +version = "2.1.2+zstd.1.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ef0a8027ec3ee71300ab3bcbcd0393f434aa72b91ca6d635a39941deae8eea0" +checksum = "481ada9c543b2323cbb7bbdbb5249177fbf0188ed959ed2c15e4b22421c84ed3" dependencies = [ "cc", "pkg-config", diff --git a/Cargo.toml b/Cargo.toml index ce112adb..9f66697c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -131,7 +131,6 @@ proptest = "1.11.0" # Protocol Buffers prost = "0.14.4" prost-build = "0.14.4" -prost-types = "0.14.4" # Bounded in-memory cache (hash result store). # Exact-pinned per AGENTS.md "Dependency Security" — this cache @@ -170,7 +169,6 @@ rustls-platform-verifier = "=0.7.1" # Platform-specific dependencies # macOS -security-framework = "3.7.0" # Exact-pinned: zeroizing wrapper for sink credentials resolved from environment # variables. See AGENTS.md "Dependency Security". secrecy = "=0.10.3" @@ -206,7 +204,7 @@ tokio = { version = "=1.54.1", features = [ # See AGENTS.md "Dependency Security". tokio-rustls = { version = "=0.26.6", default-features = false, features = ["ring", "tls12"] } tokio-test = "0.4.5" -toml = "1.1.4+spec-1.1.0" +toml = "1.1.4" # Logging and observability tracing = "0.1.44" diff --git a/collector-core/src/binary_hasher.rs b/collector-core/src/binary_hasher.rs index 1a2d0764..4ad100f7 100644 --- a/collector-core/src/binary_hasher.rs +++ b/collector-core/src/binary_hasher.rs @@ -697,6 +697,32 @@ impl BinaryHasherCollector { // engine hashes from `file` (the authorized fd) only. Ok((file, resolved)) } + + /// Health is good if at least one opened root is accessible. + fn check_roots(&self) -> Result<(), TriggerHandleError> { + // Health is good if at least one opened root is accessible. + // Use the cap-std `Dir` handle's `dir_metadata()` for consistency + // with the TOCTOU-safe model — we stat the exact inode opened at + // construction time, not whatever the display path resolves to now. + // Collect per-root failure reasons so the aggregate error is + // actionable; each failing root is also logged individually at + // warn! so operators can identify which roots are inaccessible + // without parsing the combined error message. + let mut failures = Vec::new(); + for root in &self.opened_roots { + match root.handle().dir_metadata() { + Ok(_) => return Ok(()), + Err(err) => { + warn!(root = %root.display_path(), error = %err, "allowed root inaccessible"); + failures.push(format!("{}: {err}", root.display_path())); + } + } + } + Err(TriggerHandleError::Internal(format!( + "no opened_roots accessible: {}", + failures.join(", ") + ))) + } } // ───────────────────────────────────────────────────────────────────────────── @@ -790,29 +816,8 @@ impl TriggerableCollector for BinaryHasherCollector { }) } - async fn health_check(&self) -> Result<(), TriggerHandleError> { - // Health is good if at least one opened root is accessible. - // Use the cap-std `Dir` handle's `dir_metadata()` for consistency - // with the TOCTOU-safe model — we stat the exact inode opened at - // construction time, not whatever the display path resolves to now. - // Collect per-root failure reasons so the aggregate error is - // actionable; each failing root is also logged individually at - // warn! so operators can identify which roots are inaccessible - // without parsing the combined error message. - let mut failures = Vec::new(); - for root in &self.opened_roots { - match root.handle().dir_metadata() { - Ok(_) => return Ok(()), - Err(err) => { - warn!(root = %root.display_path(), error = %err, "allowed root inaccessible"); - failures.push(format!("{}: {err}", root.display_path())); - } - } - } - Err(TriggerHandleError::Internal(format!( - "no opened_roots accessible: {}", - failures.join(", ") - ))) + fn health_check(&self) -> impl Future> { + std::future::ready(self.check_roots()) } } diff --git a/collector-core/src/collector.rs b/collector-core/src/collector.rs index f5c21c5d..382b4bb1 100644 --- a/collector-core/src/collector.rs +++ b/collector-core/src/collector.rs @@ -1723,8 +1723,7 @@ impl CollectorRuntime { /// /// This method creates and configures a `LocalEventBus` instance /// for in-process event distribution using plain `tokio` channels. - #[allow(clippy::unused_async)] - pub async fn initialize_local_eventbus(&mut self) -> Result<()> { + pub fn initialize_local_eventbus(&mut self) -> impl Future> { info!("Initializing LocalEventBus for collector runtime"); let event_bus_config = EventBusConfig { @@ -1737,7 +1736,7 @@ impl CollectorRuntime { self.event_bus = Some(Arc::new(local_event_bus)); info!("LocalEventBus initialized successfully"); - Ok(()) + std::future::ready(Ok(())) } /// Get `EventBus` statistics if available. @@ -2056,7 +2055,7 @@ mod tests { ) .await; assert!(result.is_ok()); - assert!(batch.is_empty()); // Batch should be cleared after processing + assert_eq!(batch, Vec::::new()); // Batch should be cleared after processing } #[tokio::test] diff --git a/collector-core/src/daemoneye_event_bus.rs b/collector-core/src/daemoneye_event_bus.rs index f7740b87..8689c293 100644 --- a/collector-core/src/daemoneye_event_bus.rs +++ b/collector-core/src/daemoneye_event_bus.rs @@ -638,11 +638,11 @@ impl DaemoneyeEventBus { // Execute all metric collection operations concurrently let (broker_health, transport_stats, client_stats, topic_stats, performance_metrics) = tokio::try_join!( - self.get_broker_health_with_stats(&broker_stats), - self.get_transport_statistics_with_stats(&broker_stats), - self.get_client_statistics_with_stats(&broker_stats), - self.get_topic_statistics_with_stats(&broker_stats), - self.calculate_performance_metrics(&broker_stats) + Self::get_broker_health_with_stats(&broker_stats), + Self::get_transport_statistics_with_stats(&broker_stats), + Self::get_client_statistics_with_stats(&broker_stats), + Self::get_topic_statistics_with_stats(&broker_stats), + Self::calculate_performance_metrics(&broker_stats) )?; Ok(DaemoneyeEventBusMetrics { @@ -659,15 +659,13 @@ impl DaemoneyeEventBus { /// Get broker health status with comprehensive health indicators. async fn get_broker_health(&self) -> Result { let stats = self.broker.statistics().await; - self.get_broker_health_with_stats(&stats).await + Self::get_broker_health_with_stats(&stats).await } /// Get broker health status using provided statistics (optimized version). - #[allow(clippy::unused_async)] - async fn get_broker_health_with_stats( - &self, + fn get_broker_health_with_stats( stats: &DaemoneyeEventBusStatistics, - ) -> Result { + ) -> impl Future> { let uptime = Duration::from_secs(stats.uptime_seconds); // Determine health status based on various indicators @@ -686,7 +684,7 @@ impl DaemoneyeEventBus { HealthStatus::Healthy }; - Ok(BrokerHealthStatus { + std::future::ready(Ok(BrokerHealthStatus { status: health_status, uptime, last_health_check: std::time::SystemTime::now(), @@ -694,20 +692,18 @@ impl DaemoneyeEventBus { message_throughput: Self::calculate_message_throughput(stats), error_rate: 0.0, // Simplified implementation - would need broker API extension for actual error tracking memory_usage: Self::estimate_memory_usage(stats), - }) + })) } /// Get transport layer statistics using provided statistics (optimized version). - #[allow(clippy::unused_async)] - async fn get_transport_statistics_with_stats( - &self, + fn get_transport_statistics_with_stats( broker_stats: &DaemoneyeEventBusStatistics, - ) -> Result { + ) -> impl Future> { // Note: This is a simplified implementation as we don't have direct access // to transport layer statistics from the broker interface. // In a full implementation, we would need to extend the broker API. - Ok(TransportStatistics { + std::future::ready(Ok(TransportStatistics { total_connections: broker_stats.active_subscribers, healthy_connections: broker_stats.active_subscribers, // Assume all active are healthy failed_connections: 0, // Would need broker API extension @@ -716,49 +712,43 @@ impl DaemoneyeEventBus { bytes_received: 0, // Would need broker API extension average_latency_ms: 0.0, // Would need broker API extension connection_errors: 0, // Would need broker API extension - }) + })) } /// Get client statistics using provided statistics (optimized version). - #[allow(clippy::unused_async)] - async fn get_client_statistics_with_stats( - &self, + fn get_client_statistics_with_stats( broker_stats: &DaemoneyeEventBusStatistics, - ) -> Result { - Ok(ClientStatisticsAggregate { + ) -> impl Future> { + std::future::ready(Ok(ClientStatisticsAggregate { total_clients: broker_stats.active_subscribers, active_subscriptions: broker_stats.active_subscribers, // Simplified total_messages_published: broker_stats.messages_published, total_messages_received: broker_stats.messages_delivered, average_uptime: Duration::from_secs(broker_stats.uptime_seconds), health_check_failures: 0, // Would need broker API extension - }) + })) } /// Get topic routing statistics using provided statistics (optimized version). - #[allow(clippy::unused_async)] - async fn get_topic_statistics_with_stats( - &self, + fn get_topic_statistics_with_stats( broker_stats: &DaemoneyeEventBusStatistics, - ) -> Result { - Ok(TopicStatistics { + ) -> impl Future> { + std::future::ready(Ok(TopicStatistics { active_topics: broker_stats.active_topics, total_subscriptions: broker_stats.active_subscribers, message_routing_efficiency: Self::calculate_routing_efficiency(broker_stats), topic_distribution: HashMap::new(), // Would need broker API extension wildcard_usage: 0, // Would need broker API extension - }) + })) } /// Calculate performance metrics based on broker statistics. - #[allow(clippy::unused_async)] - async fn calculate_performance_metrics( - &self, + fn calculate_performance_metrics( stats: &DaemoneyeEventBusStatistics, - ) -> Result { + ) -> impl Future> { let uptime_seconds = stats.uptime_seconds.max(1); // Avoid division by zero - Ok(PerformanceMetrics { + std::future::ready(Ok(PerformanceMetrics { messages_per_second: stats.messages_published as f64 / uptime_seconds as f64, delivery_rate: if stats.messages_published > 0 { stats.messages_delivered as f64 / stats.messages_published as f64 @@ -768,7 +758,7 @@ impl DaemoneyeEventBus { average_subscribers: stats.active_subscribers as f64, throughput_efficiency: Self::calculate_throughput_efficiency(stats), resource_utilization: Self::estimate_resource_utilization(stats), - }) + })) } /// Calculate message throughput for health monitoring. @@ -1756,8 +1746,7 @@ mod tests { // Get broker statistics for performance calculation let broker_stats = event_bus.broker.statistics().await; - let performance_metrics = event_bus - .calculate_performance_metrics(&broker_stats) + let performance_metrics = DaemoneyeEventBus::calculate_performance_metrics(&broker_stats) .await .unwrap(); diff --git a/collector-core/src/health_monitor.rs b/collector-core/src/health_monitor.rs index c2a925af..7983f465 100644 --- a/collector-core/src/health_monitor.rs +++ b/collector-core/src/health_monitor.rs @@ -135,14 +135,13 @@ impl HealthMonitor { } /// Start periodic aggregation and optional publishing. - #[allow(clippy::unused_async)] - pub async fn start_monitoring(&self) -> JoinHandle<()> { + pub fn start_monitoring(&self) -> impl Future> { let collector_id = self.collector_id.clone(); let components = Arc::clone(&self.components); let overall_status = Arc::clone(&self.overall_status); let interval_duration = self.health_check_interval; - tokio::spawn(async move { + std::future::ready(tokio::spawn(async move { let mut ticker = interval(interval_duration); // Avoid accumulating ticks if the task is delayed ticker.set_missed_tick_behavior(MissedTickBehavior::Delay); @@ -168,7 +167,7 @@ impl HealthMonitor { // Lightweight diagnostic tracing::trace!(collector_id = %collector_id, status = ?agg, "Aggregated collector health"); } - }) + })) } } diff --git a/collector-core/src/load_balancer.rs b/collector-core/src/load_balancer.rs index 4d4d1438..3abad12f 100644 --- a/collector-core/src/load_balancer.rs +++ b/collector-core/src/load_balancer.rs @@ -210,7 +210,7 @@ impl LoadBalancer { self.select_weighted_round_robin(&healthy_collectors) .await? } - LoadBalancingStrategy::Random => self.select_random(&healthy_collectors).await?, + LoadBalancingStrategy::Random => Self::select_random(&healthy_collectors), }; // Update load tracking @@ -281,12 +281,11 @@ impl LoadBalancer { } /// Random selection - #[allow(clippy::unused_async)] - async fn select_random(&self, collectors: &[&CollectorCapability]) -> Result { + fn select_random(collectors: &[&CollectorCapability]) -> String { use rand::RngExt; let mut rng = rand::rng(); let index = rng.random_range(0..collectors.len()); - Ok(collectors[index].collector_id.clone()) + collectors[index].collector_id.clone() } /// Increment task count for a collector diff --git a/collector-core/src/performance.rs b/collector-core/src/performance.rs index 5d5c14dc..5156c0cf 100644 --- a/collector-core/src/performance.rs +++ b/collector-core/src/performance.rs @@ -1025,7 +1025,7 @@ mod tests { let metrics = metrics.unwrap(); assert_eq!(metrics.total_triggers, 1); assert!(metrics.avg_latency_ms >= 10.0); - assert!(!metrics.samples.is_empty()); + assert_ne!(metrics.samples, Vec::::new()); } #[test] diff --git a/collector-core/src/shutdown_coordinator.rs b/collector-core/src/shutdown_coordinator.rs index 92cdaf72..8c5476d2 100644 --- a/collector-core/src/shutdown_coordinator.rs +++ b/collector-core/src/shutdown_coordinator.rs @@ -392,29 +392,25 @@ impl ShutdownCoordinator { /// Execute graceful shutdown for a collector async fn execute_graceful_shutdown(&self, collector_id: &str) -> Result<()> { // Phase 1: Preparing - self.update_shutdown_phase(collector_id, ShutdownPhase::Preparing) - .await?; + self.update_shutdown_phase(collector_id, ShutdownPhase::Preparing)?; // Allow collector to prepare for shutdown sleep(Duration::from_millis(100)).await; // Phase 2: Stopping - self.update_shutdown_phase(collector_id, ShutdownPhase::Stopping) - .await?; + self.update_shutdown_phase(collector_id, ShutdownPhase::Stopping)?; // Stop active operations self.stop_collector_operations(collector_id).await?; // Phase 3: Cleanup - self.update_shutdown_phase(collector_id, ShutdownPhase::Cleanup) - .await?; + self.update_shutdown_phase(collector_id, ShutdownPhase::Cleanup)?; // Perform cleanup self.cleanup_collector_resources(collector_id).await?; // Phase 4: Completed - self.update_shutdown_phase(collector_id, ShutdownPhase::Completed) - .await?; + self.update_shutdown_phase(collector_id, ShutdownPhase::Completed)?; Ok(()) } @@ -424,8 +420,7 @@ impl ShutdownCoordinator { info!(collector_id = %collector_id, "Executing forced shutdown"); // Update to forced phase - self.update_shutdown_phase(collector_id, ShutdownPhase::Forced) - .await?; + self.update_shutdown_phase(collector_id, ShutdownPhase::Forced)?; // Send forced shutdown event let event = ShutdownEvent::ForcedShutdown { @@ -439,19 +434,13 @@ impl ShutdownCoordinator { self.cleanup_collector_resources(collector_id).await?; // Mark as completed - self.update_shutdown_phase(collector_id, ShutdownPhase::Completed) - .await?; + self.update_shutdown_phase(collector_id, ShutdownPhase::Completed)?; Ok(()) } /// Update shutdown phase for a collector - #[allow(clippy::unused_async)] - async fn update_shutdown_phase( - &self, - collector_id: &str, - new_phase: ShutdownPhase, - ) -> Result<()> { + fn update_shutdown_phase(&self, collector_id: &str, new_phase: ShutdownPhase) -> Result<()> { let old_phase = { let mut states = self .shutdown_states @@ -641,13 +630,15 @@ impl ShutdownCoordinator { } /// Get shutdown status for a collector - #[allow(clippy::unused_async)] - pub async fn get_shutdown_status(&self, collector_id: &str) -> Option { + pub fn get_shutdown_status( + &self, + collector_id: &str, + ) -> impl Future> { let states = self .shutdown_states .read() .unwrap_or_else(std::sync::PoisonError::into_inner); - states.get(collector_id).map(|s| s.phase.clone()) + std::future::ready(states.get(collector_id).map(|s| s.phase.clone())) } /// Wait for all shutdowns to complete diff --git a/collector-core/src/trigger/manager.rs b/collector-core/src/trigger/manager.rs index 00b84d66..b95f1797 100644 --- a/collector-core/src/trigger/manager.rs +++ b/collector-core/src/trigger/manager.rs @@ -746,7 +746,7 @@ impl TriggerManager { let start_time = SystemTime::now(); // Validate trigger request against collector capabilities - self.validate_trigger_request(&trigger).await?; + self.check_trigger_request(&trigger)?; // Clone the EventBus Arc to avoid holding the lock during async operations let event_bus_clone = { @@ -816,7 +816,7 @@ impl TriggerManager { } // Track timeout for this trigger request - self.track_trigger_timeout(&trigger).await?; + self.record_trigger_timeout(&trigger)?; // Update emission statistics in a single lock acquisition { @@ -853,11 +853,14 @@ impl TriggerManager { /// /// This method ensures that the target collector exists, supports the requested /// analysis type, and can handle the specified priority level. - #[allow(clippy::unused_async)] - pub async fn validate_trigger_request( + pub fn validate_trigger_request( &self, trigger: &TriggerRequest, - ) -> Result<(), TriggerError> { + ) -> impl Future> { + std::future::ready(self.check_trigger_request(trigger)) + } + + fn check_trigger_request(&self, trigger: &TriggerRequest) -> Result<(), TriggerError> { let capabilities = lock_or_err!(self.collector_capabilities, "collector_capabilities")?; // Check if target collector is registered @@ -924,11 +927,14 @@ impl TriggerManager { /// This method adds the trigger to the timeout tracker, allowing the system /// to detect and handle triggers that don't receive responses within the /// configured timeout period. - #[allow(clippy::unused_async)] - pub async fn track_trigger_timeout( + pub fn track_trigger_timeout( &self, trigger: &TriggerRequest, - ) -> Result<(), TriggerError> { + ) -> impl Future> { + std::future::ready(self.record_trigger_timeout(trigger)) + } + + fn record_trigger_timeout(&self, trigger: &TriggerRequest) -> Result<(), TriggerError> { let timeout_duration = Duration::from_secs(self.config.default_timeout_secs); let timeout_info = TriggerTimeout { @@ -955,8 +961,13 @@ impl TriggerManager { /// /// This method should be called periodically to clean up triggers that have /// exceeded their timeout period and update statistics accordingly. - #[allow(clippy::unused_async)] - pub async fn handle_trigger_timeouts(&self) -> Result, TriggerError> { + pub fn handle_trigger_timeouts( + &self, + ) -> impl Future, TriggerError>> { + std::future::ready(self.expire_trigger_timeouts()) + } + + fn expire_trigger_timeouts(&self) -> Result, TriggerError> { let mut timed_out_triggers = Vec::new(); let now = SystemTime::now(); @@ -1005,8 +1016,14 @@ impl TriggerManager { /// /// This method should be called when a trigger request receives a response /// from the analysis collector to clean up tracking state. - #[allow(clippy::unused_async)] - pub async fn complete_trigger_request(&self, trigger_id: &str) -> Result<(), TriggerError> { + pub fn complete_trigger_request( + &self, + trigger_id: &str, + ) -> impl Future> { + std::future::ready(self.clear_trigger_timeout(trigger_id)) + } + + fn clear_trigger_timeout(&self, trigger_id: &str) -> Result<(), TriggerError> { let mut tracker = lock_or_err!(self.timeout_tracker, "timeout_tracker")?; if tracker.remove(trigger_id).is_some() { @@ -1467,7 +1484,7 @@ mod tests { assert!(trigger.metadata.contains_key("condition_id")); assert!(trigger.metadata.contains_key("source_pid")); - assert!(!trigger.correlation_id.is_empty()); + assert_ne!(trigger.correlation_id, ""); } #[test] diff --git a/collector-core/src/trigger/sql_evaluator.rs b/collector-core/src/trigger/sql_evaluator.rs index 97af2edb..b02ba017 100644 --- a/collector-core/src/trigger/sql_evaluator.rs +++ b/collector-core/src/trigger/sql_evaluator.rs @@ -109,7 +109,7 @@ impl SqlTriggerEvaluator { let mut compiled_conditions = Vec::new(); for condition in conditions { - let compiled = match self.compile_condition(condition.clone()) { + let compiled = match self.compile_condition(condition) { Ok(compiled) => compiled, Err(error) => { // Surface the parse failure instead of silently registering diff --git a/collector-core/src/triggerable.rs b/collector-core/src/triggerable.rs index 942d06c0..94e4c8be 100644 --- a/collector-core/src/triggerable.rs +++ b/collector-core/src/triggerable.rs @@ -362,12 +362,12 @@ mod tests { TYPES } - async fn handle_trigger( + fn handle_trigger( &self, request: &TriggerRequest, - ) -> Result { + ) -> impl Future> { let _ = self.calls.fetch_add(1, Ordering::Relaxed); - Ok(AnalysisResult { + std::future::ready(Ok(AnalysisResult { stage_id: "mock-stage".to_owned(), analysis_type: request.analysis_type.clone(), collector_id: self.name.to_owned(), @@ -376,7 +376,7 @@ mod tests { completed_at: SystemTime::now(), execution_duration: Duration::from_millis(1), confidence: 1.0, - }) + })) } } diff --git a/collector-core/tests/compatibility_integration_test.rs b/collector-core/tests/compatibility_integration_test.rs index fe64c578..53404839 100644 --- a/collector-core/tests/compatibility_integration_test.rs +++ b/collector-core/tests/compatibility_integration_test.rs @@ -263,7 +263,7 @@ impl MockDaemonEyeAgentClient { } // Simulate sending detection tasks like daemoneye-agent would - async fn send_detection_tasks(&self) -> Vec { + fn send_detection_tasks(&self) -> Vec { let tasks = vec![ DetectionTask { task_id: "compat_task_1".to_string(), @@ -294,7 +294,7 @@ impl MockDaemonEyeAgentClient { } // Simulate processing detection results like daemoneye-agent would - async fn process_detection_result(&self, result: DetectionResult) -> bool { + fn process_detection_result(&self, result: &DetectionResult) -> bool { info!( client = self.name, task_id = %result.task_id, @@ -319,7 +319,7 @@ impl MockDaemonEyeAgentClient { } // Simulate capability negotiation like daemoneye-agent would - async fn negotiate_capabilities(&self, capabilities: CollectionCapabilities) -> bool { + fn negotiate_capabilities(&self, capabilities: &CollectionCapabilities) -> bool { info!( client = self.name, supported_domains = ?capabilities.supported_domains, @@ -445,7 +445,7 @@ async fn test_daemoneye_agent_ipc_compatibility() { // Test capability negotiation let proto_capabilities = ipc_server.get_capabilities().await; - let negotiation_success = mock_client.negotiate_capabilities(proto_capabilities).await; + let negotiation_success = mock_client.negotiate_capabilities(&proto_capabilities); assert!(negotiation_success, "Capability negotiation should succeed"); assert_eq!( @@ -455,7 +455,7 @@ async fn test_daemoneye_agent_ipc_compatibility() { ); // Test detection task compatibility - let tasks = mock_client.send_detection_tasks().await; + let tasks = mock_client.send_detection_tasks(); assert_eq!(tasks.len(), 2, "Should generate test tasks"); assert_eq!(mock_client.tasks_sent(), 2, "Should track sent tasks"); @@ -518,7 +518,7 @@ async fn test_daemoneye_agent_ipc_compatibility() { performance_events: vec![], }; - let result_processed = mock_client.process_detection_result(mock_result).await; + let result_processed = mock_client.process_detection_result(&mock_result); assert!( result_processed, "Detection result should be processed successfully" @@ -580,9 +580,18 @@ async fn test_protobuf_backward_compatibility() { assert_eq!(old_result.task_id, deserialized.task_id); assert_eq!(old_result.success, deserialized.success); - assert!(deserialized.network_events.is_empty()); - assert!(deserialized.filesystem_events.is_empty()); - assert!(deserialized.performance_events.is_empty()); + assert_eq!( + deserialized.network_events, + Vec::::new() + ); + assert_eq!( + deserialized.filesystem_events, + Vec::::new() + ); + assert_eq!( + deserialized.performance_events, + Vec::::new() + ); // Test new capability message format let capabilities = CollectionCapabilities { diff --git a/collector-core/tests/ipc_integration.rs b/collector-core/tests/ipc_integration.rs index 71e09efe..41b15b9b 100644 --- a/collector-core/tests/ipc_integration.rs +++ b/collector-core/tests/ipc_integration.rs @@ -248,7 +248,7 @@ async fn test_protobuf_message_compatibility() { // Verify serialization works let serialized = task.encode_to_vec(); - assert!(!serialized.is_empty()); + assert_ne!(serialized, Vec::::new()); // Verify deserialization works let deserialized = DetectionTask::decode(&serialized[..]).expect("Should deserialize"); @@ -274,17 +274,29 @@ async fn test_protobuf_message_compatibility() { // Verify serialization works let serialized = result.encode_to_vec(); - assert!(!serialized.is_empty()); + assert_ne!(serialized, Vec::::new()); // Verify deserialization works let deserialized = DetectionResult::decode(&serialized[..]).expect("Should deserialize"); assert_eq!(deserialized.task_id, "test-task-123"); assert!(deserialized.success); assert!(deserialized.error_message.is_none()); - assert!(deserialized.processes.is_empty()); - assert!(deserialized.network_events.is_empty()); - assert!(deserialized.filesystem_events.is_empty()); - assert!(deserialized.performance_events.is_empty()); + assert_eq!( + deserialized.processes, + Vec::::new() + ); + assert_eq!( + deserialized.network_events, + Vec::::new() + ); + assert_eq!( + deserialized.filesystem_events, + Vec::::new() + ); + assert_eq!( + deserialized.performance_events, + Vec::::new() + ); } #[tokio::test] @@ -308,7 +320,7 @@ async fn test_collection_capabilities_message() { // Verify serialization works let serialized = capabilities.encode_to_vec(); - assert!(!serialized.is_empty()); + assert_ne!(serialized, Vec::::new()); // Verify deserialization works let deserialized = CollectionCapabilities::decode(&serialized[..]).expect("Should deserialize"); diff --git a/collector-core/tests/performance_tests.rs b/collector-core/tests/performance_tests.rs index 68ccb0d2..d24b2e0f 100644 --- a/collector-core/tests/performance_tests.rs +++ b/collector-core/tests/performance_tests.rs @@ -254,13 +254,13 @@ async fn test_resource_usage_tracking() { // Validate CPU metrics assert!(final_metrics.cpu.peak_cpu_percent >= final_metrics.cpu.avg_cpu_percent); assert!(final_metrics.cpu.current_cpu_percent >= 15.0); - assert!(!final_metrics.cpu.samples.is_empty()); + assert_ne!(final_metrics.cpu.samples, Vec::::new()); // Validate memory metrics assert!(final_metrics.memory.peak_memory_bytes >= final_metrics.memory.avg_memory_bytes); assert!(final_metrics.memory.current_memory_bytes >= 100 * 1024 * 1024); assert!(final_metrics.memory.growth_rate_bytes_per_sec >= 0.0); - assert!(!final_metrics.memory.samples.is_empty()); + assert_ne!(final_metrics.memory.samples, Vec::::new()); // Validate update performance let updates_per_second = update_count as f64 / update_time.as_secs_f64(); @@ -500,12 +500,12 @@ async fn test_concurrent_monitoring_operations() { // Validate concurrent operations didn't corrupt data assert!(final_metrics.throughput.total_events > 0); - assert!(!final_metrics.cpu.samples.is_empty()); - assert!(!final_metrics.memory.samples.is_empty()); + assert_ne!(final_metrics.cpu.samples, Vec::::new()); + assert_ne!(final_metrics.memory.samples, Vec::::new()); if let Some(trigger_metrics) = final_metrics.trigger_latency { assert!(trigger_metrics.total_triggers > 0); - assert!(!trigger_metrics.samples.is_empty()); + assert_ne!(trigger_metrics.samples, Vec::::new()); } println!( diff --git a/daemoneye-agent/Cargo.toml b/daemoneye-agent/Cargo.toml index 19265f1b..b36c3be2 100644 --- a/daemoneye-agent/Cargo.toml +++ b/daemoneye-agent/Cargo.toml @@ -49,9 +49,6 @@ tracing = { workspace = true } tracing-subscriber = { workspace = true } uuid = { workspace = true } -[build-dependencies] -prost-build = { workspace = true } - [dev-dependencies] assert_cmd = { workspace = true } diff --git a/daemoneye-agent/src/broker_manager/state_machine.rs b/daemoneye-agent/src/broker_manager/state_machine.rs index c84a0976..ce888616 100644 --- a/daemoneye-agent/src/broker_manager/state_machine.rs +++ b/daemoneye-agent/src/broker_manager/state_machine.rs @@ -327,8 +327,8 @@ impl BrokerManager { /// have completed their privileged initialization (e.g., binding to /// privileged ports, accessing protected resources). #[allow(dead_code)] - #[allow(clippy::unused_async)] // Future implementation will use async for platform-specific privilege dropping - pub async fn drop_privileges(&self) -> Result<()> { + #[allow(clippy::unused_self)] // Stub: the real implementation will read manager state + pub fn drop_privileges(&self) -> impl Future> { info!("Privilege dropping requested (stub - not yet implemented)"); // Future implementation will: @@ -340,7 +340,7 @@ impl BrokerManager { // For now, just log and succeed debug!("Privilege dropping is not implemented - running with current privileges"); - Ok(()) + std::future::ready(Ok(())) } /// Get the default startup timeout from the collectors configuration. diff --git a/daemoneye-agent/src/broker_manager/tests/state_machine.rs b/daemoneye-agent/src/broker_manager/tests/state_machine.rs index d64729f9..c95bcca4 100644 --- a/daemoneye-agent/src/broker_manager/tests/state_machine.rs +++ b/daemoneye-agent/src/broker_manager/tests/state_machine.rs @@ -120,7 +120,7 @@ async fn test_mark_collector_ready() { assert!(all_ready); assert!(manager.all_collectors_ready().await); - assert!(manager.pending_collectors().await.is_empty()); + assert_eq!(manager.pending_collectors().await, Vec::::new()); } #[tokio::test] @@ -375,7 +375,7 @@ async fn test_registration_marks_collector_ready() { assert!(response.accepted); // Both collectors should now be ready - assert!(manager.pending_collectors().await.is_empty()); + assert_eq!(manager.pending_collectors().await, Vec::::new()); assert!(manager.all_collectors_ready().await); // Should be able to transition to Ready state now diff --git a/daemoneye-agent/src/collector_config.rs b/daemoneye-agent/src/collector_config.rs index 3bd6364f..a84a5360 100644 --- a/daemoneye-agent/src/collector_config.rs +++ b/daemoneye-agent/src/collector_config.rs @@ -458,7 +458,10 @@ mod tests { let json = r#"{"collectors": []}"#; let config: CollectorsConfig = serde_json::from_str(json).unwrap(); - assert!(config.collectors.is_empty()); + assert_eq!( + config.collectors, + Vec::::new() + ); assert!(config.validate().is_ok()); } @@ -621,13 +624,19 @@ mod tests { // This test relies on DEFAULT_COLLECTORS_CONFIG_PATH not existing in test environment let config = CollectorsConfig::load_or_default(); // Should return empty config without error - assert!(config.collectors.is_empty()); + assert_eq!( + config.collectors, + Vec::::new() + ); } #[test] fn test_default_config() { let config = CollectorsConfig::default(); - assert!(config.collectors.is_empty()); + assert_eq!( + config.collectors, + Vec::::new() + ); } #[test] diff --git a/daemoneye-agent/src/collector_registry.rs b/daemoneye-agent/src/collector_registry.rs index b0558c6a..5de72159 100644 --- a/daemoneye-agent/src/collector_registry.rs +++ b/daemoneye-agent/src/collector_registry.rs @@ -615,7 +615,10 @@ mod tests { .register(sample_request()) .await .expect("registration succeeds"); - assert!(registry.rejection_records().is_empty()); + assert_eq!( + registry.rejection_records(), + Vec::::new() + ); } #[tokio::test] diff --git a/daemoneye-agent/src/integrity_alerts.rs b/daemoneye-agent/src/integrity_alerts.rs index de1163a1..e7904b5e 100644 --- a/daemoneye-agent/src/integrity_alerts.rs +++ b/daemoneye-agent/src/integrity_alerts.rs @@ -230,7 +230,10 @@ mod tests { on_disk_state: 9999, ..Default::default() }; - assert!(detect_integrity_alerts(&[malformed]).is_empty()); + assert_eq!( + detect_integrity_alerts(&[malformed]), + Vec::::new() + ); } #[test] @@ -267,7 +270,7 @@ mod tests { #[test] fn clean_record_yields_no_alerts() { let alerts = detect_integrity_alerts(&[record("p", 7, false, OnDiskState::Match)]); - assert!(alerts.is_empty()); + assert_eq!(alerts, Vec::::new()); } #[test] @@ -324,10 +327,9 @@ mod tests { #[test] fn first_observation_seeds_without_alert() { let mut tracker = BinaryChangeTracker::default(); - assert!( - tracker - .observe(&[record_ssdeep("/bin/x", &ssdeep_of(1))]) - .is_empty() + assert_eq!( + tracker.observe(&[record_ssdeep("/bin/x", &ssdeep_of(1))]), + Vec::::new() ); } @@ -335,16 +337,14 @@ mod tests { fn identical_executable_does_not_fire() { let digest = ssdeep_of(1); let mut tracker = BinaryChangeTracker::default(); - assert!( - tracker - .observe(&[record_ssdeep("/bin/x", &digest)]) - .is_empty() + assert_eq!( + tracker.observe(&[record_ssdeep("/bin/x", &digest)]), + Vec::::new() ); // Same digest -> similarity 100 -> no binary-change observation. - assert!( - tracker - .observe(&[record_ssdeep("/bin/x", &digest)]) - .is_empty() + assert_eq!( + tracker.observe(&[record_ssdeep("/bin/x", &digest)]), + Vec::::new() ); } @@ -355,10 +355,9 @@ mod tests { }) .expect("valid"); // Seed with one binary, then observe an unrelated binary on the same path. - assert!( - tracker - .observe(&[record_ssdeep("/bin/x", &ssdeep_of(1))]) - .is_empty() + assert_eq!( + tracker.observe(&[record_ssdeep("/bin/x", &ssdeep_of(1))]), + Vec::::new() ); let alerts = tracker.observe(&[record_ssdeep("/bin/x", &ssdeep_of(200))]); assert_eq!(alerts.len(), 1); @@ -372,10 +371,9 @@ mod tests { fn record_without_ssdeep_is_ignored() { let mut tracker = BinaryChangeTracker::default(); // No ssdeep_hash -> nothing to compare, no panic, no alert. - assert!( - tracker - .observe(&[record("p", 7, false, OnDiskState::Match)]) - .is_empty() + assert_eq!( + tracker.observe(&[record("p", 7, false, OnDiskState::Match)]), + Vec::::new() ); } @@ -417,24 +415,21 @@ mod tests { fn tracker_evicts_exited_executables() { let mut tracker = BinaryChangeTracker::default(); // Seed /bin/x. - assert!( - tracker - .observe(&[record_ssdeep("/bin/x", &ssdeep_of(1))]) - .is_empty() + assert_eq!( + tracker.observe(&[record_ssdeep("/bin/x", &ssdeep_of(1))]), + Vec::::new() ); // A scan WITHOUT /bin/x evicts its baseline (it is no longer running). - assert!( - tracker - .observe(&[record_ssdeep("/bin/y", &ssdeep_of(2))]) - .is_empty() + assert_eq!( + tracker.observe(&[record_ssdeep("/bin/y", &ssdeep_of(2))]), + Vec::::new() ); // /bin/x returns with an unrelated binary; because its baseline was // evicted it re-seeds (no alert) rather than comparing against the old // value. If eviction were absent, this would fire a binary-change alert. - assert!( - tracker - .observe(&[record_ssdeep("/bin/x", &ssdeep_of(200))]) - .is_empty() + assert_eq!( + tracker.observe(&[record_ssdeep("/bin/x", &ssdeep_of(200))]), + Vec::::new() ); } } diff --git a/daemoneye-agent/tests/collector_admission_tests.rs b/daemoneye-agent/tests/collector_admission_tests.rs index 58137806..229012ed 100644 --- a/daemoneye-agent/tests/collector_admission_tests.rs +++ b/daemoneye-agent/tests/collector_admission_tests.rs @@ -232,7 +232,10 @@ async fn the_correct_token_admits_the_descriptor_and_lookup_can_see_it() { .unwrap(); assert!(response.accepted); - assert!(gates(®istry).is_empty()); + assert_eq!( + gates(®istry), + Vec::::new() + ); assert!(!catalog_is_empty(&engine).await); assert!(has_column(&engine, "processes", "name").await); } diff --git a/daemoneye-agent/tests/detection_cycle_integration.rs b/daemoneye-agent/tests/detection_cycle_integration.rs index 6f3dc9f2..d69fd82e 100644 --- a/daemoneye-agent/tests/detection_cycle_integration.rs +++ b/daemoneye-agent/tests/detection_cycle_integration.rs @@ -360,7 +360,10 @@ fn a_failed_ingest_consumes_its_ordinal_and_carries_the_failure() { next_window(1_000, 1_000), "nothing durable, so the window does not move" ); - assert!(failed.gaps.is_empty()); + assert_eq!( + failed.gaps, + Vec::::new() + ); assert!( failed .failure diff --git a/daemoneye-agent/tests/detection_cycle_run_integration.rs b/daemoneye-agent/tests/detection_cycle_run_integration.rs index e460941c..fd53d97c 100644 --- a/daemoneye-agent/tests/detection_cycle_run_integration.rs +++ b/daemoneye-agent/tests/detection_cycle_run_integration.rs @@ -216,7 +216,7 @@ async fn a_persisted_rule_alerts_once_per_row_across_cycles_and_again_for_a_new_ fx.store.store_rule(&rule("persisted", NC_RULE)).unwrap(); let loaded = load_persisted_rules(&fx.store, &mut *fx.cell.inner.lock().await).unwrap(); assert_eq!(loaded, 1); - assert!(fx.store.list_buckets().unwrap().is_empty()); + assert_eq!(fx.store.list_buckets().unwrap(), Vec::::new()); let pipeline = ingest::spawn(Arc::clone(&fx.store), IngestConfig::default()); // Cycle 1: one matching process among two. @@ -288,8 +288,11 @@ async fn a_rule_reloaded_mid_cycle_has_its_evaluation_dropped_and_its_reports_di evaluation.stopped_on_latency, "the old load breached its latency budget" ); - assert!(!evaluation.alerts.is_empty()); - assert!(result.alerts.is_empty()); + assert_ne!( + evaluation.alerts, + Vec::::new() + ); + assert_eq!(result.alerts, Vec::::new()); assert_eq!(result.dropped_after_reeligibility, 1); let (runnable, recorded) = { let engine = fx.cell.inner.lock().await; @@ -333,8 +336,11 @@ async fn a_pattern_that_breaches_its_budget_is_disabled_and_its_cycle_dropped() let result = cycle(&fx, WIDE).await; assert!(result.evaluations.first().unwrap().stopped_on_latency); - assert!(!result.evaluations.first().unwrap().alerts.is_empty()); - assert!(result.alerts.is_empty()); + assert_ne!( + result.evaluations.first().unwrap().alerts, + Vec::::new() + ); + assert_eq!(result.alerts, Vec::::new()); assert_eq!(result.dropped_after_reeligibility, 1); assert!( fx.cell.inner.lock().await.runnable_rules().is_empty(), @@ -454,7 +460,10 @@ async fn a_failed_heartbeat_with_a_successful_collection_still_marks_the_evaluat #[tokio::test] async fn a_healthy_collector_leaves_the_evaluation_complete() { let result = degraded(Ok(()), HeartbeatStatus::Healthy, IngestSnapshot::default()).await; - assert!(reasons(&result).is_empty()); + assert_eq!( + reasons(&result), + Vec::::new() + ); } #[tokio::test] @@ -465,7 +474,10 @@ async fn a_degraded_but_not_failed_heartbeat_does_not_mark_the_evaluation() { IngestSnapshot::default(), ) .await; - assert!(reasons(&result).is_empty()); + assert_eq!( + reasons(&result), + Vec::::new() + ); } #[tokio::test] diff --git a/daemoneye-agent/tests/rpc_lifecycle_integration.rs b/daemoneye-agent/tests/rpc_lifecycle_integration.rs index fd633ebd..32fe451e 100644 --- a/daemoneye-agent/tests/rpc_lifecycle_integration.rs +++ b/daemoneye-agent/tests/rpc_lifecycle_integration.rs @@ -223,7 +223,7 @@ async fn test_cross_process_rpc_workflow() -> anyhow::Result<()> { match health_result { Ok(health_data) => { // Health check succeeded - assert!(!health_data.collector_id.is_empty()); + assert_ne!(health_data.collector_id, ""); } Err(e) => { // Health check may fail if collector hasn't fully started diff --git a/daemoneye-eventbus/src/broker.rs b/daemoneye-eventbus/src/broker.rs index 1a026c5e..5eb4d6cf 100644 --- a/daemoneye-eventbus/src/broker.rs +++ b/daemoneye-eventbus/src/broker.rs @@ -66,9 +66,8 @@ pub struct DaemoneyeBroker { impl DaemoneyeBroker { /// Create a new embedded broker - #[allow(clippy::unused_async)] - pub async fn new(socket_path: &str) -> Result { - Self::new_with_config(socket_path, false, 1000) + pub fn new(socket_path: &str) -> impl Future> { + std::future::ready(Self::new_with_config(socket_path, false, 1000)) } /// Create a new embedded broker with configuration diff --git a/daemoneye-eventbus/src/client.rs b/daemoneye-eventbus/src/client.rs index 947f6e70..b072efa4 100644 --- a/daemoneye-eventbus/src/client.rs +++ b/daemoneye-eventbus/src/client.rs @@ -114,18 +114,17 @@ impl EventBusClient { }; // Start background tasks - client.start_background_tasks(shutdown_rx).await?; + client.start_background_tasks(&shutdown_rx).await?; info!("EventBus client created: {}", client_id); Ok(client) } /// Start background tasks for health monitoring and message processing - #[allow(clippy::unused_async)] - async fn start_background_tasks( + fn start_background_tasks( &mut self, - shutdown_rx: tokio::sync::broadcast::Receiver<()>, - ) -> Result<()> { + shutdown_rx: &tokio::sync::broadcast::Receiver<()>, + ) -> impl Future> { // Health monitoring task let health_task = { let transport = Arc::clone(&self.transport); @@ -274,7 +273,7 @@ impl EventBusClient { self.task_handles.push(health_task); self.task_handles.push(message_task); - Ok(()) + std::future::ready(Ok(())) } /// Publish a message to a topic with backpressure control diff --git a/daemoneye-eventbus/src/correlation.rs b/daemoneye-eventbus/src/correlation.rs index 5373bf6a..f1d5b05c 100644 --- a/daemoneye-eventbus/src/correlation.rs +++ b/daemoneye-eventbus/src/correlation.rs @@ -151,11 +151,15 @@ impl CorrelationTracker { } /// Get the current state of a workflow by correlation ID - #[allow(clippy::unused_async)] - pub async fn get_workflow_state(&self, correlation_id: &str) -> Option { - self.active_workflows - .get(correlation_id) - .map(|entry| entry.value().clone()) + pub fn get_workflow_state( + &self, + correlation_id: &str, + ) -> impl Future> { + std::future::ready( + self.active_workflows + .get(correlation_id) + .map(|entry| entry.value().clone()), + ) } /// Track an event in the correlation workflow diff --git a/daemoneye-eventbus/src/result_aggregation.rs b/daemoneye-eventbus/src/result_aggregation.rs index c4c2e4d8..d73bc94b 100644 --- a/daemoneye-eventbus/src/result_aggregation.rs +++ b/daemoneye-eventbus/src/result_aggregation.rs @@ -279,8 +279,7 @@ impl ResultAggregator { } /// Start result collection background task - #[allow(clippy::unused_async)] - async fn start_result_collection_task(&self) -> Result<()> { + fn start_result_collection_task(&self) -> impl Future> { let broker = Arc::clone(&self.broker); tokio::spawn(async move { @@ -302,12 +301,11 @@ impl ResultAggregator { info!("Result collection task started"); }); - Ok(()) + std::future::ready(Ok(())) } /// Start correlation processing background task - #[allow(clippy::unused_async)] - async fn start_correlation_processing_task(&self) -> Result<()> { + fn start_correlation_processing_task(&self) -> impl Future> { let pending_results = Arc::clone(&self.pending_results); let correlation_tracker = Arc::clone(&self.correlation_tracker); let result_sender = Arc::clone(&self.result_sender); @@ -441,12 +439,11 @@ impl ResultAggregator { } }); - Ok(()) + std::future::ready(Ok(())) } /// Start health monitoring background task - #[allow(clippy::unused_async)] - async fn start_health_monitoring_task(&self) -> Result<()> { + fn start_health_monitoring_task(&self) -> impl Future> { let collector_health = Arc::clone(&self.collector_health); let task_distributor = Arc::clone(&self.task_distributor); let stats = Arc::clone(&self.stats); @@ -522,12 +519,11 @@ impl ResultAggregator { } }); - Ok(()) + std::future::ready(Ok(())) } /// Start deduplication cleanup background task - #[allow(clippy::unused_async)] - async fn start_deduplication_cleanup_task(&self) -> Result<()> { + fn start_deduplication_cleanup_task(&self) -> impl Future> { let deduplication_cache = Arc::clone(&self.deduplication_cache); let deduplication_window = self.config.deduplication_window; @@ -551,7 +547,7 @@ impl ResultAggregator { } }); - Ok(()) + std::future::ready(Ok(())) } /// Collect a result from a collector diff --git a/daemoneye-eventbus/src/rpc/service.rs b/daemoneye-eventbus/src/rpc/service.rs index 441bb8c6..c7e58e91 100644 --- a/daemoneye-eventbus/src/rpc/service.rs +++ b/daemoneye-eventbus/src/rpc/service.rs @@ -178,7 +178,6 @@ impl CollectorRpcService { } CollectorOperation::GetCapabilities => { self.handle_capabilities_request(request, start_time, deadline) - .await } CollectorOperation::GracefulShutdown => { self.handle_graceful_shutdown_request(request, start_time, deadline) @@ -847,8 +846,7 @@ impl CollectorRpcService { } /// Handle capabilities request - #[allow(clippy::unused_async)] - async fn handle_capabilities_request( + fn handle_capabilities_request( &self, request: RpcRequest, start_time: SystemTime, diff --git a/daemoneye-eventbus/src/rpc/tests.rs b/daemoneye-eventbus/src/rpc/tests.rs index d08c8654..0399adb9 100644 --- a/daemoneye-eventbus/src/rpc/tests.rs +++ b/daemoneye-eventbus/src/rpc/tests.rs @@ -54,7 +54,7 @@ fn test_rpc_request_creation() { .duration_since(request.timestamp) .unwrap_or(Duration::ZERO); assert!(delta >= Duration::from_secs(9) && delta <= Duration::from_secs(11)); - assert!(!request.correlation_metadata.correlation_id.is_empty()); + assert_ne!(request.correlation_metadata.correlation_id, ""); } #[test] diff --git a/daemoneye-eventbus/src/task_distribution.rs b/daemoneye-eventbus/src/task_distribution.rs index f4e8c24e..8a153977 100644 --- a/daemoneye-eventbus/src/task_distribution.rs +++ b/daemoneye-eventbus/src/task_distribution.rs @@ -242,9 +242,8 @@ pub struct TaskDistributor { impl TaskDistributor { /// Create a new task distributor - #[allow(clippy::unused_async)] - pub async fn new(broker: Arc) -> Result { - Ok(Self { + pub fn new(broker: Arc) -> impl Future> { + std::future::ready(Ok(Self { broker, capability_registry: Arc::new(RwLock::new(HashMap::with_capacity(16))), task_queue: Arc::new(Mutex::new(BinaryHeap::new())), @@ -254,19 +253,18 @@ impl TaskDistributor { max_queue_size: 10000, max_retries: 3, heartbeat_timeout: Duration::from_secs(30), - }) + })) } /// Create a new task distributor with custom configuration - #[allow(clippy::unused_async)] - pub async fn with_config( + pub fn with_config( broker: Arc, max_queue_size: usize, max_retries: u32, heartbeat_timeout: Duration, routing_strategy: RoutingStrategy, - ) -> Result { - Ok(Self { + ) -> impl Future> { + std::future::ready(Ok(Self { broker, capability_registry: Arc::new(RwLock::new(HashMap::with_capacity(16))), task_queue: Arc::new(Mutex::new(BinaryHeap::new())), @@ -276,7 +274,7 @@ impl TaskDistributor { max_queue_size, max_retries, heartbeat_timeout, - }) + })) } /// Register a collector's capabilities @@ -773,8 +771,7 @@ impl TaskDistributor { } /// Start background tasks for queue processing and health checks - #[allow(clippy::unused_async)] - pub async fn start_background_tasks(&self) -> Result<()> { + pub fn start_background_tasks(&self) -> impl Future> { // Queue processing task let queue_distributor = self.clone_for_background(); tokio::spawn(async move { @@ -800,7 +797,7 @@ impl TaskDistributor { }); info!("Started background tasks for task distribution"); - Ok(()) + std::future::ready(Ok(())) } /// Helper to clone for background tasks diff --git a/daemoneye-eventbus/src/transport.rs b/daemoneye-eventbus/src/transport.rs index c3a33663..1bb59a3e 100644 --- a/daemoneye-eventbus/src/transport.rs +++ b/daemoneye-eventbus/src/transport.rs @@ -163,8 +163,12 @@ pub struct TransportServer { impl TransportServer { /// Create a new transport server - #[allow(clippy::unused_async)] - pub async fn new(config: SocketConfig) -> Result { + pub fn new(config: SocketConfig) -> impl Future> { + std::future::ready(Self::bind(config)) + } + + /// Bind the listener and build the server + fn bind(config: SocketConfig) -> Result { let socket_path = config.get_socket_path(); // Clean up any existing socket file and ensure parent directory permissions (Unix only) @@ -368,8 +372,7 @@ impl TransportServer { } /// Shutdown the server - #[allow(clippy::unused_async)] - pub async fn shutdown(&mut self) -> Result<()> { + pub fn shutdown(&mut self) -> impl Future> { info!("Transport server shutdown"); // Close the listener @@ -391,7 +394,7 @@ impl TransportServer { } } - Ok(()) + std::future::ready(Ok(())) } } @@ -910,8 +913,7 @@ impl TransportClient { } /// Close the transport connection - #[allow(clippy::unused_async)] - pub async fn close(mut self) -> Result<()> { + pub fn close(mut self) -> impl Future> { self.connected = false; self.buffer.clear(); @@ -921,7 +923,7 @@ impl TransportClient { } debug!("Transport connection closed"); - Ok(()) + std::future::ready(Ok(())) } } @@ -1040,12 +1042,11 @@ impl ClientConnectionManager { } /// Insert an accepted client connection (from server accept) - #[allow(clippy::unused_async)] - pub async fn insert_accepted_client( + pub fn insert_accepted_client( &mut self, client_id: String, transport_client: TransportClient, - ) -> Result<()> { + ) -> impl Future> { info!("Inserting accepted client: {}", client_id); let managed_client = ManagedClient { @@ -1061,7 +1062,7 @@ impl ClientConnectionManager { self.stats.total_clients = self.clients.len(); self.update_healthy_clients_count(); - Ok(()) + std::future::ready(Ok(())) } /// Remove a client connection @@ -1077,16 +1078,15 @@ impl ClientConnectionManager { } /// Subscribe a client to topic patterns - #[allow(clippy::unused_async)] - pub async fn subscribe_client( + pub fn subscribe_client( &mut self, client_id: &str, topic_patterns: Vec, - ) -> Result<()> { + ) -> impl Future> { if !self.clients.contains_key(client_id) { - return Err(EventBusError::transport(format!( + return std::future::ready(Err(EventBusError::transport(format!( "Client {client_id} not found" - ))); + )))); } debug!( @@ -1095,17 +1095,16 @@ impl ClientConnectionManager { ); self.subscriptions .insert(client_id.to_owned(), topic_patterns); - Ok(()) + std::future::ready(Ok(())) } /// Unsubscribe a client from all topics - #[allow(clippy::unused_async)] - pub async fn unsubscribe_client(&mut self, client_id: &str) -> Result<()> { + pub fn unsubscribe_client(&mut self, client_id: &str) -> impl Future> { if let Some(patterns) = self.subscriptions.get_mut(client_id) { debug!("Unsubscribing client {} from all topics", client_id); patterns.clear(); } - Ok(()) + std::future::ready(Ok(())) } /// Send message to specific client diff --git a/daemoneye-eventbus/tests/rpc_integration_tests.rs b/daemoneye-eventbus/tests/rpc_integration_tests.rs index 30ac3ee4..03832538 100644 --- a/daemoneye-eventbus/tests/rpc_integration_tests.rs +++ b/daemoneye-eventbus/tests/rpc_integration_tests.rs @@ -895,8 +895,8 @@ async fn test_rpc_timeout_handling() { .duration_since(request.timestamp) .unwrap_or(Duration::ZERO); assert!(delta >= Duration::from_millis(4500) && delta <= Duration::from_millis(5500)); - assert!(!request.request_id.is_empty()); - assert!(!request.correlation_metadata.correlation_id.is_empty()); + assert_ne!(request.request_id, ""); + assert_ne!(request.correlation_metadata.correlation_id, ""); } #[tokio::test] @@ -1292,7 +1292,7 @@ async fn test_rpc_response_correlation() -> Result<()> { for handle in handles { let request_id = handle.await.unwrap()?; // Each request should have received its own response - assert!(!request_id.is_empty()); + assert_ne!(request_id, ""); } Ok(()) diff --git a/daemoneye-lib/Cargo.toml b/daemoneye-lib/Cargo.toml index 2843cd34..fd4dacc1 100644 --- a/daemoneye-lib/Cargo.toml +++ b/daemoneye-lib/Cargo.toml @@ -100,7 +100,6 @@ postcard = { workspace = true } # Protocol Buffers support prost = { workspace = true } -prost-types = { workspace = true } # Shared bounded hash-result cache (inline path + triggered path share one instance) quick_cache = { workspace = true } @@ -111,7 +110,6 @@ redb = { workspace = true } # Regex compilation for REGEXP detection patterns regex = { workspace = true, optional = true } -rs_merkle = { workspace = true } # Sink credentials held in memory (resolved from environment variables at sink build) secrecy = { workspace = true } # Core dependencies used by all components @@ -139,7 +137,6 @@ thiserror = { workspace = true } # Async runtime tokio = { workspace = true } -toml = { workspace = true } tracing = { workspace = true } unidirs = { workspace = true } @@ -160,8 +157,10 @@ predicates = { workspace = true } proptest = { workspace = true } # cache_metrics makes redb count cache evictions, which the page-cache wiring test observes. redb = { workspace = true, features = ["cache_metrics"] } +rs_merkle = { workspace = true } # `test-util`: paused time for the delivery retry, breaker and worker tests. tokio = { workspace = true, features = ["test-util"] } +toml = { workspace = true } # `no-env-filter`: the default filter admits only the test crate's own events, which would hide # the library logs the detection tests assert on. tracing-test = { workspace = true, features = ["no-env-filter"] } diff --git a/daemoneye-lib/src/alerting/mod.rs b/daemoneye-lib/src/alerting/mod.rs index 63b4ed80..410fcd2c 100644 --- a/daemoneye-lib/src/alerting/mod.rs +++ b/daemoneye-lib/src/alerting/mod.rs @@ -533,7 +533,7 @@ mod tests { for error in errors { let error_string = format!("{}", error); - assert!(!error_string.is_empty()); + assert_ne!(error_string, ""); } } } diff --git a/daemoneye-lib/src/config.rs b/daemoneye-lib/src/config.rs index 50ae8759..1f99d808 100644 --- a/daemoneye-lib/src/config.rs +++ b/daemoneye-lib/src/config.rs @@ -1726,7 +1726,7 @@ mod tests { for error in errors { let error_string = format!("{error}"); - assert!(!error_string.is_empty()); + assert_ne!(error_string, ""); } } @@ -1757,7 +1757,10 @@ mod tests { #[test] fn test_alerting_config_creation() { let alerting_config = AlertingConfig::default(); - assert!(alerting_config.sinks.is_empty()); + assert_eq!( + alerting_config.sinks, + Vec::::new() + ); assert_eq!(alerting_config.recent_threshold_seconds, 3600); } diff --git a/daemoneye-lib/src/crypto.rs b/daemoneye-lib/src/crypto.rs index 97815c16..0186499a 100644 --- a/daemoneye-lib/src/crypto.rs +++ b/daemoneye-lib/src/crypto.rs @@ -314,7 +314,7 @@ mod tests { fn test_blake3_hash() { let data = b"test data"; let hash = Blake3Hasher::hash(data); - assert!(!hash.is_empty()); + assert_ne!(hash, ""); assert_eq!(hash.len(), 64); // BLAKE3 produces 32 bytes = 64 hex chars } diff --git a/daemoneye-lib/src/detection/execution/completeness.rs b/daemoneye-lib/src/detection/execution/completeness.rs index a05a744c..ffcb8d15 100644 --- a/daemoneye-lib/src/detection/execution/completeness.rs +++ b/daemoneye-lib/src/detection/execution/completeness.rs @@ -315,7 +315,10 @@ mod tests { #[test] fn a_run_with_nothing_wrong_yields_no_execution_reason() { - assert!(execution_reasons(None, false, &scan(0), None).is_empty()); + assert_eq!( + execution_reasons(None, false, &scan(0), None), + Vec::::new() + ); } #[test] diff --git a/daemoneye-lib/src/detection/execution/functions.rs b/daemoneye-lib/src/detection/execution/functions.rs index 151f0169..64ad4183 100644 --- a/daemoneye-lib/src/detection/execution/functions.rs +++ b/daemoneye-lib/src/detection/execution/functions.rs @@ -216,7 +216,9 @@ fn decode_hex(text: &str) -> Result> { )); } bytes - .chunks_exact(2) + .as_chunks::<2>() + .0 + .iter() .map(|pair| { pair.first() .zip(pair.get(1)) diff --git a/daemoneye-lib/src/detection/mod.rs b/daemoneye-lib/src/detection/mod.rs index 9ccc2cc4..a0a4694d 100644 --- a/daemoneye-lib/src/detection/mod.rs +++ b/daemoneye-lib/src/detection/mod.rs @@ -679,7 +679,7 @@ mod tests { for error in errors { let error_string = format!("{error}"); - assert!(!error_string.is_empty()); + assert_ne!(error_string, ""); } } } diff --git a/daemoneye-lib/src/kernel.rs b/daemoneye-lib/src/kernel.rs index 7da3b997..80022a83 100644 --- a/daemoneye-lib/src/kernel.rs +++ b/daemoneye-lib/src/kernel.rs @@ -272,7 +272,7 @@ mod tests { fn test_kernel_monitor_collect_events_disabled() { let mut monitor = KernelMonitor::default(); let events = monitor.collect_events().expect("Failed to collect events"); - assert!(events.is_empty()); + assert_eq!(events, Vec::::new()); } #[test] @@ -281,7 +281,7 @@ mod tests { monitor.start().expect("Failed to start monitor"); let events = monitor.collect_events().expect("Failed to collect events"); // Currently returns empty vector, but tests the enabled path - assert!(events.is_empty()); + assert_eq!(events, Vec::::new()); } } diff --git a/daemoneye-lib/src/models/completeness.rs b/daemoneye-lib/src/models/completeness.rs index cc41e059..ddd7066c 100644 --- a/daemoneye-lib/src/models/completeness.rs +++ b/daemoneye-lib/src/models/completeness.rs @@ -189,7 +189,7 @@ mod tests { fn complete_carries_no_reason() { let completeness = Completeness::complete(); assert_eq!(completeness.status(), CompletenessStatus::Complete); - assert!(completeness.reasons().is_empty()); + assert_eq!(completeness.reasons(), []); } #[test] diff --git a/daemoneye-lib/src/network.rs b/daemoneye-lib/src/network.rs index f1ad3fa8..65497102 100644 --- a/daemoneye-lib/src/network.rs +++ b/daemoneye-lib/src/network.rs @@ -361,7 +361,7 @@ mod tests { fn test_network_monitor_collect_events_disabled() { let mut monitor = NetworkMonitor::default(); let events = monitor.collect_events().expect("Failed to collect events"); - assert!(events.is_empty()); + assert_eq!(events, Vec::::new()); } #[test] @@ -370,7 +370,7 @@ mod tests { let connections = monitor .get_active_connections() .expect("Failed to get active connections"); - assert!(connections.is_empty()); + assert_eq!(connections, Vec::::new()); } #[test] @@ -379,7 +379,7 @@ mod tests { monitor.start().expect("Failed to start monitor"); let events = monitor.collect_events().expect("Failed to collect events"); // Should return empty vector in our placeholder implementation - assert!(events.is_empty()); + assert_eq!(events, Vec::::new()); } } @@ -391,7 +391,7 @@ mod tests { let connections = monitor .get_active_connections() .expect("Failed to get active connections"); - assert!(connections.is_empty()); + assert_eq!(connections, Vec::::new()); } } diff --git a/daemoneye-lib/src/proto.rs b/daemoneye-lib/src/proto.rs index dfdfd4e1..a99db4ea 100644 --- a/daemoneye-lib/src/proto.rs +++ b/daemoneye-lib/src/proto.rs @@ -794,7 +794,10 @@ mod tests { assert_eq!(result.task_id, "test-123"); assert!(result.success); assert!(result.error_message.is_none()); - assert!(result.processes.is_empty()); + assert_eq!( + result.processes, + Vec::::new() + ); // Test failure result let result = DetectionResult::failure("test-456", "Permission denied"); diff --git a/daemoneye-lib/src/storage/ingest/flush_tests.rs b/daemoneye-lib/src/storage/ingest/flush_tests.rs index f5fbebbe..f5b0d0ba 100644 --- a/daemoneye-lib/src/storage/ingest/flush_tests.rs +++ b/daemoneye-lib/src/storage/ingest/flush_tests.rs @@ -89,7 +89,10 @@ async fn redelivery_is_a_duplicate_not_a_gap() { .unwrap(); } let report = handle.flush().await.unwrap(); - assert!(report.gaps.is_empty()); + assert_eq!( + report.gaps, + Vec::::new() + ); } assert_eq!(store.event_count().unwrap(), 10); assert_eq!( @@ -140,7 +143,10 @@ async fn a_skipped_sequence_is_a_gap_naming_expected_and_observed() { 0 ); // The gap is reported once: the next flush starts clean. - assert!(handle.flush().await.unwrap().gaps.is_empty()); + assert_eq!( + handle.flush().await.unwrap().gaps, + Vec::::new() + ); handle.flush_and_stop().await; } @@ -149,7 +155,10 @@ async fn the_first_record_of_a_collector_is_not_a_gap() { let (_dir, store) = store_at("first.redb"); let handle = spawn(Arc::clone(&store), slow_window()); handle.submit(rec("c", 9_000, 0, BASE_MS)).await.unwrap(); - assert!(handle.flush().await.unwrap().gaps.is_empty()); + assert_eq!( + handle.flush().await.unwrap().gaps, + Vec::::new() + ); handle.flush_and_stop().await; } @@ -167,7 +176,10 @@ async fn consecutive_epochs_are_contiguous_but_a_skipped_epoch_is_a_gap() { .submit(rec("c", epoch(5), 1, BASE_MS + 1)) .await .unwrap(); - assert!(handle.flush().await.unwrap().gaps.is_empty()); + assert_eq!( + handle.flush().await.unwrap().gaps, + Vec::::new() + ); handle .submit(rec("c", epoch(7), 2, BASE_MS + 2)) .await diff --git a/daemoneye-lib/src/storage/mod.rs b/daemoneye-lib/src/storage/mod.rs index bf8901e5..cf215ee6 100644 --- a/daemoneye-lib/src/storage/mod.rs +++ b/daemoneye-lib/src/storage/mod.rs @@ -1380,7 +1380,10 @@ mod tests { assert_eq!(hits.len(), 2, "both pid-1234 rows returned via idx:pid"); assert!(hits.iter().all(|r| r.pid.raw() == 1234)); assert_eq!(store.find_by_pid(9999).expect("find pid").len(), 1); - assert!(store.find_by_pid(4242).expect("find miss").is_empty()); + assert_eq!( + store.find_by_pid(4242).expect("find miss"), + Vec::::new() + ); } #[test] @@ -1408,11 +1411,9 @@ mod tests { assert_eq!(nginx.len(), 2, "both nginx rows returned"); assert!(nginx.iter().all(|r| r.name == "nginx")); assert_eq!(store.find_by_name("redis").expect("find redis").len(), 1); - assert!( - store - .find_by_name("absent") - .expect("find absent") - .is_empty() + assert_eq!( + store.find_by_name("absent").expect("find absent"), + Vec::::new() ); } @@ -1439,7 +1440,10 @@ mod tests { let dropped = store.drop_expired(hour.saturating_mul(1001)).expect("drop"); assert_eq!(dropped, 1); // The expired bucket's index is gone; the recent one survives. - assert!(store.find_by_pid(7).expect("find 7 after").is_empty()); + assert_eq!( + store.find_by_pid(7).expect("find 7 after"), + Vec::::new() + ); assert_eq!(store.find_by_pid(8).expect("find 8 after").len(), 1); } @@ -1604,8 +1608,14 @@ mod tests { ); // Empty / inverted windows. - assert!(store.scan_range(10, 10).expect("empty").is_empty()); - assert!(store.scan_range(5_000, 1_000).expect("inverted").is_empty()); + assert_eq!( + store.scan_range(10, 10).expect("empty"), + Vec::::new() + ); + assert_eq!( + store.scan_range(5_000, 1_000).expect("inverted"), + Vec::::new() + ); } #[test] @@ -1632,7 +1642,10 @@ mod tests { vec![(100, 1), (hour, 9)], "ascending (ts, seq) pointers" ); - assert!(store.pid_postings(999).expect("miss").is_empty()); + assert_eq!( + store.pid_postings(999).expect("miss"), + Vec::<(u64, u32)>::new() + ); } #[test] @@ -1808,9 +1821,18 @@ mod tests { let db_path = temp_dir.path().join("events.redb"); let store = EventStore::new(&db_path).expect("create store"); // Reads against never-created tables are empty, not errors. - assert!(store.get_all_rules().expect("rules").is_empty()); - assert!(store.get_all_alerts().expect("alerts").is_empty()); - assert!(store.get_all_scans().expect("scans").is_empty()); + assert_eq!( + store.get_all_rules().expect("rules"), + Vec::::new() + ); + assert_eq!( + store.get_all_alerts().expect("alerts"), + Vec::::new() + ); + assert_eq!( + store.get_all_scans().expect("scans"), + Vec::::new() + ); assert!(store.get_rule("x").expect("rule").is_none()); } @@ -1961,7 +1983,7 @@ mod tests { for error in errors { let error_string = format!("{error}"); - assert!(!error_string.is_empty()); + assert_ne!(error_string, ""); } } @@ -2040,7 +2062,7 @@ mod tests { // Test that get_all_alerts returns empty vector (currently stubbed) let alerts = manager.get_all_alerts().expect("Failed to get all alerts"); - assert!(alerts.is_empty()); + assert_eq!(alerts, Vec::::new()); } #[test] @@ -2136,7 +2158,10 @@ mod tests { let processes = manager .get_all_processes() .expect("Failed to get all processes"); - assert!(processes.is_empty()); + assert_eq!( + processes, + Vec::::new() + ); } #[test] @@ -2147,7 +2172,7 @@ mod tests { // Test that get_all_rules returns empty vector (currently stubbed) let rules = manager.get_all_rules().expect("Failed to get all rules"); - assert!(rules.is_empty()); + assert_eq!(rules, Vec::::new()); } #[test] @@ -2191,7 +2216,7 @@ mod tests { let metadata = manager .get_all_scan_metadata() .expect("Failed to get scan metadata"); - assert!(metadata.is_empty()); + assert_eq!(metadata, Vec::::new()); } #[test] diff --git a/daemoneye-lib/src/storage/provider/keyset.rs b/daemoneye-lib/src/storage/provider/keyset.rs index d4f67d27..ffac5654 100644 --- a/daemoneye-lib/src/storage/provider/keyset.rs +++ b/daemoneye-lib/src/storage/provider/keyset.rs @@ -41,8 +41,8 @@ mod tests { let a = [(1, 0), (1, 1), (2, 0), (5, 3), (9, 9)]; let b = [(1, 1), (2, 0), (2, 1), (9, 9), (10, 0)]; assert_eq!(intersect_sorted(&a, &b), vec![(1, 1), (2, 0), (9, 9)]); - assert!(intersect_sorted(&a, &[]).is_empty()); - assert!(intersect_sorted(&[], &b).is_empty()); + assert_eq!(intersect_sorted(&a, &[]), Vec::<(u64, u32)>::new()); + assert_eq!(intersect_sorted(&[], &b), Vec::<(u64, u32)>::new()); } #[test] @@ -53,6 +53,6 @@ mod tests { union_sorted(&[&a, &b]), vec![(1, 0), (2, 0), (3, 0), (3, 1)] ); - assert!(union_sorted(&[]).is_empty()); + assert_eq!(union_sorted(&[]), Vec::<(u64, u32)>::new()); } } diff --git a/daemoneye-lib/src/storage/read.rs b/daemoneye-lib/src/storage/read.rs index 9ccdc38f..fe8a45af 100644 --- a/daemoneye-lib/src/storage/read.rs +++ b/daemoneye-lib/src/storage/read.rs @@ -353,7 +353,10 @@ mod tests { .map(|i| (start + u64::from(i) * 10, i)) .collect(); assert_eq!(all, expected); - assert!(c4.is_empty()); + assert_eq!( + c4, + Vec::<((u64, u32), crate::models::process::ProcessRecord)>::new() + ); } #[test] @@ -447,10 +450,9 @@ mod tests { let upper = rd.postings(BASE_HOUR, IndexTerm::name("Bash")).unwrap(); assert_eq!(lower, vec![(t0 + 1, 1), (t0 + 2, 2)]); assert_eq!(lower, upper); - assert!( - rd.postings(BASE_HOUR, IndexTerm::name("nope")) - .unwrap() - .is_empty() + assert_eq!( + rd.postings(BASE_HOUR, IndexTerm::name("nope")).unwrap(), + Vec::<(u64, u32)>::new() ); } @@ -476,20 +478,21 @@ mod tests { let exe = IndexTerm::exe_hash(sha).unwrap(); assert_eq!(rd.postings(BASE_HOUR, exe).unwrap(), vec![(t0 + 1, 1)]); // Bucket with no tables at all, and a bucket whose ppid/exe tables were never created. - assert!( - rd.postings(BASE_HOUR + 9, IndexTerm::Pid(77)) - .unwrap() - .is_empty() + assert_eq!( + rd.postings(BASE_HOUR + 9, IndexTerm::Pid(77)).unwrap(), + Vec::<(u64, u32)>::new() ); let (_d2, st2) = open_store(); put(&st2, t0 + 1, 1, 1, "only-pid-name"); let rd2 = st2.open_read().unwrap(); - assert!( - rd2.postings(BASE_HOUR, IndexTerm::Ppid(5)) - .unwrap() - .is_empty() + assert_eq!( + rd2.postings(BASE_HOUR, IndexTerm::Ppid(5)).unwrap(), + Vec::<(u64, u32)>::new() + ); + assert_eq!( + rd2.postings(BASE_HOUR, exe).unwrap(), + Vec::<(u64, u32)>::new() ); - assert!(rd2.postings(BASE_HOUR, exe).unwrap().is_empty()); } #[test] @@ -534,9 +537,15 @@ mod tests { let (rows, consumed) = rd .fetch(BASE_HOUR + 50, &[(t0 + 1, 1)], usize::MAX) .unwrap(); - assert!(rows.is_empty()); + assert_eq!( + rows, + Vec::<((u64, u32), crate::models::process::ProcessRecord)>::new() + ); assert_eq!(consumed, 1, "a missing bucket consumes its keys"); - assert!(rd.fetch(BASE_HOUR, &[], usize::MAX).unwrap().0.is_empty()); + assert_eq!( + rd.fetch(BASE_HOUR, &[], usize::MAX).unwrap().0, + Vec::<((u64, u32), crate::models::process::ProcessRecord)>::new() + ); } /// The byte budget closes a chunk before the row that would overflow it, so a run of large @@ -608,10 +617,10 @@ mod tests { .collect(); assert_eq!(window, expected); assert_eq!(window.len(), 4, "[30, 70) holds 30, 40, 50 and 60"); - assert!( + assert_eq!( rd.postings_in(BASE_HOUR, IndexTerm::Pid(7), t0 + 500, t0 + 600) - .unwrap() - .is_empty() + .unwrap(), + Vec::<(u64, u32)>::new() ); assert!( rd.postings_in(BASE_HOUR, IndexTerm::Pid(8), t0, t0 + 100) @@ -636,15 +645,13 @@ mod tests { vec![3] ); assert_eq!(st.bucket_ids_in(0, 6 * HOURLY_MS).unwrap(), vec![1, 3, 5]); - assert!( - st.bucket_ids_in(4 * HOURLY_MS, 4 * HOURLY_MS) - .unwrap() - .is_empty() + assert_eq!( + st.bucket_ids_in(4 * HOURLY_MS, 4 * HOURLY_MS).unwrap(), + Vec::::new() ); - assert!( - st.bucket_ids_in(5 * HOURLY_MS, HOURLY_MS) - .unwrap() - .is_empty() + assert_eq!( + st.bucket_ids_in(5 * HOURLY_MS, HOURLY_MS).unwrap(), + Vec::::new() ); } diff --git a/daemoneye-lib/tests/alerting_config.rs b/daemoneye-lib/tests/alerting_config.rs index 6d696593..851cf7cc 100644 --- a/daemoneye-lib/tests/alerting_config.rs +++ b/daemoneye-lib/tests/alerting_config.rs @@ -358,7 +358,10 @@ fn bearer_without_a_variable_name_is_refused() { #[test] fn disabled_sinks_are_never_resolved() { let config = bearer_config(false); - assert!(config.alerting.enabled_specs().unwrap().is_empty()); + assert_eq!( + config.alerting.enabled_specs().unwrap(), + Vec::::new() + ); } #[test] diff --git a/daemoneye-lib/tests/detection_completeness.rs b/daemoneye-lib/tests/detection_completeness.rs index cb35a8c5..919b3b61 100644 --- a/daemoneye-lib/tests/detection_completeness.rs +++ b/daemoneye-lib/tests/detection_completeness.rs @@ -160,9 +160,9 @@ async fn completeness_ae1_healthy_control_is_complete_and_failed_collection_is_n let control_outcome = run_with(&fx, &healthy()).await; let control = only(&control_outcome); - assert!(control.alerts.is_empty()); + assert_eq!(control.alerts, Vec::::new()); assert_eq!(control.completeness.status(), CompletenessStatus::Complete); - assert!(control.completeness.reasons().is_empty()); + assert_eq!(control.completeness.reasons(), []); let mut failed = healthy(); failed.collection.insert( @@ -171,7 +171,7 @@ async fn completeness_ae1_healthy_control_is_complete_and_failed_collection_is_n ); let degraded_outcome = run_with(&fx, &failed).await; let degraded = only(°raded_outcome); - assert!(degraded.alerts.is_empty()); + assert_eq!(degraded.alerts, Vec::::new()); assert_eq!(degraded.completeness.status(), CompletenessStatus::Degraded); let unavailable_count = degraded .completeness @@ -232,7 +232,7 @@ async fn completeness_failed_heartbeat_for_another_collector_does_not_degrade_th only(&outcome).completeness.status(), CompletenessStatus::Complete ); - assert!(only(&outcome).completeness.reasons().is_empty()); + assert_eq!(only(&outcome).completeness.reasons(), []); } #[tokio::test] @@ -269,7 +269,7 @@ async fn completeness_sequence_gap_degrades_only_the_gapped_collectors_table() { let unaffected = run_with(&fx, &other).await; let affected = run_with(&fx, &ours).await; - assert!(only(&unaffected).completeness.reasons().is_empty()); + assert_eq!(only(&unaffected).completeness.reasons(), []); assert_eq!( only(&affected).completeness.reasons(), [CompletenessReason::SequenceGapDetected { diff --git a/daemoneye-lib/tests/detection_conformance.rs b/daemoneye-lib/tests/detection_conformance.rs index dab9563a..ec3803f7 100644 --- a/daemoneye-lib/tests/detection_conformance.rs +++ b/daemoneye-lib/tests/detection_conformance.rs @@ -241,7 +241,13 @@ fn the_corpus_covers_all_four_axes_for_every_operation_it_names() { .collect(); pairs.sort_unstable_by_key(|&(column_type, op)| (i32::from(column_type), i32::from(op))); pairs.dedup(); - assert!(!pairs.is_empty()); + assert_ne!( + pairs, + Vec::<( + daemoneye_lib::proto::ColumnType, + daemoneye_lib::proto::PredicateOp + )>::new() + ); // Assert for (column_type, op) in pairs { diff --git a/daemoneye-lib/tests/detection_derive.rs b/daemoneye-lib/tests/detection_derive.rs index 9499c450..67a05d2c 100644 --- a/daemoneye-lib/tests/detection_derive.rs +++ b/daemoneye-lib/tests/detection_derive.rs @@ -384,7 +384,7 @@ async fn derive_a_null_literal_matches_no_row_as_sql_null_does() { let null_expr = predicate_to_expr(&c.state(), &predicate("name", PredicateOp::Eq, vec![null])).unwrap(); let null_df = c.read_table(provider).unwrap().filter(null_expr).unwrap(); - assert!(pids_or_empty(null_df).await.is_empty()); + assert_eq!(pids_or_empty(null_df).await, Vec::::new()); } async fn pids_or_empty(df: datafusion::prelude::DataFrame) -> Vec { @@ -428,7 +428,7 @@ async fn derive_a_row_in_one_window_is_not_in_the_next() { let in_first = derive(&c, Arc::clone(&table), &compiled, first, 100).unwrap(); assert_eq!(pids(in_first).await, vec![1]); let in_second = derive(&c, table, &compiled, second, 100).unwrap(); - assert!(pids(in_second).await.is_empty()); + assert_eq!(pids(in_second).await, Vec::::new()); } #[tokio::test] diff --git a/daemoneye-lib/tests/detection_execution.rs b/daemoneye-lib/tests/detection_execution.rs index 29079ce8..b6d7245f 100644 --- a/daemoneye-lib/tests/detection_execution.rs +++ b/daemoneye-lib/tests/detection_execution.rs @@ -306,7 +306,10 @@ async fn session_exhausted_pool_is_a_resource_error_and_never_a_spill() { assert!(error.to_string().contains("DiskManager is disabled")); assert!(!runtime.disk_manager.tmp_files_enabled()); assert_eq!(runtime.disk_manager.used_disk_space(), 0); - assert!(runtime.disk_manager.temp_dir_paths().is_empty()); + assert_eq!( + runtime.disk_manager.temp_dir_paths(), + Vec::::new() + ); assert_eq!( runtime.memory_pool.reserved(), 0, diff --git a/daemoneye-lib/tests/detection_executor.rs b/daemoneye-lib/tests/detection_executor.rs index 499148ff..c0bb6cfc 100644 --- a/daemoneye-lib/tests/detection_executor.rs +++ b/daemoneye-lib/tests/detection_executor.rs @@ -420,7 +420,10 @@ async fn a_regexp_that_matches_nothing_still_reports_its_worst_batch_when_the_sc let outcome = run(&fx).await; - assert!(only(&outcome).alerts.is_empty()); + assert_eq!( + only(&outcome).alerts, + Vec::::new() + ); // Within its threshold (config() parks it at the maximum): every scan batch is read and the // single report still arrives when the stream ends. This is the control for the selective // breach test below. @@ -451,7 +454,10 @@ async fn a_report_carries_the_generation_of_a_reloaded_rule() { let outcome = run(&fx).await; - assert!(!outcome.reports.is_empty()); + assert_ne!( + outcome.reports, + Vec::::new() + ); assert!(outcome.reports.iter().all(|r| r.generation == second)); assert_eq!(only(&outcome).generation, second); } @@ -517,7 +523,7 @@ async fn a_breaching_rule_stops_draining_in_the_same_call_while_the_next_rule_ru ); assert!(breaching.scan.batches < total); assert!(breaching.scan.rows_read < u64::try_from(SMALL_BATCH).unwrap() * total); - assert!(!breaching.alerts.is_empty()); + assert_ne!(breaching.alerts, Vec::::new()); assert!(!control.stopped_on_latency); assert_eq!(control.scan.batches, total); assert_eq!(control.alerts.len(), SMALL_BATCH * BATCHES); @@ -577,7 +583,10 @@ async fn a_selective_breaching_rule_stops_scanning_instead_of_reading_every_batc evaluation.failure.is_none(), "a latency stop is not a failure" ); - assert!(evaluation.alerts.is_empty()); + assert_eq!( + evaluation.alerts, + Vec::::new() + ); assert!(evaluation.scan.rows_read <= u64::try_from(SMALL_BATCH).unwrap() * PRODUCER_LEAD); // The post-hoc path still sees the breach, under the issued generation. assert_eq!(outcome.reports.len(), 1); @@ -629,7 +638,7 @@ async fn a_rule_that_cannot_be_planned_records_a_failure_and_the_next_rule_still let bad = by_id(&outcome, "a_bad"); assert!(matches!(bad.failure, Some(EvaluationFailure::Execution(_)))); - assert!(bad.alerts.is_empty()); + assert_eq!(bad.alerts, Vec::::new()); let good = by_id(&outcome, "b_good"); assert!(good.failure.is_none()); assert_eq!(good.alerts.len(), 2); diff --git a/daemoneye-lib/tests/detection_planner.rs b/daemoneye-lib/tests/detection_planner.rs index 0a8f3aa0..0eb043d9 100644 --- a/daemoneye-lib/tests/detection_planner.rs +++ b/daemoneye-lib/tests/detection_planner.rs @@ -200,7 +200,10 @@ fn an_advertised_but_unverified_operation_is_treated_as_unverified() { ) .unwrap(); - assert!(compiled.plan().predicates.is_empty()); + assert_eq!( + compiled.plan().predicates, + Vec::::new() + ); assert!(compiled.residual().is_some()); } @@ -218,7 +221,10 @@ fn a_rule_with_no_pushable_predicate_loads_as_a_projection_only_task() { ) .unwrap(); - assert!(compiled.plan().predicates.is_empty()); + assert_eq!( + compiled.plan().predicates, + Vec::::new() + ); assert_eq!(compiled.plan().table, "processes"); assert_eq!(compiled.collector_id(), "procmond"); // The residual reads memory_usage, so the projection has to carry it back. @@ -439,7 +445,7 @@ fn a_rule_loaded_before_any_collector_registers_is_deferred_and_planned_on_regis engine.compiled_rule("rule-1").is_some(), "a deferred rule is planned once a collector arrives, never dropped" ); - assert!(engine.deferred_rule_ids().is_empty()); + assert_eq!(engine.deferred_rule_ids(), Vec::::new()); } #[test] diff --git a/daemoneye-lib/tests/detection_rule_health.rs b/daemoneye-lib/tests/detection_rule_health.rs index c7036a72..88974940 100644 --- a/daemoneye-lib/tests/detection_rule_health.rs +++ b/daemoneye-lib/tests/detection_rule_health.rs @@ -80,7 +80,7 @@ fn first_registration_replans_rules_that_were_waiting_on_an_empty_catalog() { // Assert assert!(change.is_first_registration()); assert_eq!(outcome.to_replan(), ["waiting"]); - assert!(outcome.newly_unhealthy().is_empty()); + assert_eq!(outcome.newly_unhealthy(), Vec::::new()); assert_eq!(rules.health("waiting"), Some(&RuleHealth::Healthy)); } @@ -164,8 +164,8 @@ fn a_rule_untouched_by_the_change_is_left_alone() { // A later, unrelated re-registration of `processes` must not revisit it. let widened = register(&mut catalog, &["name", "pid"]); let second_outcome = rules.revalidate(&catalog, &widened); - assert!(second_outcome.newly_unhealthy().is_empty()); - assert!(second_outcome.to_replan().is_empty()); + assert_eq!(second_outcome.newly_unhealthy(), Vec::::new()); + assert_eq!(second_outcome.to_replan(), Vec::::new()); } /// A rule marked unhealthy by revalidation must also lose its compiled plan, or the renewal clock diff --git a/daemoneye-lib/tests/ipc_comprehensive_integration.rs b/daemoneye-lib/tests/ipc_comprehensive_integration.rs index fb74ecfc..49753ea7 100644 --- a/daemoneye-lib/tests/ipc_comprehensive_integration.rs +++ b/daemoneye-lib/tests/ipc_comprehensive_integration.rs @@ -359,7 +359,10 @@ async fn test_concurrent_task_distribution() { for (task_id, result, duration) in results { assert!(result.success, "Task {} failed", task_id); assert_eq!(result.task_id, format!("concurrent_task_{}", task_id)); - assert!(!result.processes.is_empty()); + assert_ne!( + result.processes, + Vec::::new() + ); // Verify reasonable processing time - adjust for Windows staggering #[cfg(windows)] diff --git a/daemoneye-lib/tests/ipc_cross_platform_tests.rs b/daemoneye-lib/tests/ipc_cross_platform_tests.rs index f8c04dde..dff8c1fc 100644 --- a/daemoneye-lib/tests/ipc_cross_platform_tests.rs +++ b/daemoneye-lib/tests/ipc_cross_platform_tests.rs @@ -167,7 +167,7 @@ async fn test_endpoint_path_validation() { }; // Should be able to create server with valid endpoint - let server = InterprocessServer::new(config.clone()); + let server = InterprocessServer::new(config); // Server creation should succeed (constructor doesn't return Result) drop(server); diff --git a/daemoneye-lib/tests/protobuf_multi_domain_tests.rs b/daemoneye-lib/tests/protobuf_multi_domain_tests.rs index 2957fc30..49ebc07c 100644 --- a/daemoneye-lib/tests/protobuf_multi_domain_tests.rs +++ b/daemoneye-lib/tests/protobuf_multi_domain_tests.rs @@ -42,7 +42,7 @@ fn test_collection_capabilities_serialization() -> Result<(), Box::new()); // Test deserialization let deserialized = CollectionCapabilities::decode(&serialized[..]) @@ -111,7 +111,7 @@ fn test_extended_task_types() -> Result<(), Box> { }; let serialized = task.encode_to_vec(); - assert!(!serialized.is_empty()); + assert_ne!(serialized, Vec::::new()); let deserialized = DetectionTask::decode(&serialized[..]) .map_err(|e| format!("Failed to deserialize DetectionTask: {e}"))?; @@ -175,7 +175,7 @@ fn test_detection_task_with_multi_domain_filters() -> Result<(), Box::new()); // Test deserialization let deserialized = DetectionTask::decode(&serialized[..]) @@ -289,7 +289,7 @@ fn test_detection_result_with_multi_domain_events() -> Result<(), Box::new()); // Test deserialization let deserialized = DetectionResult::decode(&serialized[..]) @@ -427,9 +427,18 @@ fn test_backward_compatibility_detection_result() -> Result<(), Box::new() + ); + assert_eq!( + deserialized.filesystem_events, + Vec::::new() + ); + assert_eq!( + deserialized.performance_events, + Vec::::new() + ); Ok(()) } @@ -504,9 +513,9 @@ fn test_empty_filters_serialization() -> Result<(), Box> let performance_deserialized = PerformanceFilter::decode(&performance_serialized[..]) .map_err(|e| format!("Failed to deserialize empty PerformanceFilter: {e}"))?; - assert!(network_deserialized.protocols.is_empty()); - assert!(filesystem_deserialized.path_patterns.is_empty()); - assert!(performance_deserialized.metric_names.is_empty()); + assert_eq!(network_deserialized.protocols, Vec::::new()); + assert_eq!(filesystem_deserialized.path_patterns, Vec::::new()); + assert_eq!(performance_deserialized.metric_names, Vec::::new()); Ok(()) } @@ -620,7 +629,7 @@ fn test_message_size_limits() -> Result<(), Box> { // Should be able to serialize and deserialize large messages let serialized = large_task.encode_to_vec(); - assert!(!serialized.is_empty()); + assert_ne!(serialized, Vec::::new()); let deserialized = DetectionTask::decode(&serialized[..]) .map_err(|e| format!("Failed to deserialize large DetectionTask: {e}"))?; diff --git a/daemoneye-lib/tests/storage_alert_deliveries.rs b/daemoneye-lib/tests/storage_alert_deliveries.rs index ba4c5323..6d6286ce 100644 --- a/daemoneye-lib/tests/storage_alert_deliveries.rs +++ b/daemoneye-lib/tests/storage_alert_deliveries.rs @@ -510,10 +510,25 @@ fn a_store_without_the_table_reads_empty_and_still_matches_the_schema() { let (_dir, path, store) = open(); let open_rows = store.open_deliveries("s").unwrap(); - assert!(open_rows.rows.is_empty()); + assert_eq!( + open_rows.rows, + Vec::<( + daemoneye_lib::models::Uuid, + daemoneye_lib::models::DeliveryRecord + )>::new() + ); assert_eq!(open_rows.corrupt, 0); - assert!(store.dead_letters("s").unwrap().is_empty()); - assert!(store.seed_dedup_window(1_000, 500).unwrap().is_empty()); + assert_eq!( + store.dead_letters("s").unwrap(), + Vec::<( + daemoneye_lib::models::Uuid, + daemoneye_lib::models::DeliveryRecord + )>::new() + ); + assert_eq!( + store.seed_dedup_window(1_000, 500).unwrap(), + Vec::<(String, u64, daemoneye_lib::models::Uuid)>::new() + ); drop(store); let db = Database::open(&path).unwrap(); @@ -572,7 +587,13 @@ fn prune_counts_the_dead_letters_it_removes() { let pruned = store.prune_deliveries(1_000, 500).unwrap(); assert_eq!((pruned.rows, pruned.dead_letters), (2, 1)); - assert!(store.dead_letters("s").unwrap().is_empty()); + assert_eq!( + store.dead_letters("s").unwrap(), + Vec::<( + daemoneye_lib::models::Uuid, + daemoneye_lib::models::DeliveryRecord + )>::new() + ); } /// The dead-letter count rides on the open-row scan, so one read keeps the depth truthful. diff --git a/daemoneye-sinks/tests/syslog.rs b/daemoneye-sinks/tests/syslog.rs index f9564f48..f3c7e52e 100644 --- a/daemoneye-sinks/tests/syslog.rs +++ b/daemoneye-sinks/tests/syslog.rs @@ -475,7 +475,7 @@ async fn tls_verifies_the_server_against_the_configured_ca() { ), "{error:?}" ); - assert!(server.messages().is_empty()); + assert_eq!(server.messages(), Vec::::new()); } /// A `ca_file` for another authority does not trust the server: the file replaces the roots. @@ -489,7 +489,7 @@ async fn a_ca_file_for_another_authority_does_not_trust_the_server() { wrong_ca.ca_file = Some(other.write_ca(dir.path())); let error = delivery_error(sink(wrong_ca).send(&alert()).await); assert_eq!(error, DeliveryError::tls_verification()); - assert!(server.messages().is_empty()); + assert_eq!(server.messages(), Vec::::new()); } /// A TLS connection is reused across sends: the post-handshake records a TLS 1.3 server sends diff --git a/deny.toml b/deny.toml index 53da777d..63a49a63 100644 --- a/deny.toml +++ b/deny.toml @@ -89,8 +89,10 @@ unmaintained = "workspace" # Advisory handling is managed via audit.toml # cargo-deny relies on cargo-audit for advisory detection -# No ignored advisories — all RUSTSEC issues resolved. -ignore = [ ] +# Ignored advisories need a reason naming what would let the entry be removed. +ignore = [ + { id = "RUSTSEC-2026-0543", reason = "chrono is unmaintained with no patched release, and arrow/datafusion require it; remove once chrono is maintained again or arrow drops it and the workspace migrates to jiff/time" }, +] [sources] # Allow crates from crates.io diff --git a/mise.lock b/mise.lock index 5ee783d3..d7c0b4be 100644 --- a/mise.lock +++ b/mise.lock @@ -63,206 +63,267 @@ url = "https://github.com/rhysd/actionlint/releases/download/v1.7.12/actionlint_ provenance = "github-attestations" [[tools.bun]] -version = "1.3.14" +version = "1.4.5" backend = "core:bun" [tools.bun."platforms.linux-arm64"] -checksum = "sha256:a27ffb63a8310375836e0d6f668ae17fa8d8d18b88c37c821c65331973a19a3b" -url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-linux-aarch64.zip" +checksum = "sha256:18656a3bf0ea5641f5796ae4213b75255579a70a0fded2f337933785568cdf84" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.5/bun-linux-aarch64.zip" [tools.bun."platforms.linux-arm64-musl"] -checksum = "sha256:b98e0ad3625c5c00d1d5b5ff55605c7adddbfae151861e68ade57b2d3b8703bb" -url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-linux-aarch64-musl.zip" +checksum = "sha256:d655765d3a0c0fdf707e27c7aa1a4f2c84f1bbc1f759db7e6e3d3c5be414396c" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.5/bun-linux-aarch64-musl.zip" [tools.bun."platforms.linux-x64"] -checksum = "sha256:951ee2aee855f08595aeec6225226a298d3fea83a3dcd6465c09cbccdf7e848f" -url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-linux-x64.zip" +checksum = "sha256:94559b3b528995a49452f9f2404cec74f2efd7d06e0a000a8cd214b02c3666eb" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.5/bun-linux-x64.zip" [tools.bun."platforms.linux-x64-baseline"] -checksum = "sha256:a063908ae08b7852ca10939bbdc6ceed3ddabce8fb9402dce83d65d73b36e6c7" -url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-linux-x64-baseline.zip" +checksum = "sha256:dcb23a18a1c2fff12d57bcef696dbbb42eb67fde29f43816ecb595459a24c463" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.5/bun-linux-x64-baseline.zip" [tools.bun."platforms.linux-x64-musl"] -checksum = "sha256:14bd9aedeebf1dba67e8def9531c89bc989ecfdf1de42e5bfcaf1b8cd9294719" -url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-linux-x64-musl.zip" +checksum = "sha256:9b6bdba1fa0914b6adfe48e4438212e2c106d9199b77ba642a9b8a3968a49a59" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.5/bun-linux-x64-musl.zip" [tools.bun."platforms.linux-x64-musl-baseline"] -checksum = "sha256:56a7d6806cf155536c0178f0ea5fbd098e684fa509ebdb4fc0a7e19fb65382dc" -url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-linux-x64-musl-baseline.zip" +checksum = "sha256:96fb94108eed872ff623ed39007d6b5699a83a5d0086fcfba84921c18145e3e6" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.5/bun-linux-x64-musl-baseline.zip" [tools.bun."platforms.macos-arm64"] -checksum = "sha256:d8b96221828ad6f97ac7ac0ab7e95872341af763001e8803e8267652c2652620" -url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-darwin-aarch64.zip" +checksum = "sha256:b5d6bc2e13caf14e57c89661e89efd073ff16165b41bfe43882616410609cd10" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.5/bun-darwin-aarch64.zip" [tools.bun."platforms.macos-x64"] -checksum = "sha256:4183df3374623e5bab315c547cfa0974533cd457d86b73b639f7a87974cd6633" -url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-darwin-x64.zip" +checksum = "sha256:a4972e778cce4b6a194d7d289f326aa61576d71d80b7a53e9da2f3739566e5fd" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.5/bun-darwin-x64.zip" [tools.bun."platforms.macos-x64-baseline"] -checksum = "sha256:3e35ad6f53971a9834bf9e6786e2adf72b5f1921cc9a9c5fde073d2972944076" -url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-darwin-x64-baseline.zip" +checksum = "sha256:fb0121739a7e80e7511b6bfe4d2116422b48ba18a013acadef0c425348e95891" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.5/bun-darwin-x64-baseline.zip" [tools.bun."platforms.windows-x64"] -checksum = "sha256:0a0620930b6675d7ba440e81f4e0e00d3cfbe096c4b140d3fff02205e9e18922" -url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-windows-x64.zip" +checksum = "sha256:815ab45ec7f549abf87e6869584b506eab088e24225683957b7e150b47d6de30" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.5/bun-windows-x64.zip" [tools.bun."platforms.windows-x64-baseline"] -checksum = "sha256:538f9c846355d9e847b2671bc00c47da4229a0befb24df3282b739770f3b475f" -url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-windows-x64-baseline.zip" +checksum = "sha256:3c081c73865e7a3453a9d514cc2ba3d699880621bcf67bb17241ff5194cb1d4b" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.5/bun-windows-x64-baseline.zip" + +[[tools.bun]] +version = "1.3.10" +backend = "core:bun" + +[tools.bun."platforms.linux-arm64"] +checksum = "sha256:fa5ecb25cafa8e8f5c87a0f833719d46dd0af0a86c7837d806531212d55636d3" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.10/bun-linux-aarch64.zip" + +[tools.bun."platforms.linux-arm64-musl"] +checksum = "sha256:d2c81365a2e529b78a42330d3a0056e8dbd7896b4a6782c8e392b6532141e34d" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.10/bun-linux-aarch64-musl.zip" + +[tools.bun."platforms.linux-x64"] +checksum = "sha256:f57bc0187e39623de716ba3a389fda5486b2d7be7131a980ba54dc7b733d2e08" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.10/bun-linux-x64.zip" + +[tools.bun."platforms.linux-x64-baseline"] +checksum = "sha256:41201a8c5ee74a9dcbb1ce25a1104f1f929838b57a845aa78d98379b0ce7cde2" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.10/bun-linux-x64-baseline.zip" + +[tools.bun."platforms.linux-x64-musl"] +checksum = "sha256:48a6c32277d343db0148ce066336472ffd380358a4d26bb1329714742492d824" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.10/bun-linux-x64-musl.zip" + +[tools.bun."platforms.linux-x64-musl-baseline"] +checksum = "sha256:a7bc4cdea1ef255a83adbf39c7aafcd30e09f2b8f74deec4b10ee318bc024d1f" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.10/bun-linux-x64-musl-baseline.zip" + +[tools.bun."platforms.macos-arm64"] +checksum = "sha256:82034e87c9d9b4398ea619aee2eed5d2a68c8157e9a6ae2d1052d84d533ccd8d" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.10/bun-darwin-aarch64.zip" + +[tools.bun."platforms.macos-x64"] +checksum = "sha256:c1d90bf6140f20e572c473065dc6b37a4b036349b5e9e4133779cc642ad94323" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.10/bun-darwin-x64.zip" + +[tools.bun."platforms.macos-x64-baseline"] +checksum = "sha256:f9686c4e4e760db4cde77a0f1fad05e552648b9c9cbfa4f7fc9a7ec26b9f3267" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.10/bun-darwin-x64-baseline.zip" + +[tools.bun."platforms.windows-x64"] +checksum = "sha256:7a77b3e245e2e26965c93089a4a1332e8a326d3364c89fae1d1fd99cdd3cd73d" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.10/bun-windows-x64.zip" + +[tools.bun."platforms.windows-x64-baseline"] +checksum = "sha256:715709c69b176e20994533d3292bd0b7c32de9c0c5575b916746ec6b2aa38346" +url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.10/bun-windows-x64-baseline.zip" [[tools.cargo-binstall]] -version = "1.21.1" +version = "1.28.0" backend = "aqua:cargo-bins/cargo-binstall" [tools.cargo-binstall."platforms.linux-arm64"] -checksum = "sha256:1dc2979f3c83aade9a1b4344589d14fafa63459b759222528d11419f5cca9cc2" -url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.21.1/cargo-binstall-aarch64-unknown-linux-musl.tgz" -url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/489425352" +checksum = "sha256:b70ef4098ca891c042028cd1c9ce80128c7a35d4c5dc64d55f4ec5d963c45e69" +url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.28.0/cargo-binstall-aarch64-unknown-linux-gnu.tgz" +url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/776036072" provenance = "github-attestations" [tools.cargo-binstall."platforms.linux-arm64-musl"] -checksum = "sha256:1dc2979f3c83aade9a1b4344589d14fafa63459b759222528d11419f5cca9cc2" -url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.21.1/cargo-binstall-aarch64-unknown-linux-musl.tgz" -url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/489425352" +checksum = "sha256:a2fc44f58416eecd6091eb55b21bda968283fc7cae7712679cbb4f490c8a1489" +url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.28.0/cargo-binstall-aarch64-unknown-linux-musl.tgz" +url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/776036091" provenance = "github-attestations" [tools.cargo-binstall."platforms.linux-x64"] -checksum = "sha256:630c8f8803a686aa6779497f0f0fb51d49822fb5fc3c514d8ced33b34e338e6e" -url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.21.1/cargo-binstall-x86_64-unknown-linux-musl.tgz" -url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/489425174" +checksum = "sha256:6de9f8fef45a831a7a31e8829e8d73479a67cb6007964ac0b2aa651eebb1eefd" +url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.28.0/cargo-binstall-x86_64-unknown-linux-gnu.tgz" +url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/776036306" provenance = "github-attestations" [tools.cargo-binstall."platforms.linux-x64-baseline"] -checksum = "sha256:630c8f8803a686aa6779497f0f0fb51d49822fb5fc3c514d8ced33b34e338e6e" -url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.21.1/cargo-binstall-x86_64-unknown-linux-musl.tgz" -url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/489425174" +checksum = "sha256:6de9f8fef45a831a7a31e8829e8d73479a67cb6007964ac0b2aa651eebb1eefd" +url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.28.0/cargo-binstall-x86_64-unknown-linux-gnu.tgz" +url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/776036306" provenance = "github-attestations" [tools.cargo-binstall."platforms.linux-x64-musl"] -checksum = "sha256:630c8f8803a686aa6779497f0f0fb51d49822fb5fc3c514d8ced33b34e338e6e" -url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.21.1/cargo-binstall-x86_64-unknown-linux-musl.tgz" -url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/489425174" +checksum = "sha256:dad3d904258f50b0cc5ac34e6a6e8cefbada8bf65ab3da063faa1d6b534ad28a" +url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.28.0/cargo-binstall-x86_64-unknown-linux-musl.tgz" +url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/776036348" provenance = "github-attestations" [tools.cargo-binstall."platforms.linux-x64-musl-baseline"] -checksum = "sha256:630c8f8803a686aa6779497f0f0fb51d49822fb5fc3c514d8ced33b34e338e6e" -url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.21.1/cargo-binstall-x86_64-unknown-linux-musl.tgz" -url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/489425174" +checksum = "sha256:dad3d904258f50b0cc5ac34e6a6e8cefbada8bf65ab3da063faa1d6b534ad28a" +url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.28.0/cargo-binstall-x86_64-unknown-linux-musl.tgz" +url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/776036348" provenance = "github-attestations" [tools.cargo-binstall."platforms.macos-arm64"] -checksum = "sha256:bd03935f1a6d652647f6d42a2cd39396a55094ffddc65bed0debebfe32feea43" -url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.21.1/cargo-binstall-aarch64-apple-darwin.zip" -url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/489425460" +checksum = "sha256:e76299031c8240273cbb5d3244c133f6219f92b0d7704853759686c92345cda8" +url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.28.0/cargo-binstall-aarch64-apple-darwin.zip" +url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/776036009" provenance = "github-attestations" [tools.cargo-binstall."platforms.macos-x64"] -checksum = "sha256:73894951a5c5343476e703b9f2ccea9e829396147ee33bded6a5e94c09298d81" -url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.21.1/cargo-binstall-x86_64-apple-darwin.zip" -url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/489425224" +checksum = "sha256:d5bab1d79645dc1b92fb050c7fafef6b6fa37122c36ae7266e2054ebeec2be65" +url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.28.0/cargo-binstall-x86_64-apple-darwin.zip" +url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/776036232" provenance = "github-attestations" [tools.cargo-binstall."platforms.macos-x64-baseline"] -checksum = "sha256:73894951a5c5343476e703b9f2ccea9e829396147ee33bded6a5e94c09298d81" -url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.21.1/cargo-binstall-x86_64-apple-darwin.zip" -url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/489425224" +checksum = "sha256:d5bab1d79645dc1b92fb050c7fafef6b6fa37122c36ae7266e2054ebeec2be65" +url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.28.0/cargo-binstall-x86_64-apple-darwin.zip" +url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/776036232" provenance = "github-attestations" [tools.cargo-binstall."platforms.windows-x64"] -checksum = "sha256:27aee4e73cd8b1d479730cb9cdbd89b1114453a135689d4ee1a7e7f913f0ffe1" -url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.21.1/cargo-binstall-x86_64-pc-windows-msvc.zip" -url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/489425215" +checksum = "sha256:72b0b451ea85173c6b7d484913051dd53bfa2155f065fce8ee4494ff54d95aa4" +url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.28.0/cargo-binstall-x86_64-pc-windows-msvc.zip" +url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/776036265" provenance = "github-attestations" [tools.cargo-binstall."platforms.windows-x64-baseline"] -checksum = "sha256:27aee4e73cd8b1d479730cb9cdbd89b1114453a135689d4ee1a7e7f913f0ffe1" -url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.21.1/cargo-binstall-x86_64-pc-windows-msvc.zip" -url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/489425215" +checksum = "sha256:72b0b451ea85173c6b7d484913051dd53bfa2155f065fce8ee4494ff54d95aa4" +url = "https://github.com/cargo-bins/cargo-binstall/releases/download/v1.28.0/cargo-binstall-x86_64-pc-windows-msvc.zip" +url_api = "https://api.github.com/repos/cargo-bins/cargo-binstall/releases/assets/776036265" provenance = "github-attestations" [[tools.cargo-insta]] -version = "1.48.0" +version = "1.49.0" backend = "aqua:mitsuhiko/insta" +unsupported_platforms = [ + "linux-arm64", + "linux-arm64-musl", +] [tools.cargo-insta."platforms.linux-x64"] -checksum = "sha256:703aa7d151ae59cac0bf8e7c2c27da4aca8070f3cb178f624ae10621ef77f5f5" -url = "https://github.com/mitsuhiko/insta/releases/download/1.48.0/cargo-insta-x86_64-unknown-linux-musl.tar.xz" -url_api = "https://api.github.com/repos/mitsuhiko/insta/releases/assets/444757872" +checksum = "sha256:18879f4e7280c2eb87bb1037ddb9d48af697511fb0d8113edfc39ab8bade4d4e" +checksum_source = "mise-versions" +url = "https://github.com/mitsuhiko/insta/releases/download/1.49.0/cargo-insta-x86_64-unknown-linux-gnu.tar.xz" +url_api = "https://api.github.com/repos/mitsuhiko/insta/releases/assets/606860016" [tools.cargo-insta."platforms.linux-x64-baseline"] -checksum = "sha256:703aa7d151ae59cac0bf8e7c2c27da4aca8070f3cb178f624ae10621ef77f5f5" -url = "https://github.com/mitsuhiko/insta/releases/download/1.48.0/cargo-insta-x86_64-unknown-linux-musl.tar.xz" -url_api = "https://api.github.com/repos/mitsuhiko/insta/releases/assets/444757872" +checksum = "sha256:18879f4e7280c2eb87bb1037ddb9d48af697511fb0d8113edfc39ab8bade4d4e" +checksum_source = "mise-versions" +url = "https://github.com/mitsuhiko/insta/releases/download/1.49.0/cargo-insta-x86_64-unknown-linux-gnu.tar.xz" +url_api = "https://api.github.com/repos/mitsuhiko/insta/releases/assets/606860016" [tools.cargo-insta."platforms.linux-x64-musl"] -checksum = "sha256:703aa7d151ae59cac0bf8e7c2c27da4aca8070f3cb178f624ae10621ef77f5f5" -url = "https://github.com/mitsuhiko/insta/releases/download/1.48.0/cargo-insta-x86_64-unknown-linux-musl.tar.xz" -url_api = "https://api.github.com/repos/mitsuhiko/insta/releases/assets/444757872" +checksum = "sha256:cc64ead688107cdf2577101e26b6323795c9850456b9c62846bab30ff6db23d8" +checksum_source = "mise-versions" +url = "https://github.com/mitsuhiko/insta/releases/download/1.49.0/cargo-insta-x86_64-unknown-linux-musl.tar.xz" +url_api = "https://api.github.com/repos/mitsuhiko/insta/releases/assets/606860022" [tools.cargo-insta."platforms.linux-x64-musl-baseline"] -checksum = "sha256:703aa7d151ae59cac0bf8e7c2c27da4aca8070f3cb178f624ae10621ef77f5f5" -url = "https://github.com/mitsuhiko/insta/releases/download/1.48.0/cargo-insta-x86_64-unknown-linux-musl.tar.xz" -url_api = "https://api.github.com/repos/mitsuhiko/insta/releases/assets/444757872" +checksum = "sha256:cc64ead688107cdf2577101e26b6323795c9850456b9c62846bab30ff6db23d8" +checksum_source = "mise-versions" +url = "https://github.com/mitsuhiko/insta/releases/download/1.49.0/cargo-insta-x86_64-unknown-linux-musl.tar.xz" +url_api = "https://api.github.com/repos/mitsuhiko/insta/releases/assets/606860022" [tools.cargo-insta."platforms.macos-arm64"] -checksum = "sha256:26f081f5bf62d1dc03aae9c4137188d66a2debe6bcaf2884f2153fcb6eda27cb" -url = "https://github.com/mitsuhiko/insta/releases/download/1.48.0/cargo-insta-aarch64-apple-darwin.tar.xz" -url_api = "https://api.github.com/repos/mitsuhiko/insta/releases/assets/444757856" +checksum = "sha256:e596702d36313dbbc2f168ca9db447a9e259e666cd9cae9ab94eb712ca1d89e5" +checksum_source = "mise-versions" +url = "https://github.com/mitsuhiko/insta/releases/download/1.49.0/cargo-insta-aarch64-apple-darwin.tar.xz" +url_api = "https://api.github.com/repos/mitsuhiko/insta/releases/assets/606859971" [tools.cargo-insta."platforms.macos-x64"] -checksum = "sha256:e2d6d6fa4bcb30f7d4834f6254a6da7f2982a9e9a3882695aca5e83d64231267" -url = "https://github.com/mitsuhiko/insta/releases/download/1.48.0/cargo-insta-x86_64-apple-darwin.tar.xz" -url_api = "https://api.github.com/repos/mitsuhiko/insta/releases/assets/444757859" +checksum = "sha256:e47d3d529de4eaf85c074b718af38be49a04578ff07ef0aa5765f22688095273" +checksum_source = "mise-versions" +url = "https://github.com/mitsuhiko/insta/releases/download/1.49.0/cargo-insta-x86_64-apple-darwin.tar.xz" +url_api = "https://api.github.com/repos/mitsuhiko/insta/releases/assets/606859990" [tools.cargo-insta."platforms.macos-x64-baseline"] -checksum = "sha256:e2d6d6fa4bcb30f7d4834f6254a6da7f2982a9e9a3882695aca5e83d64231267" -url = "https://github.com/mitsuhiko/insta/releases/download/1.48.0/cargo-insta-x86_64-apple-darwin.tar.xz" -url_api = "https://api.github.com/repos/mitsuhiko/insta/releases/assets/444757859" +checksum = "sha256:e47d3d529de4eaf85c074b718af38be49a04578ff07ef0aa5765f22688095273" +checksum_source = "mise-versions" +url = "https://github.com/mitsuhiko/insta/releases/download/1.49.0/cargo-insta-x86_64-apple-darwin.tar.xz" +url_api = "https://api.github.com/repos/mitsuhiko/insta/releases/assets/606859990" [tools.cargo-insta."platforms.windows-x64"] -checksum = "sha256:7e23929588aaf5daff1e93bfc4addca7ccf55195444e84552b6588c9d864642e" -url = "https://github.com/mitsuhiko/insta/releases/download/1.48.0/cargo-insta-x86_64-pc-windows-msvc.zip" -url_api = "https://api.github.com/repos/mitsuhiko/insta/releases/assets/444757862" +checksum = "sha256:bf6374b054f596d75b5bb203010394a340cdb44d4150cd03560564fbc35d8156" +checksum_source = "mise-versions" +url = "https://github.com/mitsuhiko/insta/releases/download/1.49.0/cargo-insta-x86_64-pc-windows-msvc.zip" +url_api = "https://api.github.com/repos/mitsuhiko/insta/releases/assets/606859993" [tools.cargo-insta."platforms.windows-x64-baseline"] -checksum = "sha256:7e23929588aaf5daff1e93bfc4addca7ccf55195444e84552b6588c9d864642e" -url = "https://github.com/mitsuhiko/insta/releases/download/1.48.0/cargo-insta-x86_64-pc-windows-msvc.zip" -url_api = "https://api.github.com/repos/mitsuhiko/insta/releases/assets/444757862" +checksum = "sha256:bf6374b054f596d75b5bb203010394a340cdb44d4150cd03560564fbc35d8156" +checksum_source = "mise-versions" +url = "https://github.com/mitsuhiko/insta/releases/download/1.49.0/cargo-insta-x86_64-pc-windows-msvc.zip" +url_api = "https://api.github.com/repos/mitsuhiko/insta/releases/assets/606859993" [[tools."cargo:cargo-audit"]] -version = "0.22.2" +version = "0.23.0" backend = "cargo:cargo-audit" [[tools."cargo:cargo-auditable"]] -version = "0.7.5" +version = "0.7.8" backend = "cargo:cargo-auditable" [[tools."cargo:cargo-cyclonedx"]] -version = "0.5.9" +version = "0.5.10" backend = "cargo:cargo-cyclonedx" [[tools."cargo:cargo-deny"]] -version = "0.20.2" +version = "0.22.1" backend = "cargo:cargo-deny" [[tools."cargo:cargo-llvm-cov"]] -version = "0.8.7" +version = "0.9.2" backend = "cargo:cargo-llvm-cov" [[tools."cargo:cargo-nextest"]] -version = "0.9.143" +version = "0.9.152" backend = "cargo:cargo-nextest" [[tools."cargo:cargo-outdated"]] -version = "0.19.0" +version = "0.20.0" backend = "cargo:cargo-outdated" [[tools."cargo:cargo-release"]] -version = "1.1.5" +version = "1.1.7" backend = "cargo:cargo-release" [[tools."cargo:cargo-zigbuild"]] -version = "0.23.0" +version = "0.24.1" backend = "cargo:cargo-zigbuild" [[tools."cargo:mdbook"]] @@ -290,7 +351,7 @@ version = "3.0.0" backend = "cargo:mdbook-open-on-gh" [[tools."cargo:mdbook-tabs"]] -version = "1.0.4" +version = "1.0.6" backend = "cargo:mdbook-tabs" [[tools."cargo:mdbook-toc"]] @@ -298,133 +359,144 @@ version = "0.15.4" backend = "cargo:mdbook-toc" [[tools.goreleaser]] -version = "2.17.1" +version = "2.20.3" backend = "aqua:goreleaser/goreleaser" [tools.goreleaser."platforms.linux-arm64"] -checksum = "sha256:702f03769ac8bcb0e47839c82243cc614ae995633599a98c63062e13ea85f829" -url = "https://github.com/goreleaser/goreleaser/releases/download/v2.17.1/goreleaser_Linux_arm64.tar.gz" -url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/490565875" +checksum = "sha256:cfce0afc7bcc14447df211cc10c0012cfc395646070bcf23e840b16cbce6d204" +url = "https://github.com/goreleaser/goreleaser/releases/download/v2.20.3/goreleaser_Linux_arm64.tar.gz" +url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/770449451" provenance = "github-attestations" [tools.goreleaser."platforms.linux-arm64-musl"] -checksum = "sha256:702f03769ac8bcb0e47839c82243cc614ae995633599a98c63062e13ea85f829" -url = "https://github.com/goreleaser/goreleaser/releases/download/v2.17.1/goreleaser_Linux_arm64.tar.gz" -url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/490565875" +checksum = "sha256:cfce0afc7bcc14447df211cc10c0012cfc395646070bcf23e840b16cbce6d204" +url = "https://github.com/goreleaser/goreleaser/releases/download/v2.20.3/goreleaser_Linux_arm64.tar.gz" +url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/770449451" provenance = "github-attestations" [tools.goreleaser."platforms.linux-x64"] -checksum = "sha256:a99bbc7ae0d8d897b07c4c497a9b62f222558804715ef219d1af05a7e417bc80" -url = "https://github.com/goreleaser/goreleaser/releases/download/v2.17.1/goreleaser_Linux_x86_64.tar.gz" -url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/490565870" +checksum = "sha256:a36d5d7d07a5e538e052cef2a9f93f1cd4af493cf5a3712b9177c1ebe360f0e7" +url = "https://github.com/goreleaser/goreleaser/releases/download/v2.20.3/goreleaser_Linux_x86_64.tar.gz" +url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/770449622" provenance = "github-attestations" [tools.goreleaser."platforms.linux-x64-baseline"] -checksum = "sha256:a99bbc7ae0d8d897b07c4c497a9b62f222558804715ef219d1af05a7e417bc80" -url = "https://github.com/goreleaser/goreleaser/releases/download/v2.17.1/goreleaser_Linux_x86_64.tar.gz" -url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/490565870" +checksum = "sha256:a36d5d7d07a5e538e052cef2a9f93f1cd4af493cf5a3712b9177c1ebe360f0e7" +url = "https://github.com/goreleaser/goreleaser/releases/download/v2.20.3/goreleaser_Linux_x86_64.tar.gz" +url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/770449622" provenance = "github-attestations" [tools.goreleaser."platforms.linux-x64-musl"] -checksum = "sha256:a99bbc7ae0d8d897b07c4c497a9b62f222558804715ef219d1af05a7e417bc80" -url = "https://github.com/goreleaser/goreleaser/releases/download/v2.17.1/goreleaser_Linux_x86_64.tar.gz" -url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/490565870" +checksum = "sha256:a36d5d7d07a5e538e052cef2a9f93f1cd4af493cf5a3712b9177c1ebe360f0e7" +url = "https://github.com/goreleaser/goreleaser/releases/download/v2.20.3/goreleaser_Linux_x86_64.tar.gz" +url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/770449622" provenance = "github-attestations" [tools.goreleaser."platforms.linux-x64-musl-baseline"] -checksum = "sha256:a99bbc7ae0d8d897b07c4c497a9b62f222558804715ef219d1af05a7e417bc80" -url = "https://github.com/goreleaser/goreleaser/releases/download/v2.17.1/goreleaser_Linux_x86_64.tar.gz" -url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/490565870" +checksum = "sha256:a36d5d7d07a5e538e052cef2a9f93f1cd4af493cf5a3712b9177c1ebe360f0e7" +url = "https://github.com/goreleaser/goreleaser/releases/download/v2.20.3/goreleaser_Linux_x86_64.tar.gz" +url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/770449622" provenance = "github-attestations" [tools.goreleaser."platforms.macos-arm64"] -checksum = "sha256:f49d4fe67d283b5b5130c380c983087dca0a4d4ec15b6637b18fe1ab096780d8" -url = "https://github.com/goreleaser/goreleaser/releases/download/v2.17.1/goreleaser_Darwin_all.tar.gz" -url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/490565848" +checksum = "sha256:e2c896685fcdb3ec255ce30e86ab073d56f3c02eb539061e749e98d9be1fc2b6" +url = "https://github.com/goreleaser/goreleaser/releases/download/v2.20.3/goreleaser_Darwin_all.tar.gz" +url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/770449537" provenance = "github-attestations" [tools.goreleaser."platforms.macos-x64"] -checksum = "sha256:f49d4fe67d283b5b5130c380c983087dca0a4d4ec15b6637b18fe1ab096780d8" -url = "https://github.com/goreleaser/goreleaser/releases/download/v2.17.1/goreleaser_Darwin_all.tar.gz" -url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/490565848" +checksum = "sha256:e2c896685fcdb3ec255ce30e86ab073d56f3c02eb539061e749e98d9be1fc2b6" +url = "https://github.com/goreleaser/goreleaser/releases/download/v2.20.3/goreleaser_Darwin_all.tar.gz" +url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/770449537" provenance = "github-attestations" [tools.goreleaser."platforms.macos-x64-baseline"] -checksum = "sha256:f49d4fe67d283b5b5130c380c983087dca0a4d4ec15b6637b18fe1ab096780d8" -url = "https://github.com/goreleaser/goreleaser/releases/download/v2.17.1/goreleaser_Darwin_all.tar.gz" -url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/490565848" +checksum = "sha256:e2c896685fcdb3ec255ce30e86ab073d56f3c02eb539061e749e98d9be1fc2b6" +url = "https://github.com/goreleaser/goreleaser/releases/download/v2.20.3/goreleaser_Darwin_all.tar.gz" +url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/770449537" provenance = "github-attestations" [tools.goreleaser."platforms.windows-x64"] -checksum = "sha256:53314ce7cc16c3229f2d3b98a932c1618c427964eb2170a1efafbdfa862a556f" -url = "https://github.com/goreleaser/goreleaser/releases/download/v2.17.1/goreleaser_Windows_x86_64.zip" -url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/490565847" +checksum = "sha256:ef69177888fd7f4048a101f3cca8cc62a56b05b246201798fca5214304ba693d" +url = "https://github.com/goreleaser/goreleaser/releases/download/v2.20.3/goreleaser_Windows_x86_64.zip" +url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/770449693" provenance = "github-attestations" [tools.goreleaser."platforms.windows-x64-baseline"] -checksum = "sha256:53314ce7cc16c3229f2d3b98a932c1618c427964eb2170a1efafbdfa862a556f" -url = "https://github.com/goreleaser/goreleaser/releases/download/v2.17.1/goreleaser_Windows_x86_64.zip" -url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/490565847" +checksum = "sha256:ef69177888fd7f4048a101f3cca8cc62a56b05b246201798fca5214304ba693d" +url = "https://github.com/goreleaser/goreleaser/releases/download/v2.20.3/goreleaser_Windows_x86_64.zip" +url_api = "https://api.github.com/repos/goreleaser/goreleaser/releases/assets/770449693" provenance = "github-attestations" [[tools.just]] -version = "1.58.0" +version = "1.59.0" backend = "aqua:casey/just" [tools.just."platforms.linux-arm64"] -checksum = "sha256:748237128c4c40cbdabc65e841d05ceba13cc23a91eaba395495894c1d9764df" -url = "https://github.com/casey/just/releases/download/1.58.0/just-1.58.0-aarch64-unknown-linux-musl.tar.gz" -url_api = "https://api.github.com/repos/casey/just/releases/assets/500510099" +checksum = "sha256:23871b1702bfd550fb5f901778fd4290ecf2ee034a45a889fbe96d89b188086d" +checksum_source = "mise-versions" +url = "https://github.com/casey/just/releases/download/1.59.0/just-1.59.0-aarch64-unknown-linux-musl.tar.gz" +url_api = "https://api.github.com/repos/casey/just/releases/assets/642950086" [tools.just."platforms.linux-arm64-musl"] -checksum = "sha256:748237128c4c40cbdabc65e841d05ceba13cc23a91eaba395495894c1d9764df" -url = "https://github.com/casey/just/releases/download/1.58.0/just-1.58.0-aarch64-unknown-linux-musl.tar.gz" -url_api = "https://api.github.com/repos/casey/just/releases/assets/500510099" +checksum = "sha256:23871b1702bfd550fb5f901778fd4290ecf2ee034a45a889fbe96d89b188086d" +checksum_source = "mise-versions" +url = "https://github.com/casey/just/releases/download/1.59.0/just-1.59.0-aarch64-unknown-linux-musl.tar.gz" +url_api = "https://api.github.com/repos/casey/just/releases/assets/642950086" [tools.just."platforms.linux-x64"] -checksum = "sha256:4a5cc2f53e6f0f8c59092a6cc38291eb729d46a7dd95d3ae582008881b84931d" -url = "https://github.com/casey/just/releases/download/1.58.0/just-1.58.0-x86_64-unknown-linux-musl.tar.gz" -url_api = "https://api.github.com/repos/casey/just/releases/assets/500509978" +checksum = "sha256:409044617b6f06517c1035e55ca38c8c856ff8b650e41bc2aa1ef82d5903a23e" +checksum_source = "mise-versions" +url = "https://github.com/casey/just/releases/download/1.59.0/just-1.59.0-x86_64-unknown-linux-musl.tar.gz" +url_api = "https://api.github.com/repos/casey/just/releases/assets/642949555" [tools.just."platforms.linux-x64-baseline"] -checksum = "sha256:4a5cc2f53e6f0f8c59092a6cc38291eb729d46a7dd95d3ae582008881b84931d" -url = "https://github.com/casey/just/releases/download/1.58.0/just-1.58.0-x86_64-unknown-linux-musl.tar.gz" -url_api = "https://api.github.com/repos/casey/just/releases/assets/500509978" +checksum = "sha256:409044617b6f06517c1035e55ca38c8c856ff8b650e41bc2aa1ef82d5903a23e" +checksum_source = "mise-versions" +url = "https://github.com/casey/just/releases/download/1.59.0/just-1.59.0-x86_64-unknown-linux-musl.tar.gz" +url_api = "https://api.github.com/repos/casey/just/releases/assets/642949555" [tools.just."platforms.linux-x64-musl"] -checksum = "sha256:4a5cc2f53e6f0f8c59092a6cc38291eb729d46a7dd95d3ae582008881b84931d" -url = "https://github.com/casey/just/releases/download/1.58.0/just-1.58.0-x86_64-unknown-linux-musl.tar.gz" -url_api = "https://api.github.com/repos/casey/just/releases/assets/500509978" +checksum = "sha256:409044617b6f06517c1035e55ca38c8c856ff8b650e41bc2aa1ef82d5903a23e" +checksum_source = "mise-versions" +url = "https://github.com/casey/just/releases/download/1.59.0/just-1.59.0-x86_64-unknown-linux-musl.tar.gz" +url_api = "https://api.github.com/repos/casey/just/releases/assets/642949555" [tools.just."platforms.linux-x64-musl-baseline"] -checksum = "sha256:4a5cc2f53e6f0f8c59092a6cc38291eb729d46a7dd95d3ae582008881b84931d" -url = "https://github.com/casey/just/releases/download/1.58.0/just-1.58.0-x86_64-unknown-linux-musl.tar.gz" -url_api = "https://api.github.com/repos/casey/just/releases/assets/500509978" +checksum = "sha256:409044617b6f06517c1035e55ca38c8c856ff8b650e41bc2aa1ef82d5903a23e" +checksum_source = "mise-versions" +url = "https://github.com/casey/just/releases/download/1.59.0/just-1.59.0-x86_64-unknown-linux-musl.tar.gz" +url_api = "https://api.github.com/repos/casey/just/releases/assets/642949555" [tools.just."platforms.macos-arm64"] -checksum = "sha256:50ae3e996c974a0bf32ea7d10f495070df33f1b43e0616b2769e3d4821ed8f48" -url = "https://github.com/casey/just/releases/download/1.58.0/just-1.58.0-aarch64-apple-darwin.tar.gz" -url_api = "https://api.github.com/repos/casey/just/releases/assets/500509965" +checksum = "sha256:6574cea774ed4cae12e24b6aa11857de33e80dab4667cf628fd5840df96a2a9d" +checksum_source = "mise-versions" +url = "https://github.com/casey/just/releases/download/1.59.0/just-1.59.0-aarch64-apple-darwin.tar.gz" +url_api = "https://api.github.com/repos/casey/just/releases/assets/643129724" [tools.just."platforms.macos-x64"] -checksum = "sha256:9a09cfef66aaa79da58203970103a0684307716caaabd3e9844cacc4dc0f4023" -url = "https://github.com/casey/just/releases/download/1.58.0/just-1.58.0-x86_64-apple-darwin.tar.gz" -url_api = "https://api.github.com/repos/casey/just/releases/assets/500510084" +checksum = "sha256:036ead9df9bc31dbae9934ae3b4236ed124d0bafcffd33439460ae084d5c9cb7" +checksum_source = "mise-versions" +url = "https://github.com/casey/just/releases/download/1.59.0/just-1.59.0-x86_64-apple-darwin.tar.gz" +url_api = "https://api.github.com/repos/casey/just/releases/assets/643131819" [tools.just."platforms.macos-x64-baseline"] -checksum = "sha256:9a09cfef66aaa79da58203970103a0684307716caaabd3e9844cacc4dc0f4023" -url = "https://github.com/casey/just/releases/download/1.58.0/just-1.58.0-x86_64-apple-darwin.tar.gz" -url_api = "https://api.github.com/repos/casey/just/releases/assets/500510084" +checksum = "sha256:036ead9df9bc31dbae9934ae3b4236ed124d0bafcffd33439460ae084d5c9cb7" +checksum_source = "mise-versions" +url = "https://github.com/casey/just/releases/download/1.59.0/just-1.59.0-x86_64-apple-darwin.tar.gz" +url_api = "https://api.github.com/repos/casey/just/releases/assets/643131819" [tools.just."platforms.windows-x64"] -checksum = "sha256:759f16fb7aa17c5c8b9594b6d4a8c1a6630dfd042cf2b3ff84841454d3d188dc" -url = "https://github.com/casey/just/releases/download/1.58.0/just-1.58.0-x86_64-pc-windows-msvc.zip" -url_api = "https://api.github.com/repos/casey/just/releases/assets/500511374" +checksum = "sha256:9c5463e2d0974e31bee71346aa5cbf19167de1585a4abc1bae7b3b04604ea9c0" +checksum_source = "mise-versions" +url = "https://github.com/casey/just/releases/download/1.59.0/just-1.59.0-x86_64-pc-windows-msvc.zip" +url_api = "https://api.github.com/repos/casey/just/releases/assets/643131303" [tools.just."platforms.windows-x64-baseline"] -checksum = "sha256:759f16fb7aa17c5c8b9594b6d4a8c1a6630dfd042cf2b3ff84841454d3d188dc" -url = "https://github.com/casey/just/releases/download/1.58.0/just-1.58.0-x86_64-pc-windows-msvc.zip" -url_api = "https://api.github.com/repos/casey/just/releases/assets/500511374" +checksum = "sha256:9c5463e2d0974e31bee71346aa5cbf19167de1585a4abc1bae7b3b04604ea9c0" +checksum_source = "mise-versions" +url = "https://github.com/casey/just/releases/download/1.59.0/just-1.59.0-x86_64-pc-windows-msvc.zip" +url_api = "https://api.github.com/repos/casey/just/releases/assets/643131303" [[tools.lychee]] version = "0.24.2" @@ -486,7 +558,7 @@ url = "https://github.com/lycheeverse/lychee/releases/download/lychee-v0.24.2/ly url_api = "https://api.github.com/repos/lycheeverse/lychee/releases/assets/409959491" [[tools.markdownlint-cli2]] -version = "0.23.2" +version = "0.24.2" backend = "npm:markdownlint-cli2" [[tools."pipx:mdformat"]] @@ -497,312 +569,341 @@ backend = "pipx:mdformat" uvx_args = "--with mdformat-gfm --with mdformat-config --with mdformat-footnote --with mdformat-front-matters --with mdformat-simple-breaks --with mdformat-web --with mdformat-gfm-alerts --with mdformat-toc" [[tools."pipx:pre-commit"]] -version = "4.6.2" +version = "4.7.0" backend = "pipx:pre-commit" [[tools.prettier]] -version = "3.9.6" +version = "3.10.1" backend = "npm:prettier" [[tools.protobuf]] -version = "35.1" +version = "36.2" backend = "aqua:protocolbuffers/protobuf/protoc" [tools.protobuf."platforms.linux-arm64"] -checksum = "sha256:01bf9d08808c7f96678b63f4bd8efa559bb4f83d5a7a270d5edaf507f9d5d9cf" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-linux-aarch_64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060236" +checksum = "sha256:8b8f18bd2b30346efbc698dd5a73dd7c805f3ef8380f6dfc95c768f3f1852f6a" +checksum_source = "mise-versions" +url = "https://github.com/protocolbuffers/protobuf/releases/download/v36.2/protoc-36.2-linux-aarch_64.zip" +url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/570742403" [tools.protobuf."platforms.linux-arm64-musl"] -checksum = "sha256:01bf9d08808c7f96678b63f4bd8efa559bb4f83d5a7a270d5edaf507f9d5d9cf" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-linux-aarch_64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060236" +checksum = "sha256:8b8f18bd2b30346efbc698dd5a73dd7c805f3ef8380f6dfc95c768f3f1852f6a" +checksum_source = "mise-versions" +url = "https://github.com/protocolbuffers/protobuf/releases/download/v36.2/protoc-36.2-linux-aarch_64.zip" +url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/570742403" [tools.protobuf."platforms.linux-x64"] -checksum = "sha256:6930ebf62bd4ea607b98fff052596c6ee564b9835b4ce172c75a3f53ae9d91b7" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-linux-x86_64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060247" +checksum = "sha256:121f6c7afe1d4d0e3ea6aab9432038599250134cbf4474cb1167d2c7decd4278" +checksum_source = "mise-versions" +url = "https://github.com/protocolbuffers/protobuf/releases/download/v36.2/protoc-36.2-linux-x86_64.zip" +url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/570742434" [tools.protobuf."platforms.linux-x64-baseline"] -checksum = "sha256:6930ebf62bd4ea607b98fff052596c6ee564b9835b4ce172c75a3f53ae9d91b7" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-linux-x86_64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060247" +checksum = "sha256:121f6c7afe1d4d0e3ea6aab9432038599250134cbf4474cb1167d2c7decd4278" +checksum_source = "mise-versions" +url = "https://github.com/protocolbuffers/protobuf/releases/download/v36.2/protoc-36.2-linux-x86_64.zip" +url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/570742434" [tools.protobuf."platforms.linux-x64-musl"] -checksum = "sha256:6930ebf62bd4ea607b98fff052596c6ee564b9835b4ce172c75a3f53ae9d91b7" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-linux-x86_64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060247" +checksum = "sha256:121f6c7afe1d4d0e3ea6aab9432038599250134cbf4474cb1167d2c7decd4278" +checksum_source = "mise-versions" +url = "https://github.com/protocolbuffers/protobuf/releases/download/v36.2/protoc-36.2-linux-x86_64.zip" +url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/570742434" [tools.protobuf."platforms.linux-x64-musl-baseline"] -checksum = "sha256:6930ebf62bd4ea607b98fff052596c6ee564b9835b4ce172c75a3f53ae9d91b7" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-linux-x86_64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060247" +checksum = "sha256:121f6c7afe1d4d0e3ea6aab9432038599250134cbf4474cb1167d2c7decd4278" +checksum_source = "mise-versions" +url = "https://github.com/protocolbuffers/protobuf/releases/download/v36.2/protoc-36.2-linux-x86_64.zip" +url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/570742434" [tools.protobuf."platforms.macos-arm64"] -checksum = "sha256:193289af0470c6a1aada357d4fba0bbf8d78bfaac8b5e42ca30af2ef75583de2" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-osx-aarch_64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060249" +checksum = "sha256:9cd98a532c5c5e0c4161314de0225de27e4c8a323917b6ea7b1b714d3ae23466" +checksum_source = "mise-versions" +url = "https://github.com/protocolbuffers/protobuf/releases/download/v36.2/protoc-36.2-osx-aarch_64.zip" +url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/570742436" [tools.protobuf."platforms.macos-x64"] -checksum = "sha256:537d73604a344ded6fc94e98e07e529d4fe3e4a0b09e59905353950fafc2a1f7" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-osx-x86_64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060254" +checksum = "sha256:228cc7add4616cc14ca5e80dee83209d44449a7aee95a914ae748fa374efb078" +checksum_source = "mise-versions" +url = "https://github.com/protocolbuffers/protobuf/releases/download/v36.2/protoc-36.2-osx-x86_64.zip" +url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/570742448" [tools.protobuf."platforms.macos-x64-baseline"] -checksum = "sha256:537d73604a344ded6fc94e98e07e529d4fe3e4a0b09e59905353950fafc2a1f7" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-osx-x86_64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060254" +checksum = "sha256:228cc7add4616cc14ca5e80dee83209d44449a7aee95a914ae748fa374efb078" +checksum_source = "mise-versions" +url = "https://github.com/protocolbuffers/protobuf/releases/download/v36.2/protoc-36.2-osx-x86_64.zip" +url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/570742448" [tools.protobuf."platforms.windows-x64"] -checksum = "sha256:5d3ff218d7d91eea95f7569bcb5a98f3030f8996d44151279d9772edcff76082" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-win64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060259" +checksum = "sha256:f0c128dc0d8492eceece83bb459a4c0e316764b929ffbf1aa416357fd644edd3" +checksum_source = "mise-versions" +url = "https://github.com/protocolbuffers/protobuf/releases/download/v36.2/protoc-36.2-win64.zip" +url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/570742465" [tools.protobuf."platforms.windows-x64-baseline"] -checksum = "sha256:5d3ff218d7d91eea95f7569bcb5a98f3030f8996d44151279d9772edcff76082" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-win64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060259" +checksum = "sha256:f0c128dc0d8492eceece83bb459a4c0e316764b929ffbf1aa416357fd644edd3" +checksum_source = "mise-versions" +url = "https://github.com/protocolbuffers/protobuf/releases/download/v36.2/protoc-36.2-win64.zip" +url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/570742465" -[[tools.protoc]] -version = "35.1" -backend = "aqua:protocolbuffers/protobuf/protoc" +[[tools.python]] +version = "3.15.2" +backend = "core:python" -[tools.protoc."platforms.linux-arm64"] -checksum = "sha256:01bf9d08808c7f96678b63f4bd8efa559bb4f83d5a7a270d5edaf507f9d5d9cf" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-linux-aarch_64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060236" - -[tools.protoc."platforms.linux-arm64-musl"] -checksum = "sha256:01bf9d08808c7f96678b63f4bd8efa559bb4f83d5a7a270d5edaf507f9d5d9cf" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-linux-aarch_64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060236" - -[tools.protoc."platforms.linux-x64"] -checksum = "sha256:6930ebf62bd4ea607b98fff052596c6ee564b9835b4ce172c75a3f53ae9d91b7" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-linux-x86_64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060247" - -[tools.protoc."platforms.linux-x64-baseline"] -checksum = "sha256:6930ebf62bd4ea607b98fff052596c6ee564b9835b4ce172c75a3f53ae9d91b7" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-linux-x86_64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060247" - -[tools.protoc."platforms.linux-x64-musl"] -checksum = "sha256:6930ebf62bd4ea607b98fff052596c6ee564b9835b4ce172c75a3f53ae9d91b7" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-linux-x86_64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060247" - -[tools.protoc."platforms.linux-x64-musl-baseline"] -checksum = "sha256:6930ebf62bd4ea607b98fff052596c6ee564b9835b4ce172c75a3f53ae9d91b7" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-linux-x86_64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060247" - -[tools.protoc."platforms.macos-arm64"] -checksum = "sha256:193289af0470c6a1aada357d4fba0bbf8d78bfaac8b5e42ca30af2ef75583de2" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-osx-aarch_64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060249" - -[tools.protoc."platforms.macos-x64"] -checksum = "sha256:537d73604a344ded6fc94e98e07e529d4fe3e4a0b09e59905353950fafc2a1f7" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-osx-x86_64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060254" - -[tools.protoc."platforms.macos-x64-baseline"] -checksum = "sha256:537d73604a344ded6fc94e98e07e529d4fe3e4a0b09e59905353950fafc2a1f7" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-osx-x86_64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060254" - -[tools.protoc."platforms.windows-x64"] -checksum = "sha256:5d3ff218d7d91eea95f7569bcb5a98f3030f8996d44151279d9772edcff76082" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-win64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060259" - -[tools.protoc."platforms.windows-x64-baseline"] -checksum = "sha256:5d3ff218d7d91eea95f7569bcb5a98f3030f8996d44151279d9772edcff76082" -url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protoc-35.1-win64.zip" -url_api = "https://api.github.com/repos/protocolbuffers/protobuf/releases/assets/445060259" +[tools.python."platforms.linux-arm64"] +checksum = "sha256:dac9832fe240524c092015b99ed76fcef1a32a096d744fcb39eafa980d1a0ffa" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20261124/cpython-3.15.2+20261124-aarch64-unknown-linux-gnu-install_only_stripped.tar.gz" +provenance = "github-attestations" + +[tools.python."platforms.linux-arm64-musl"] +checksum = "sha256:64786e91bbd687c003c3e6b3dc4a616bc379164dd923f3b38745af650df1eca6" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20261124/cpython-3.15.2+20261124-aarch64-unknown-linux-musl-install_only_stripped.tar.gz" +provenance = "github-attestations" + +[tools.python."platforms.linux-x64"] +checksum = "sha256:d94bcba1ca1c63f591fa63109c3eeaacc76ee6796844ac7bdf2ae10715646f05" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20261124/cpython-3.15.2+20261124-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz" +provenance = "github-attestations" + +[tools.python."platforms.linux-x64-baseline"] +checksum = "sha256:d94bcba1ca1c63f591fa63109c3eeaacc76ee6796844ac7bdf2ae10715646f05" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20261124/cpython-3.15.2+20261124-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz" +provenance = "github-attestations" + +[tools.python."platforms.linux-x64-musl"] +checksum = "sha256:2f3a1407f26d14938b592de39195e0de78de501268beac14dbc8be3b14b9c6e4" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20261124/cpython-3.15.2+20261124-x86_64-unknown-linux-musl-install_only_stripped.tar.gz" +provenance = "github-attestations" + +[tools.python."platforms.linux-x64-musl-baseline"] +checksum = "sha256:2f3a1407f26d14938b592de39195e0de78de501268beac14dbc8be3b14b9c6e4" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20261124/cpython-3.15.2+20261124-x86_64-unknown-linux-musl-install_only_stripped.tar.gz" +provenance = "github-attestations" + +[tools.python."platforms.macos-arm64"] +checksum = "sha256:2cc8874f034f7a0deff879530020108ebe6d318f5e8c6689673a866ab5fb7fdc" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20261124/cpython-3.15.2+20261124-aarch64-apple-darwin-install_only_stripped.tar.gz" +provenance = "github-attestations" + +[tools.python."platforms.macos-x64"] +checksum = "sha256:f076837c5fb804e6f200841c3be3b2050633f7e19ea97934f81fd9727ada6b71" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20261124/cpython-3.15.2+20261124-x86_64-apple-darwin-install_only_stripped.tar.gz" +provenance = "github-attestations" + +[tools.python."platforms.macos-x64-baseline"] +checksum = "sha256:f076837c5fb804e6f200841c3be3b2050633f7e19ea97934f81fd9727ada6b71" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20261124/cpython-3.15.2+20261124-x86_64-apple-darwin-install_only_stripped.tar.gz" +provenance = "github-attestations" + +[tools.python."platforms.windows-x64"] +checksum = "sha256:547cdbb844edc425b235513fdf0267f64e8e59c8f484527bb7ef92d3aad91dd9" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20261124/cpython-3.15.2+20261124-x86_64-pc-windows-msvc-install_only_stripped.tar.gz" +provenance = "github-attestations" + +[tools.python."platforms.windows-x64-baseline"] +checksum = "sha256:547cdbb844edc425b235513fdf0267f64e8e59c8f484527bb7ef92d3aad91dd9" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20261124/cpython-3.15.2+20261124-x86_64-pc-windows-msvc-install_only_stripped.tar.gz" +provenance = "github-attestations" [[tools.python]] -version = "3.14.7" +version = "3.14.4" backend = "core:python" [tools.python."platforms.linux-arm64"] -checksum = "sha256:86dfb106b303fa6a1991f7da42ced3e11576f777be299b3162e06617b6d22542" -url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260814/cpython-3.14.7+20260814-aarch64-unknown-linux-gnu-install_only_stripped.tar.gz" +checksum = "sha256:b8b597fdb2f8dccdc502c11947b60a4b65eb6bce79cfa60c7ccf9b6e8352c60a" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260414/cpython-3.14.4+20260414-aarch64-unknown-linux-gnu-install_only_stripped.tar.gz" provenance = "github-attestations" [tools.python."platforms.linux-arm64-musl"] -checksum = "sha256:1bdbb1d5267120b5ba8531332be695693ba49567d28c40dd670545b6a25b70a7" -url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260814/cpython-3.14.7+20260814-aarch64-unknown-linux-musl-install_only_stripped.tar.gz" +checksum = "sha256:a10687b226e0941632569836bc1d8fa6353a8e3e8424316467ca9cdf220b983d" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260414/cpython-3.14.4+20260414-aarch64-unknown-linux-musl-install_only_stripped.tar.gz" provenance = "github-attestations" [tools.python."platforms.linux-x64"] -checksum = "sha256:cefba034445d2875408d1fd4d5700ae6731563aeb54dcb39fd8164ab5c457533" -url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260814/cpython-3.14.7+20260814-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz" +checksum = "sha256:fe9a9c32d13870af632cbac3dfc7528ae53597e94472aa4c7d6a42e8166136cd" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260414/cpython-3.14.4+20260414-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz" provenance = "github-attestations" [tools.python."platforms.linux-x64-baseline"] -checksum = "sha256:cefba034445d2875408d1fd4d5700ae6731563aeb54dcb39fd8164ab5c457533" -url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260814/cpython-3.14.7+20260814-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz" +checksum = "sha256:fe9a9c32d13870af632cbac3dfc7528ae53597e94472aa4c7d6a42e8166136cd" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260414/cpython-3.14.4+20260414-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz" provenance = "github-attestations" [tools.python."platforms.linux-x64-musl"] -checksum = "sha256:d92793e7c75f88e0ebfe3f6dc9a80b1571e287537938c536b07c60f9c23d6360" -url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260814/cpython-3.14.7+20260814-x86_64-unknown-linux-musl-install_only_stripped.tar.gz" +checksum = "sha256:d6005226cd24e780630626232c7a63243d4885fdf975dcf930a0758a0759ce14" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260414/cpython-3.14.4+20260414-x86_64-unknown-linux-musl-install_only_stripped.tar.gz" provenance = "github-attestations" [tools.python."platforms.linux-x64-musl-baseline"] -checksum = "sha256:d92793e7c75f88e0ebfe3f6dc9a80b1571e287537938c536b07c60f9c23d6360" -url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260814/cpython-3.14.7+20260814-x86_64-unknown-linux-musl-install_only_stripped.tar.gz" +checksum = "sha256:d6005226cd24e780630626232c7a63243d4885fdf975dcf930a0758a0759ce14" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260414/cpython-3.14.4+20260414-x86_64-unknown-linux-musl-install_only_stripped.tar.gz" provenance = "github-attestations" [tools.python."platforms.macos-arm64"] -checksum = "sha256:423717c485b9ee7822590b9d973c1b5fb2cda0fe43448ab82a3d44f823bd329c" -url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260814/cpython-3.14.7+20260814-aarch64-apple-darwin-install_only_stripped.tar.gz" +checksum = "sha256:6f304f4ec30854611f23316578302235fb517cd970519ecdd11a8c4db87fd843" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260414/cpython-3.14.4+20260414-aarch64-apple-darwin-install_only_stripped.tar.gz" provenance = "github-attestations" [tools.python."platforms.macos-x64"] -checksum = "sha256:e085b44e21d9c60acd866680747e1f82800cf9a1630a369da1723976d87bead1" -url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260814/cpython-3.14.7+20260814-x86_64-apple-darwin-install_only_stripped.tar.gz" +checksum = "sha256:d51250a32fa5d9f0799c7bcb71720c27b10a3afd4a7de288120f96085d508a5a" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260414/cpython-3.14.4+20260414-x86_64-apple-darwin-install_only_stripped.tar.gz" provenance = "github-attestations" [tools.python."platforms.macos-x64-baseline"] -checksum = "sha256:e085b44e21d9c60acd866680747e1f82800cf9a1630a369da1723976d87bead1" -url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260814/cpython-3.14.7+20260814-x86_64-apple-darwin-install_only_stripped.tar.gz" +checksum = "sha256:d51250a32fa5d9f0799c7bcb71720c27b10a3afd4a7de288120f96085d508a5a" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260414/cpython-3.14.4+20260414-x86_64-apple-darwin-install_only_stripped.tar.gz" provenance = "github-attestations" [tools.python."platforms.windows-x64"] -checksum = "sha256:649e1eebf754a5ca76ddfda8c498ff25c574599408b8a52b6a2c24265fd6314c" -url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260814/cpython-3.14.7+20260814-x86_64-pc-windows-msvc-install_only_stripped.tar.gz" +checksum = "sha256:a976991dcd085c1bb5d9a8084823a6bc8b7f9b079d8c432574a6ddd68c3a6fe1" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260414/cpython-3.14.4+20260414-x86_64-pc-windows-msvc-install_only_stripped.tar.gz" provenance = "github-attestations" [tools.python."platforms.windows-x64-baseline"] -checksum = "sha256:649e1eebf754a5ca76ddfda8c498ff25c574599408b8a52b6a2c24265fd6314c" -url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260814/cpython-3.14.7+20260814-x86_64-pc-windows-msvc-install_only_stripped.tar.gz" +checksum = "sha256:a976991dcd085c1bb5d9a8084823a6bc8b7f9b079d8c432574a6ddd68c3a6fe1" +url = "https://github.com/astral-sh/python-build-standalone/releases/download/20260414/cpython-3.14.4+20260414-x86_64-pc-windows-msvc-install_only_stripped.tar.gz" provenance = "github-attestations" [[tools.rust]] -version = "1.97.1" +version = "1.100.0" backend = "core:rust" [tools.rust.options] components = "cargo,clippy,llvm-tools,rustfmt" profile = "default" +[[tools.rust]] +version = "nightly-2026-11-25" +backend = "core:rust" + +[tools.rust.options] +components = "clippy,rustfmt" + [[tools.uv]] -version = "0.12.5" +version = "0.13.10" backend = "aqua:astral-sh/uv" [tools.uv."platforms.linux-arm64"] -checksum = "sha256:8767a0e77f2cd45436401b1b42bf7e9ed5a4a91a74a5305d6fe93249d0f6dbc5" -url = "https://github.com/astral-sh/uv/releases/download/0.12.5/uv-aarch64-unknown-linux-musl.tar.gz" -url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/514850993" +checksum = "sha256:14590f644805a6234ffe071154340669e38137f38e60aa9629690119704107d2" +url = "https://github.com/astral-sh/uv/releases/download/0.13.10/uv-aarch64-unknown-linux-gnu.tar.gz" +url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/788884668" provenance = "github-attestations" [tools.uv."platforms.linux-arm64-musl"] -checksum = "sha256:8767a0e77f2cd45436401b1b42bf7e9ed5a4a91a74a5305d6fe93249d0f6dbc5" -url = "https://github.com/astral-sh/uv/releases/download/0.12.5/uv-aarch64-unknown-linux-musl.tar.gz" -url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/514850993" +checksum = "sha256:68174084fe40b6300361c5b2038066120dc62c92920c22a0f31f6fc74b066b57" +url = "https://github.com/astral-sh/uv/releases/download/0.13.10/uv-aarch64-unknown-linux-musl.tar.gz" +url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/788884695" provenance = "github-attestations" [tools.uv."platforms.linux-x64"] -checksum = "sha256:a4742988791c9aeae68c78150d6cba762062ad2a47e53738c2779d2b596bfcdb" -url = "https://github.com/astral-sh/uv/releases/download/0.12.5/uv-x86_64-unknown-linux-musl.tar.gz" -url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/514851105" +checksum = "sha256:bf65ac1a0af10f92c522d91ac096c7c0a39657647b155577e7836c2cbbb4526c" +url = "https://github.com/astral-sh/uv/releases/download/0.13.10/uv-x86_64-unknown-linux-gnu.tar.gz" +url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/788885027" provenance = "github-attestations" [tools.uv."platforms.linux-x64-baseline"] -checksum = "sha256:a4742988791c9aeae68c78150d6cba762062ad2a47e53738c2779d2b596bfcdb" -url = "https://github.com/astral-sh/uv/releases/download/0.12.5/uv-x86_64-unknown-linux-musl.tar.gz" -url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/514851105" +checksum = "sha256:bf65ac1a0af10f92c522d91ac096c7c0a39657647b155577e7836c2cbbb4526c" +url = "https://github.com/astral-sh/uv/releases/download/0.13.10/uv-x86_64-unknown-linux-gnu.tar.gz" +url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/788885027" provenance = "github-attestations" [tools.uv."platforms.linux-x64-musl"] -checksum = "sha256:a4742988791c9aeae68c78150d6cba762062ad2a47e53738c2779d2b596bfcdb" -url = "https://github.com/astral-sh/uv/releases/download/0.12.5/uv-x86_64-unknown-linux-musl.tar.gz" -url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/514851105" +checksum = "sha256:5597970380083a340b7983af05a84824b4db1c62b7059c796935b7fd6dc95fd2" +url = "https://github.com/astral-sh/uv/releases/download/0.13.10/uv-x86_64-unknown-linux-musl.tar.gz" +url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/788885050" provenance = "github-attestations" [tools.uv."platforms.linux-x64-musl-baseline"] -checksum = "sha256:a4742988791c9aeae68c78150d6cba762062ad2a47e53738c2779d2b596bfcdb" -url = "https://github.com/astral-sh/uv/releases/download/0.12.5/uv-x86_64-unknown-linux-musl.tar.gz" -url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/514851105" +checksum = "sha256:5597970380083a340b7983af05a84824b4db1c62b7059c796935b7fd6dc95fd2" +url = "https://github.com/astral-sh/uv/releases/download/0.13.10/uv-x86_64-unknown-linux-musl.tar.gz" +url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/788885050" provenance = "github-attestations" [tools.uv."platforms.macos-arm64"] -checksum = "sha256:5bb0e5fe008a773c3dbcb97ff79cd89e1241464fe9d2f986d52ad8f1b037bd62" -url = "https://github.com/astral-sh/uv/releases/download/0.12.5/uv-aarch64-apple-darwin.tar.gz" -url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/514850968" +checksum = "sha256:e419bf07533bdbf48795fc793601c834dd79db57a8c49ce8e25cfe3a8639958d" +url = "https://github.com/astral-sh/uv/releases/download/0.13.10/uv-aarch64-apple-darwin.tar.gz" +url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/788884643" provenance = "github-attestations" [tools.uv."platforms.macos-x64"] -checksum = "sha256:b3b2137477cf96c9686ebfb71524614cec780c673fd73e59bce099aef02e70e8" -url = "https://github.com/astral-sh/uv/releases/download/0.12.5/uv-x86_64-apple-darwin.tar.gz" -url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/514851078" +checksum = "sha256:153e03197588204c04fc4c81cc4bafbfa4280222a385e4ee36a87aeec0ae63b4" +url = "https://github.com/astral-sh/uv/releases/download/0.13.10/uv-x86_64-apple-darwin.tar.gz" +url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/788884988" provenance = "github-attestations" [tools.uv."platforms.macos-x64-baseline"] -checksum = "sha256:b3b2137477cf96c9686ebfb71524614cec780c673fd73e59bce099aef02e70e8" -url = "https://github.com/astral-sh/uv/releases/download/0.12.5/uv-x86_64-apple-darwin.tar.gz" -url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/514851078" +checksum = "sha256:153e03197588204c04fc4c81cc4bafbfa4280222a385e4ee36a87aeec0ae63b4" +url = "https://github.com/astral-sh/uv/releases/download/0.13.10/uv-x86_64-apple-darwin.tar.gz" +url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/788884988" provenance = "github-attestations" [tools.uv."platforms.windows-x64"] -checksum = "sha256:4c4d49d8738847d9b71ba319e49a5688c93eac0fe6204b1df24e98528dddf39a" -url = "https://github.com/astral-sh/uv/releases/download/0.12.5/uv-x86_64-pc-windows-msvc.zip" -url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/514851084" +checksum = "sha256:297b3881fe1adfb922becc2c1613202abb41dc83ea5ff43d472aa087ca1f8683" +url = "https://github.com/astral-sh/uv/releases/download/0.13.10/uv-x86_64-pc-windows-msvc.zip" +url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/788885003" provenance = "github-attestations" [tools.uv."platforms.windows-x64-baseline"] -checksum = "sha256:4c4d49d8738847d9b71ba319e49a5688c93eac0fe6204b1df24e98528dddf39a" -url = "https://github.com/astral-sh/uv/releases/download/0.12.5/uv-x86_64-pc-windows-msvc.zip" -url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/514851084" +checksum = "sha256:297b3881fe1adfb922becc2c1613202abb41dc83ea5ff43d472aa087ca1f8683" +url = "https://github.com/astral-sh/uv/releases/download/0.13.10/uv-x86_64-pc-windows-msvc.zip" +url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/788885003" provenance = "github-attestations" [[tools.zig]] -version = "0.16.0" +version = "0.17.1" backend = "core:zig" [tools.zig."platforms.linux-arm64"] -checksum = "sha256:ea4b09bfb22ec6f6c6ceac57ab63efb6b46e17ab08d21f69f3a48b38e1534f17" -url = "https://ziglang.org/download/0.16.0/zig-aarch64-linux-0.16.0.tar.xz" +checksum = "sha256:a1546d5646eb184437918d6635ca6b762a0e889eac09cef720ee7a1ed3fe7795" +url = "https://ziglang.org/download/0.17.1/zig-aarch64-linux-0.17.1.tar.xz" +provenance = "minisign" [tools.zig."platforms.linux-arm64-musl"] -checksum = "sha256:ea4b09bfb22ec6f6c6ceac57ab63efb6b46e17ab08d21f69f3a48b38e1534f17" -url = "https://ziglang.org/download/0.16.0/zig-aarch64-linux-0.16.0.tar.xz" +checksum = "sha256:a1546d5646eb184437918d6635ca6b762a0e889eac09cef720ee7a1ed3fe7795" +url = "https://ziglang.org/download/0.17.1/zig-aarch64-linux-0.17.1.tar.xz" +provenance = "minisign" [tools.zig."platforms.linux-x64"] -checksum = "sha256:70e49664a74374b48b51e6f3fdfbf437f6395d42509050588bd49abe52ba3d00" -url = "https://ziglang.org/download/0.16.0/zig-x86_64-linux-0.16.0.tar.xz" +checksum = "sha256:3581863e3cbcfd0fce0efc682ce7e9e93da96668a977791d356a26d2a7e9b17a" +url = "https://ziglang.org/download/0.17.1/zig-x86_64-linux-0.17.1.tar.xz" +provenance = "minisign" [tools.zig."platforms.linux-x64-baseline"] -checksum = "sha256:70e49664a74374b48b51e6f3fdfbf437f6395d42509050588bd49abe52ba3d00" -url = "https://ziglang.org/download/0.16.0/zig-x86_64-linux-0.16.0.tar.xz" +checksum = "sha256:3581863e3cbcfd0fce0efc682ce7e9e93da96668a977791d356a26d2a7e9b17a" +url = "https://ziglang.org/download/0.17.1/zig-x86_64-linux-0.17.1.tar.xz" +provenance = "minisign" [tools.zig."platforms.linux-x64-musl"] -checksum = "sha256:70e49664a74374b48b51e6f3fdfbf437f6395d42509050588bd49abe52ba3d00" -url = "https://ziglang.org/download/0.16.0/zig-x86_64-linux-0.16.0.tar.xz" +checksum = "sha256:3581863e3cbcfd0fce0efc682ce7e9e93da96668a977791d356a26d2a7e9b17a" +url = "https://ziglang.org/download/0.17.1/zig-x86_64-linux-0.17.1.tar.xz" +provenance = "minisign" [tools.zig."platforms.linux-x64-musl-baseline"] -checksum = "sha256:70e49664a74374b48b51e6f3fdfbf437f6395d42509050588bd49abe52ba3d00" -url = "https://ziglang.org/download/0.16.0/zig-x86_64-linux-0.16.0.tar.xz" +checksum = "sha256:3581863e3cbcfd0fce0efc682ce7e9e93da96668a977791d356a26d2a7e9b17a" +url = "https://ziglang.org/download/0.17.1/zig-x86_64-linux-0.17.1.tar.xz" +provenance = "minisign" [tools.zig."platforms.macos-arm64"] -checksum = "sha256:b23d70deaa879b5c2d486ed3316f7eaa53e84acf6fc9cc747de152450d401489" -url = "https://ziglang.org/download/0.16.0/zig-aarch64-macos-0.16.0.tar.xz" +checksum = "sha256:75f1bc7a1e9852f17ec9a0c1895f767c4ec56d46bc8a834920eece1d0359dd8d" +url = "https://ziglang.org/download/0.17.1/zig-aarch64-macos-0.17.1.tar.xz" +provenance = "minisign" [tools.zig."platforms.macos-x64"] -checksum = "sha256:0387557ed1877bc6a2e1802c8391953baddba76081876301c522f52977b52ba7" -url = "https://ziglang.org/download/0.16.0/zig-x86_64-macos-0.16.0.tar.xz" +checksum = "sha256:9af07b20319fbd0c92ee46ad23e81d6a782b1aaea2cfb8dcbff35f1d2c7ddbb7" +url = "https://ziglang.org/download/0.17.1/zig-x86_64-macos-0.17.1.tar.xz" +provenance = "minisign" [tools.zig."platforms.macos-x64-baseline"] -checksum = "sha256:0387557ed1877bc6a2e1802c8391953baddba76081876301c522f52977b52ba7" -url = "https://ziglang.org/download/0.16.0/zig-x86_64-macos-0.16.0.tar.xz" +checksum = "sha256:9af07b20319fbd0c92ee46ad23e81d6a782b1aaea2cfb8dcbff35f1d2c7ddbb7" +url = "https://ziglang.org/download/0.17.1/zig-x86_64-macos-0.17.1.tar.xz" +provenance = "minisign" [tools.zig."platforms.windows-x64"] -checksum = "sha256:68659eb5f1e4eb1437a722f1dd889c5a322c9954607f5edcf337bc3684a75a7e" -url = "https://ziglang.org/download/0.16.0/zig-x86_64-windows-0.16.0.zip" +checksum = "sha256:b03f477a1943673e02aca0f570e8030dffd536ce1f45cbc4d3326ec31159562e" +url = "https://ziglang.org/download/0.17.1/zig-x86_64-windows-0.17.1.zip" +provenance = "minisign" [tools.zig."platforms.windows-x64-baseline"] -checksum = "sha256:68659eb5f1e4eb1437a722f1dd889c5a322c9954607f5edcf337bc3684a75a7e" -url = "https://ziglang.org/download/0.16.0/zig-x86_64-windows-0.16.0.zip" +checksum = "sha256:b03f477a1943673e02aca0f570e8030dffd536ce1f45cbc4d3326ec31159562e" +url = "https://ziglang.org/download/0.17.1/zig-x86_64-windows-0.17.1.zip" +provenance = "minisign" diff --git a/mise.toml b/mise.toml index ea9e108e..1d99b60e 100644 --- a/mise.toml +++ b/mise.toml @@ -1,39 +1,39 @@ # Several tools are set to "latest" to ensure they are using the idiomatic version file. [tools] -"cargo:cargo-zigbuild" = "0.23.0" -cargo-binstall = "1.21.1" -cargo-insta = "1.48.0" -"cargo:cargo-audit" = "latest" -"cargo:cargo-deny" = "0.20.2" -"cargo:cargo-llvm-cov" = "0.8.7" -"cargo:cargo-nextest" = "0.9.143" +"cargo:cargo-zigbuild" = "0.24.1" +cargo-binstall = "1.28.0" +cargo-insta = "1.49.0" +"cargo:cargo-audit" = "0.23.0" +"cargo:cargo-deny" = "0.22.1" +"cargo:cargo-llvm-cov" = "0.9.2" +"cargo:cargo-nextest" = "0.9.152" "cargo:mdbook" = "0.5.4" "cargo:mdbook-linkcheck" = "0.7.7" -"cargo:mdbook-tabs" = "1.0.4" +"cargo:mdbook-tabs" = "1.0.6" "cargo:mdbook-mermaid" = "0.17.1" "cargo:mdbook-toc" = "0.15.4" "cargo:mdbook-admonish" = "1.20.0" "cargo:mdbook-open-on-gh" = "3.0.0" "cargo:mdbook-i18n-helpers" = "0.4.0" -just = "1.58.0" -python = "3.14.7" -rust = { version = "1.97.1", components = "llvm-tools,cargo,rustfmt,clippy", profile = "default" } -"cargo:cargo-outdated" = "0.19.0" -"cargo:cargo-release" = "1.1.5" -"cargo:cargo-auditable" = "0.7.5" -"cargo:cargo-cyclonedx" = "0.5.9" +just = "1.59.0" +python = "3.15.2" +rust = { version = "1.100.0", components = "llvm-tools,cargo,rustfmt,clippy", profile = "default" } +"cargo:cargo-outdated" = "0.20.0" +"cargo:cargo-release" = "1.1.7" +"cargo:cargo-auditable" = "0.7.8" +"cargo:cargo-cyclonedx" = "0.5.10" "pipx:mdformat" = { version = "1.0.0", uvx_args = "--with mdformat-gfm --with mdformat-config --with mdformat-footnote --with mdformat-front-matters --with mdformat-simple-breaks --with mdformat-web --with mdformat-gfm-alerts --with mdformat-toc" } -prettier = "3.9.6" +prettier = "3.10.1" actionlint = "1.7.12" lychee = "0.24.2" -markdownlint-cli2 = "0.23.2" -protobuf = "35.1" -protoc = "35.1" -zig = "0.16.0" -bun = "1.3.14" -goreleaser = "2.17.1" -"pipx:pre-commit" = "4.6.2" -uv = "0.12.5" +markdownlint-cli2 = "0.24.2" +protobuf = "36.2" +protoc = "36.2" +zig = "0.17.1" +bun = "1.4.5" +goreleaser = "2.20.3" +"pipx:pre-commit" = "4.7.0" +uv = "0.13.10" # Many of these settings are defaults, but we are explicit in case they change in the future and to make it clear to users what is enabled. [settings] diff --git a/procmond/Cargo.toml b/procmond/Cargo.toml index f8bac20b..64985338 100644 --- a/procmond/Cargo.toml +++ b/procmond/Cargo.toml @@ -54,12 +54,6 @@ tracing = { workspace = true } tracing-subscriber = { workspace = true } uuid = { workspace = true } -[target.'cfg(target_os = "macos")'.dependencies] -# macOS Security Framework -security-framework = { workspace = true } -# Note: procfs removed as it's Linux-specific and not compatible with macOS -# Using sysinfo for cross-platform process information instead - [target.'cfg(target_os = "windows")'.dependencies] # Windows-specific dependencies using third-party crates # Enhanced sysinfo is already included in main dependencies @@ -79,9 +73,6 @@ uzers = { workspace = true } # Note: psutil-rs and perfmon-rs would be added here when available # For now, we use sysinfo + windows-rs for comprehensive Windows process monitoring -[build-dependencies] -prost-build = { workspace = true } - [dev-dependencies] assert_cmd = { workspace = true } criterion = { workspace = true, features = ["html_reports"] } diff --git a/procmond/src/lib.rs b/procmond/src/lib.rs index 06887e5c..06f79f86 100644 --- a/procmond/src/lib.rs +++ b/procmond/src/lib.rs @@ -893,7 +893,10 @@ mod tests { result.expect("Detection task should succeed for enumerate processes"); assert_eq!(detection_result.task_id, "test-task"); assert!(detection_result.success); - assert!(!detection_result.processes.is_empty()); + assert_ne!( + detection_result.processes, + Vec::::new() + ); } #[tokio::test] @@ -1189,7 +1192,10 @@ mod tests { let detection_result = result.expect("Process enumeration should succeed"); assert_eq!(detection_result.task_id, "test-task"); assert!(detection_result.success); - assert!(!detection_result.processes.is_empty()); + assert_ne!( + detection_result.processes, + Vec::::new() + ); } #[tokio::test] @@ -1364,7 +1370,7 @@ mod tests { assert_eq!(record.ppid, None); assert_eq!(record.name, "minimal"); assert_eq!(record.executable_path, None); - assert!(record.command_line.is_empty()); + assert_eq!(record.command_line, Vec::::new()); assert_eq!(record.start_time, None); assert_eq!(record.cpu_usage, None); assert_eq!(record.memory_usage, None); diff --git a/procmond/src/lifecycle.rs b/procmond/src/lifecycle.rs index b31d900f..aefabe3a 100644 --- a/procmond/src/lifecycle.rs +++ b/procmond/src/lifecycle.rs @@ -883,7 +883,10 @@ mod tests { ]; let events = tracker.update_and_detect_changes(processes).unwrap(); - assert!(events.is_empty()); + assert_eq!( + events, + Vec::::new() + ); assert_eq!(tracker.tracked_process_count(), 2); assert_eq!(tracker.stats().total_updates, 1); } @@ -896,7 +899,10 @@ mod tests { // First update let processes1 = vec![create_test_process_event(1, "process1")]; let events1 = tracker.update_and_detect_changes(processes1).unwrap(); - assert!(events1.is_empty()); + assert_eq!( + events1, + Vec::::new() + ); // Second update with new process let processes2 = vec![ @@ -932,7 +938,10 @@ mod tests { create_test_process_event(2, "process2"), ]; let events1 = tracker.update_and_detect_changes(processes1).unwrap(); - assert!(events1.is_empty()); + assert_eq!( + events1, + Vec::::new() + ); // Second update with one process removed let processes2 = vec![create_test_process_event(1, "process1")]; @@ -970,7 +979,10 @@ mod tests { // First update let processes1 = vec![create_test_process_event(1, "process1")]; let events1 = tracker.update_and_detect_changes(processes1).unwrap(); - assert!(events1.is_empty()); + assert_eq!( + events1, + Vec::::new() + ); // Second update with modified command line let mut modified_process = create_test_process_event(1, "process1"); @@ -1011,7 +1023,10 @@ mod tests { // First update let processes1 = vec![create_test_process_event(1, "process1")]; let events1 = tracker.update_and_detect_changes(processes1).unwrap(); - assert!(events1.is_empty()); + assert_eq!( + events1, + Vec::::new() + ); // Second update with same PID but different process let processes2 = vec![create_test_process_event(1, "different_process")]; diff --git a/procmond/src/process_collector.rs b/procmond/src/process_collector.rs index 7e469510..2c526fec 100644 --- a/procmond/src/process_collector.rs +++ b/procmond/src/process_collector.rs @@ -1272,7 +1272,7 @@ mod tests { let collector = create_process_collector(config); // Should create some valid collector - assert!(!collector.name().is_empty()); + assert_ne!(collector.name(), ""); let capabilities = collector.capabilities(); assert!(capabilities.basic_info); diff --git a/procmond/src/registration/mod.rs b/procmond/src/registration/mod.rs index 504554fd..69366491 100644 --- a/procmond/src/registration/mod.rs +++ b/procmond/src/registration/mod.rs @@ -230,7 +230,7 @@ impl RegistrationManager { "Attempting registration" ); - match self.send_registration_request(&request).await { + match self.send_registration_request(&request) { Ok(response) => { if response.accepted { // Registration successful @@ -307,8 +307,7 @@ impl RegistrationManager { /// 1. Publish to the registration topic /// 2. Wait for a response on a reply topic /// 3. Handle timeout and retry logic - #[allow(clippy::unused_async)] // Will be async when EventBusConnector supports RPC - async fn send_registration_request( + fn send_registration_request( &self, request: &RegistrationRequest, ) -> RegistrationResult { diff --git a/procmond/src/registration/tests.rs b/procmond/src/registration/tests.rs index 9bd749ab..fec12b6a 100644 --- a/procmond/src/registration/tests.rs +++ b/procmond/src/registration/tests.rs @@ -24,7 +24,7 @@ async fn test_registration_config_default() { let config = RegistrationConfig::default(); assert_eq!(config.collector_id, "procmond"); assert_eq!(config.collector_type, "process-monitor"); - assert!(!config.capabilities.is_empty()); + assert_ne!(config.capabilities, Vec::::new()); assert_eq!( config.heartbeat_interval, Duration::from_secs(DEFAULT_HEARTBEAT_INTERVAL_SECS) @@ -89,8 +89,8 @@ async fn test_build_registration_request() { assert_eq!(request.collector_id, "procmond"); assert_eq!(request.collector_type, "process-monitor"); assert!(request.pid.is_some()); - assert!(!request.capabilities.is_empty()); - assert!(!request.hostname.is_empty()); + assert_ne!(request.capabilities, Vec::::new()); + assert_ne!(request.hostname, ""); } #[tokio::test] @@ -146,7 +146,7 @@ async fn test_heartbeat_message_serialization() { // Should serialize without error let payload = postcard::to_allocvec(&heartbeat).expect("Serialization should succeed"); - assert!(!payload.is_empty()); + assert_ne!(payload, Vec::::new()); // Should deserialize back let deserialized: HeartbeatMessage = @@ -302,7 +302,7 @@ async fn test_register_successful() { let response = result.unwrap(); assert!(response.accepted); assert_eq!(response.collector_id, "procmond"); - assert!(!response.assigned_topics.is_empty()); + assert_ne!(response.assigned_topics, Vec::::new()); // State should be Registered assert_eq!(manager.state().await, RegistrationState::Registered); diff --git a/procmond/src/security.rs b/procmond/src/security.rs index 949a88d8..5783c5be 100644 --- a/procmond/src/security.rs +++ b/procmond/src/security.rs @@ -630,7 +630,7 @@ mod tests { fn test_detect_privileges_is_infallible() { // Should never panic regardless of platform let ctx = detect_privileges(); - assert!(!format!("{}", ctx.platform).is_empty()); + assert_ne!(format!("{}", ctx.platform), ""); } #[test] @@ -638,7 +638,7 @@ mod tests { let ctx = SecurityContext::degraded(Platform::Linux); assert!(ctx.degraded_mode); assert!(!ctx.has_full_process_access); - assert!(ctx.capabilities.is_empty()); + assert_eq!(ctx.capabilities, Vec::::new()); } #[test] diff --git a/procmond/tests/conformance_vectors.rs b/procmond/tests/conformance_vectors.rs index 0c103548..c4f979ab 100644 --- a/procmond/tests/conformance_vectors.rs +++ b/procmond/tests/conformance_vectors.rs @@ -56,7 +56,10 @@ fn the_registration_descriptor_carries_the_results() { // Assert assert_eq!(descriptor.collector_id, COLLECTOR_ID); - assert!(!descriptor.conformance_results.is_empty()); + assert_ne!( + descriptor.conformance_results, + Vec::::new() + ); assert!( descriptor .conformance_results diff --git a/procmond/tests/lifecycle_integration_tests.rs b/procmond/tests/lifecycle_integration_tests.rs index b52fb654..d1a8ef8f 100644 --- a/procmond/tests/lifecycle_integration_tests.rs +++ b/procmond/tests/lifecycle_integration_tests.rs @@ -154,7 +154,7 @@ fn test_process_modification_detection_integration() { let events = tracker .update_and_detect_changes(initial_processes) .unwrap(); - assert!(events.is_empty()); + assert_eq!(events, Vec::::new()); // Process with modified command line let modified_processes = vec![create_test_process_event( @@ -217,7 +217,7 @@ fn test_suspicious_behavior_detection_integration() { let events = tracker .update_and_detect_changes(initial_processes) .unwrap(); - assert!(events.is_empty()); + assert_eq!(events, Vec::::new()); // Same PID but completely different process (potential PID reuse) let suspicious_processes = vec![create_test_process_event( diff --git a/procmond/tests/lifecycle_tracking_tests.rs b/procmond/tests/lifecycle_tracking_tests.rs index f12f3312..2880a965 100644 --- a/procmond/tests/lifecycle_tracking_tests.rs +++ b/procmond/tests/lifecycle_tracking_tests.rs @@ -407,7 +407,7 @@ fn test_stop_detection_process_terminates() { let events = tracker .update_and_detect_changes(initial_processes) .expect("First update should succeed"); - assert!(events.is_empty()); + assert_eq!(events, Vec::::new()); assert_eq!(tracker.tracked_process_count(), 3); // Second cycle: vim process terminated @@ -1249,7 +1249,7 @@ fn test_lifecycle_handles_empty_lists() { // Start with empty let events1 = tracker.update_and_detect_changes(vec![]).unwrap(); - assert!(events1.is_empty()); + assert_eq!(events1, Vec::::new()); assert_eq!(tracker.tracked_process_count(), 0); // Add some processes @@ -1339,7 +1339,7 @@ fn test_lifecycle_high_volume_processes() { .unwrap(); let duration1 = start.elapsed(); - assert!(events1.is_empty()); + assert_eq!(events1, Vec::::new()); assert_eq!(tracker.tracked_process_count(), 1000); println!("First cycle (1000 processes): {duration1:?}"); diff --git a/procmond/tests/macos_enhanced_integration_tests.rs b/procmond/tests/macos_enhanced_integration_tests.rs index d948724a..8b2190fb 100644 --- a/procmond/tests/macos_enhanced_integration_tests.rs +++ b/procmond/tests/macos_enhanced_integration_tests.rs @@ -203,7 +203,7 @@ mod macos_enhanced_tests { let event = result.unwrap(); assert_eq!(event.pid, current_pid); - assert!(!event.name.is_empty()); + assert_ne!(event.name, ""); assert!(event.accessible); println!( diff --git a/procmond/tests/macos_integration_tests.rs b/procmond/tests/macos_integration_tests.rs index 841d03a1..fbc091bf 100644 --- a/procmond/tests/macos_integration_tests.rs +++ b/procmond/tests/macos_integration_tests.rs @@ -201,7 +201,7 @@ mod macos_tests { let event = result.unwrap(); assert_eq!(event.pid, current_pid); - assert!(!event.name.is_empty()); + assert_ne!(event.name, ""); assert!(event.accessible); println!( diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 70bd6121..aa7011c4 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "stable" +channel = "nightly" components = [ "rustfmt", "clippy" ] From 358df5ac680a793eb8b2f827e0037498c9ae0a1a Mon Sep 17 00:00:00 2001 From: UncleSp1d3r Date: Sat, 28 Nov 2026 21:11:33 -0500 Subject: [PATCH 2/7] docs(security): Record the accepted chrono advisory and tidy review nits - List RUSTSEC-2026-0543 under Accepted Risks in SECURITY.md with its rationale and removal condition, and correct the statements that no advisory is allow-listed - Point the deny.toml comment at where accepted advisories are recorded - Drop the orphaned platform header in Cargo.toml and a comment that duplicated its doc comment in binary_hasher.rs Signed-off-by: UncleSp1d3r --- Cargo.toml | 2 -- SECURITY.md | 10 +++++++--- collector-core/src/binary_hasher.rs | 1 - deny.toml | 6 ++---- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9f66697c..a2d0159b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -167,8 +167,6 @@ rustls = { version = "=0.23.46", default-features = false, features = [ # See AGENTS.md "Dependency Security". rustls-platform-verifier = "=0.7.1" -# Platform-specific dependencies -# macOS # Exact-pinned: zeroizing wrapper for sink credentials resolved from environment # variables. See AGENTS.md "Dependency Security". secrecy = "=0.10.3" diff --git a/SECURITY.md b/SECURITY.md index 4cbf76a8..d224ab9a 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -94,7 +94,7 @@ If we decline, we will explain why and point you to a more appropriate reporting ### For Developers - Security-relevant changes get reviewed before merge. -- CI runs `cargo audit` and `cargo deny check` on every commit, with no allow-listed advisories. New advisories fail the build. +- CI runs `cargo audit` and `cargo deny check` on every commit. New advisories fail the build; the only allow-listed ones are those under "Accepted Risks" below. - Security-critical components (input parsers, IPC framing, SQL validation) are covered by unit tests; fuzzing of these components is planned. ## Security Advisories @@ -111,7 +111,11 @@ We work under coordinated disclosure: report privately first, give us reasonable ## Accepted Risks (Dependencies) -We have no outstanding accepted risks. +| Advisory | Crate | Why it is accepted | Removal condition | +| ----------------- | -------- | ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| RUSTSEC-2026-0543 | `chrono` | Unmaintained notice with no patched release. Arrow and DataFusion require `chrono`, so it cannot be dropped yet. | `chrono` is maintained again, or Arrow drops it and the workspace moves off it. | + +The ignore entry lives in `deny.toml`. `cargo audit` reports this notice as a warning and needs no entry in `audit.toml`. ### Advisory Resolution History @@ -121,7 +125,7 @@ We have no outstanding accepted risks. ### Operational Controls -- CI enforces `cargo audit` and `cargo deny check` with no allow-listed advisories. +- CI enforces `cargo audit` and `cargo deny check`; the only allow-listed advisories are those under "Accepted Risks" above. - New vulnerabilities or unsound advisories fail CI; we do not silently ignore them. - If we ever need to accept a risk, the rationale, scope, and removal plan get tracked in a public issue. diff --git a/collector-core/src/binary_hasher.rs b/collector-core/src/binary_hasher.rs index 4ad100f7..d43519e3 100644 --- a/collector-core/src/binary_hasher.rs +++ b/collector-core/src/binary_hasher.rs @@ -700,7 +700,6 @@ impl BinaryHasherCollector { /// Health is good if at least one opened root is accessible. fn check_roots(&self) -> Result<(), TriggerHandleError> { - // Health is good if at least one opened root is accessible. // Use the cap-std `Dir` handle's `dir_metadata()` for consistency // with the TOCTOU-safe model — we stat the exact inode opened at // construction time, not whatever the display path resolves to now. diff --git a/deny.toml b/deny.toml index 63a49a63..8857ac69 100644 --- a/deny.toml +++ b/deny.toml @@ -86,10 +86,8 @@ yanked = "deny" # Allow unmaintained crates from workspace but with explicit exceptions unmaintained = "workspace" -# Advisory handling is managed via audit.toml -# cargo-deny relies on cargo-audit for advisory detection - -# Ignored advisories need a reason naming what would let the entry be removed. +# Accepted advisories are listed here and in SECURITY.md ("Accepted Risks"). +# Each needs a reason naming what would let the entry be removed. ignore = [ { id = "RUSTSEC-2026-0543", reason = "chrono is unmaintained with no patched release, and arrow/datafusion require it; remove once chrono is maintained again or arrow drops it and the workspace migrates to jiff/time" }, ] From c3c8dba240f9bf4541cae066e8877937b83b1a22 Mon Sep 17 00:00:00 2001 From: UncleSp1d3r Date: Sat, 28 Nov 2026 21:42:45 -0500 Subject: [PATCH 3/7] build(toolchain): Drop the duplicate protoc tool entry protobuf and protoc are two registry names for the same mise tool. The lockfile records the pair under protobuf only, so a locked install rejected protoc@36.2 as missing from the lockfile and failed the CI quality and docs build jobs. The protobuf entry installs the same binary. Signed-off-by: UncleSp1d3r --- mise.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/mise.toml b/mise.toml index 1d99b60e..f27bb55b 100644 --- a/mise.toml +++ b/mise.toml @@ -28,7 +28,6 @@ actionlint = "1.7.12" lychee = "0.24.2" markdownlint-cli2 = "0.24.2" protobuf = "36.2" -protoc = "36.2" zig = "0.17.1" bun = "1.4.5" goreleaser = "2.20.3" From fdd9c67966c7b8280b1539cc097b368a14f59096 Mon Sep 17 00:00:00 2001 From: UncleSp1d3r Date: Sat, 28 Nov 2026 21:57:31 -0500 Subject: [PATCH 4/7] fix(eventbus): Restore run-on-first-poll for public async functions Address PR review feedback (#391). - Public functions with side effects that the lint cleanup had turned into ready futures are plain async fns again, so a future that is dropped, or built outside a runtime, has no effect. Covers HealthMonitor::start_monitoring, initialize_local_eventbus, the trigger manager timeout methods, and the TransportServer and TaskDistributor methods that bind, spawn or mutate state - Each carries a targeted allow for unused_async and unused_async_trait_impl with its reason - Add regression tests for start_monitoring and handle_trigger_timeouts - SECURITY.md: say which advisory kinds fail the build, and link the tracking issue from the accepted chrono risk Signed-off-by: UncleSp1d3r --- SECURITY.md | 4 +- collector-core/src/collector.rs | 5 ++- collector-core/src/health_monitor.rs | 14 ++++-- collector-core/src/trigger/manager.rs | 49 +++++++++++++-------- daemoneye-eventbus/src/task_distribution.rs | 5 ++- daemoneye-eventbus/src/transport.rs | 36 +++++++-------- 6 files changed, 68 insertions(+), 45 deletions(-) diff --git a/SECURITY.md b/SECURITY.md index d224ab9a..650066cb 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -94,7 +94,7 @@ If we decline, we will explain why and point you to a more appropriate reporting ### For Developers - Security-relevant changes get reviewed before merge. -- CI runs `cargo audit` and `cargo deny check` on every commit. New advisories fail the build; the only allow-listed ones are those under "Accepted Risks" below. +- CI runs `cargo audit` and `cargo deny check` on every commit. A new vulnerability advisory fails the build, and so does an unmaintained or unsound advisory against a direct workspace dependency; the same two kinds against a transitive dependency produce warnings. The only allow-listed advisories are those under "Accepted Risks" below. - Security-critical components (input parsers, IPC framing, SQL validation) are covered by unit tests; fuzzing of these components is planned. ## Security Advisories @@ -115,7 +115,7 @@ We work under coordinated disclosure: report privately first, give us reasonable | ----------------- | -------- | ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | RUSTSEC-2026-0543 | `chrono` | Unmaintained notice with no patched release. Arrow and DataFusion require `chrono`, so it cannot be dropped yet. | `chrono` is maintained again, or Arrow drops it and the workspace moves off it. | -The ignore entry lives in `deny.toml`. `cargo audit` reports this notice as a warning and needs no entry in `audit.toml`. +Tracked in [#375](https://github.com/EvilBit-Labs/DaemonEye/issues/375). The ignore entry lives in `deny.toml`. `cargo audit` reports this notice as a warning and needs no entry in `audit.toml`. ### Advisory Resolution History diff --git a/collector-core/src/collector.rs b/collector-core/src/collector.rs index 382b4bb1..a7299a71 100644 --- a/collector-core/src/collector.rs +++ b/collector-core/src/collector.rs @@ -1723,7 +1723,8 @@ impl CollectorRuntime { /// /// This method creates and configures a `LocalEventBus` instance /// for in-process event distribution using plain `tokio` channels. - pub fn initialize_local_eventbus(&mut self) -> impl Future> { + #[allow(clippy::unused_async, clippy::unused_async_trait_impl)] // Runs on first poll: a dropped or runtime-less future must have no effect. + pub async fn initialize_local_eventbus(&mut self) -> Result<()> { info!("Initializing LocalEventBus for collector runtime"); let event_bus_config = EventBusConfig { @@ -1736,7 +1737,7 @@ impl CollectorRuntime { self.event_bus = Some(Arc::new(local_event_bus)); info!("LocalEventBus initialized successfully"); - std::future::ready(Ok(())) + Ok(()) } /// Get `EventBus` statistics if available. diff --git a/collector-core/src/health_monitor.rs b/collector-core/src/health_monitor.rs index 7983f465..bf96b078 100644 --- a/collector-core/src/health_monitor.rs +++ b/collector-core/src/health_monitor.rs @@ -135,13 +135,14 @@ impl HealthMonitor { } /// Start periodic aggregation and optional publishing. - pub fn start_monitoring(&self) -> impl Future> { + #[allow(clippy::unused_async, clippy::unused_async_trait_impl)] // Runs on first poll: a dropped or runtime-less future must have no effect. + pub async fn start_monitoring(&self) -> JoinHandle<()> { let collector_id = self.collector_id.clone(); let components = Arc::clone(&self.components); let overall_status = Arc::clone(&self.overall_status); let interval_duration = self.health_check_interval; - std::future::ready(tokio::spawn(async move { + tokio::spawn(async move { let mut ticker = interval(interval_duration); // Avoid accumulating ticks if the task is delayed ticker.set_missed_tick_behavior(MissedTickBehavior::Delay); @@ -167,7 +168,7 @@ impl HealthMonitor { // Lightweight diagnostic tracing::trace!(collector_id = %collector_id, status = ?agg, "Aggregated collector health"); } - })) + }) } } @@ -232,4 +233,11 @@ mod tests { HealthStatus::Unhealthy ); } + + #[test] + fn start_monitoring_does_not_spawn_until_polled() { + let monitor = HealthMonitor::new("c".to_owned(), Duration::from_millis(10)); + // No runtime on this thread: an eager `tokio::spawn` would panic here. + drop(monitor.start_monitoring()); + } } diff --git a/collector-core/src/trigger/manager.rs b/collector-core/src/trigger/manager.rs index b95f1797..9a3181f2 100644 --- a/collector-core/src/trigger/manager.rs +++ b/collector-core/src/trigger/manager.rs @@ -927,11 +927,12 @@ impl TriggerManager { /// This method adds the trigger to the timeout tracker, allowing the system /// to detect and handle triggers that don't receive responses within the /// configured timeout period. - pub fn track_trigger_timeout( + #[allow(clippy::unused_async, clippy::unused_async_trait_impl)] // Runs on first poll: a dropped or runtime-less future must have no effect. + pub async fn track_trigger_timeout( &self, trigger: &TriggerRequest, - ) -> impl Future> { - std::future::ready(self.record_trigger_timeout(trigger)) + ) -> Result<(), TriggerError> { + self.record_trigger_timeout(trigger) } fn record_trigger_timeout(&self, trigger: &TriggerRequest) -> Result<(), TriggerError> { @@ -961,13 +962,8 @@ impl TriggerManager { /// /// This method should be called periodically to clean up triggers that have /// exceeded their timeout period and update statistics accordingly. - pub fn handle_trigger_timeouts( - &self, - ) -> impl Future, TriggerError>> { - std::future::ready(self.expire_trigger_timeouts()) - } - - fn expire_trigger_timeouts(&self) -> Result, TriggerError> { + #[allow(clippy::unused_async, clippy::unused_async_trait_impl)] // Runs on first poll: a dropped or runtime-less future must have no effect. + pub async fn handle_trigger_timeouts(&self) -> Result, TriggerError> { let mut timed_out_triggers = Vec::new(); let now = SystemTime::now(); @@ -1016,14 +1012,8 @@ impl TriggerManager { /// /// This method should be called when a trigger request receives a response /// from the analysis collector to clean up tracking state. - pub fn complete_trigger_request( - &self, - trigger_id: &str, - ) -> impl Future> { - std::future::ready(self.clear_trigger_timeout(trigger_id)) - } - - fn clear_trigger_timeout(&self, trigger_id: &str) -> Result<(), TriggerError> { + #[allow(clippy::unused_async, clippy::unused_async_trait_impl)] // Runs on first poll: a dropped or runtime-less future must have no effect. + pub async fn complete_trigger_request(&self, trigger_id: &str) -> Result<(), TriggerError> { let mut tracker = lock_or_err!(self.timeout_tracker, "timeout_tracker")?; if tracker.remove(trigger_id).is_some() { @@ -1923,6 +1913,29 @@ mod tests { assert!(!tracker.contains_key(&trigger_id)); } + #[tokio::test] + async fn dropped_handle_trigger_timeouts_future_keeps_expired_triggers() { + let manager = TriggerManager::new(TriggerConfig::default()); + let trigger_id = "expired".to_owned(); + { + let mut tracker = manager.timeout_tracker.lock().unwrap(); + tracker.insert( + trigger_id.clone(), + TriggerTimeout { + target_collector: "c".to_owned(), + emitted_at: SystemTime::now() - Duration::from_mins(1), + timeout_duration: Duration::from_secs(30), + correlation_id: "corr".to_owned(), + }, + ); + } + + drop(manager.handle_trigger_timeouts()); + + let timed_out = manager.handle_trigger_timeouts().await.unwrap(); + assert_eq!(timed_out, vec![trigger_id]); + } + #[tokio::test] async fn test_emission_statistics_tracking() { let config = TriggerConfig::default(); diff --git a/daemoneye-eventbus/src/task_distribution.rs b/daemoneye-eventbus/src/task_distribution.rs index 8a153977..df6ba09d 100644 --- a/daemoneye-eventbus/src/task_distribution.rs +++ b/daemoneye-eventbus/src/task_distribution.rs @@ -771,7 +771,8 @@ impl TaskDistributor { } /// Start background tasks for queue processing and health checks - pub fn start_background_tasks(&self) -> impl Future> { + #[allow(clippy::unused_async, clippy::unused_async_trait_impl)] // Runs on first poll: a dropped or runtime-less future must have no effect. + pub async fn start_background_tasks(&self) -> Result<()> { // Queue processing task let queue_distributor = self.clone_for_background(); tokio::spawn(async move { @@ -797,7 +798,7 @@ impl TaskDistributor { }); info!("Started background tasks for task distribution"); - std::future::ready(Ok(())) + Ok(()) } /// Helper to clone for background tasks diff --git a/daemoneye-eventbus/src/transport.rs b/daemoneye-eventbus/src/transport.rs index 1bb59a3e..ad48cabf 100644 --- a/daemoneye-eventbus/src/transport.rs +++ b/daemoneye-eventbus/src/transport.rs @@ -163,12 +163,8 @@ pub struct TransportServer { impl TransportServer { /// Create a new transport server - pub fn new(config: SocketConfig) -> impl Future> { - std::future::ready(Self::bind(config)) - } - - /// Bind the listener and build the server - fn bind(config: SocketConfig) -> Result { + #[allow(clippy::unused_async, clippy::unused_async_trait_impl)] // Runs on first poll: a dropped or runtime-less future must have no effect. + pub async fn new(config: SocketConfig) -> Result { let socket_path = config.get_socket_path(); // Clean up any existing socket file and ensure parent directory permissions (Unix only) @@ -372,7 +368,8 @@ impl TransportServer { } /// Shutdown the server - pub fn shutdown(&mut self) -> impl Future> { + #[allow(clippy::unused_async, clippy::unused_async_trait_impl)] // Runs on first poll: a dropped or runtime-less future must have no effect. + pub async fn shutdown(&mut self) -> Result<()> { info!("Transport server shutdown"); // Close the listener @@ -394,7 +391,7 @@ impl TransportServer { } } - std::future::ready(Ok(())) + Ok(()) } } @@ -1042,11 +1039,12 @@ impl ClientConnectionManager { } /// Insert an accepted client connection (from server accept) - pub fn insert_accepted_client( + #[allow(clippy::unused_async, clippy::unused_async_trait_impl)] // Runs on first poll: a dropped or runtime-less future must have no effect. + pub async fn insert_accepted_client( &mut self, client_id: String, transport_client: TransportClient, - ) -> impl Future> { + ) -> Result<()> { info!("Inserting accepted client: {}", client_id); let managed_client = ManagedClient { @@ -1062,7 +1060,7 @@ impl ClientConnectionManager { self.stats.total_clients = self.clients.len(); self.update_healthy_clients_count(); - std::future::ready(Ok(())) + Ok(()) } /// Remove a client connection @@ -1078,15 +1076,16 @@ impl ClientConnectionManager { } /// Subscribe a client to topic patterns - pub fn subscribe_client( + #[allow(clippy::unused_async, clippy::unused_async_trait_impl)] // Runs on first poll: a dropped or runtime-less future must have no effect. + pub async fn subscribe_client( &mut self, client_id: &str, topic_patterns: Vec, - ) -> impl Future> { + ) -> Result<()> { if !self.clients.contains_key(client_id) { - return std::future::ready(Err(EventBusError::transport(format!( + return Err(EventBusError::transport(format!( "Client {client_id} not found" - )))); + ))); } debug!( @@ -1095,16 +1094,17 @@ impl ClientConnectionManager { ); self.subscriptions .insert(client_id.to_owned(), topic_patterns); - std::future::ready(Ok(())) + Ok(()) } /// Unsubscribe a client from all topics - pub fn unsubscribe_client(&mut self, client_id: &str) -> impl Future> { + #[allow(clippy::unused_async, clippy::unused_async_trait_impl)] // Runs on first poll: a dropped or runtime-less future must have no effect. + pub async fn unsubscribe_client(&mut self, client_id: &str) -> Result<()> { if let Some(patterns) = self.subscriptions.get_mut(client_id) { debug!("Unsubscribing client {} from all topics", client_id); patterns.clear(); } - std::future::ready(Ok(())) + Ok(()) } /// Send message to specific client From 6195106de35210fcbe9726b3d00064edc543c8da Mon Sep 17 00:00:00 2001 From: UncleSp1d3r Date: Sat, 28 Nov 2026 22:06:02 -0500 Subject: [PATCH 5/7] docs(security): State when cargo audit and cargo deny run Address PR review feedback (#391). cargo deny runs after every CI run; cargo audit runs on dependency or audit-config changes and daily, not on every commit. Signed-off-by: UncleSp1d3r --- SECURITY.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SECURITY.md b/SECURITY.md index 650066cb..6794da4b 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -94,7 +94,7 @@ If we decline, we will explain why and point you to a more appropriate reporting ### For Developers - Security-relevant changes get reviewed before merge. -- CI runs `cargo audit` and `cargo deny check` on every commit. A new vulnerability advisory fails the build, and so does an unmaintained or unsound advisory against a direct workspace dependency; the same two kinds against a transitive dependency produce warnings. The only allow-listed advisories are those under "Accepted Risks" below. +- CI runs `cargo deny check` after every CI run. It runs `cargo audit` when a push changes `Cargo.toml`, `Cargo.lock`, `audit.toml` or `.github/workflows/audit.yml`, and on a daily schedule. A new vulnerability advisory fails the build, and so does an unmaintained or unsound advisory against a direct workspace dependency; the same two kinds against a transitive dependency produce warnings. The only allow-listed advisories are those under "Accepted Risks" below. - Security-critical components (input parsers, IPC framing, SQL validation) are covered by unit tests; fuzzing of these components is planned. ## Security Advisories From ea932de40590b31414bdc93dd93c8eecd0939e36 Mon Sep 17 00:00:00 2001 From: UncleSp1d3r Date: Sat, 28 Nov 2026 22:13:33 -0500 Subject: [PATCH 6/7] test(procmond): Rewrite emptiness asserts in platform-gated tests The assert_is_empty lint also fires in Linux-only and Windows-only test code, which a macOS lint run never compiles. Rewrite the three remaining message-less assertions on a process name. Signed-off-by: UncleSp1d3r --- procmond/src/linux_collector.rs | 2 +- procmond/src/windows_collector.rs | 2 +- procmond/tests/linux_integration_tests.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/procmond/src/linux_collector.rs b/procmond/src/linux_collector.rs index e8323701..47585d5a 100644 --- a/procmond/src/linux_collector.rs +++ b/procmond/src/linux_collector.rs @@ -1297,7 +1297,7 @@ mod tests { let event = result.unwrap(); assert_eq!(event.pid, current_pid); - assert!(!event.name.is_empty()); + assert_ne!(event.name, ""); assert!(event.accessible); } diff --git a/procmond/src/windows_collector.rs b/procmond/src/windows_collector.rs index 94db1c17..e898c895 100644 --- a/procmond/src/windows_collector.rs +++ b/procmond/src/windows_collector.rs @@ -1538,7 +1538,7 @@ mod tests { let event = result.unwrap(); assert_eq!(event.pid, current_pid); - assert!(!event.name.is_empty()); + assert_ne!(event.name, ""); assert!(event.accessible); } diff --git a/procmond/tests/linux_integration_tests.rs b/procmond/tests/linux_integration_tests.rs index ccd0219c..61c89298 100644 --- a/procmond/tests/linux_integration_tests.rs +++ b/procmond/tests/linux_integration_tests.rs @@ -265,7 +265,7 @@ async fn test_linux_collector_current_process() { let event = result.unwrap(); assert_eq!(event.pid, current_pid); - assert!(!event.name.is_empty()); + assert_ne!(event.name, ""); assert!(event.accessible); // Linux-specific checks for current process From ea4905cd12a3176ed20dcd5bebb07a156e28d656 Mon Sep 17 00:00:00 2001 From: UncleSp1d3r Date: Sat, 28 Nov 2026 22:30:36 -0500 Subject: [PATCH 7/7] ci(build): Cache dependency builds and build release once per OS - Add Swatinem/rust-cache to the test, test-cross-platform and coverage jobs. Pull requests restore the cache main saved; only main saves, so the caches stay inside the repository quota - Drop the release build from the test job. test-cross-platform already builds release on Linux, macOS and Windows Signed-off-by: UncleSp1d3r --- .github/workflows/ci.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07fece38..685390bb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,7 +52,7 @@ jobs: test: runs-on: ubuntu-latest - # The test run plus the release build of a DataFusion workspace: 20 minutes was cut mid-link. + # The release build runs once per OS in test-cross-platform, not here. timeout-minutes: 45 steps: - name: Checkout repository @@ -66,6 +66,12 @@ jobs: cache: true github_token: ${{ secrets.GITHUB_TOKEN }} + - name: Cache cargo registry and dependency builds + uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3 + with: + # Pull requests restore main's cache; only main saves, to stay inside the cache quota. + save-if: ${{ github.ref == 'refs/heads/main' }} + - name: Free runner disk for the DataFusion test binaries if: runner.os == 'Linux' run: sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc @@ -73,9 +79,6 @@ jobs: - name: Run tests (all features) run: mise x -- cargo nextest run --profile ci --all-features - - name: Build release - run: mise x -- cargo build --release --all-features - test-cross-platform: strategy: matrix: @@ -121,6 +124,12 @@ jobs: cache: true github_token: ${{ secrets.GITHUB_TOKEN }} + - name: Cache cargo registry and dependency builds + uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3 + with: + # Pull requests restore main's cache; only main saves, to stay inside the cache quota. + save-if: ${{ github.ref == 'refs/heads/main' }} + # Run tests and build the release binary - name: Free runner disk for the DataFusion test binaries if: runner.os == 'Linux' @@ -147,6 +156,12 @@ jobs: cache: true github_token: ${{ secrets.GITHUB_TOKEN }} + - name: Cache cargo registry and dependency builds + uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3 + with: + # Pull requests restore main's cache; only main saves, to stay inside the cache quota. + save-if: ${{ github.ref == 'refs/heads/main' }} + - name: Free runner disk for the DataFusion test binaries if: runner.os == 'Linux' run: sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc