Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
fix(cua-driver): keep cua-driver-core clippy-clean without default features (#6543)
injaneity483610649739
diff --git a/libs/cua-driver/rust/crates/cua-driver-core/src/daemon.rs b/libs/cua-driver/rust/crates/cua-driver-core/src/daemon.rsindex 6e0efb1b7c..d04122adb7 100644--- a/libs/cua-driver/rust/crates/cua-driver-core/src/daemon.rs+++ b/libs/cua-driver/rust/crates/cua-driver-core/src/daemon.rs@@ -332,6 +332,7 @@ mod tests {#[test]fn the_reply_deadline_outlasts_every_tool_budget() {+ #[cfg_attr(not(feature = "script"), allow(unused_mut))]let mut budgets_ms = vec![crate::tool_schema::TIMEOUT_MS_MAX];#[cfg(feature = "script")]budgets_ms.push(crate::script_tool::MAX_TIMEOUT_MS);diff --git a/libs/cua-driver/rust/crates/cua-driver-core/src/policy.rs b/libs/cua-driver/rust/crates/cua-driver-core/src/policy.rsindex 598b1d7878..5d0ba4904e 100644--- a/libs/cua-driver/rust/crates/cua-driver-core/src/policy.rs+++ b/libs/cua-driver/rust/crates/cua-driver-core/src/policy.rs@@ -119,6 +119,8 @@ impl PolicyEngine {/// "no-args" sentinel if finer control is needed.pub fn is_potentially_listable(&self, tool: &str) -> bool {let tool = canonical_tool_name(tool);+ #[cfg(not(any(feature = "yaml", feature = "rego")))]+ let _ = tool;match self {#[cfg(feature = "yaml")]Self::Yaml(policy) => policy.is_potentially_listable(tool),diff --git a/libs/cua-driver/rust/crates/cua-driver-core/src/session_manifest.rs b/libs/cua-driver/rust/crates/cua-driver-core/src/session_manifest.rsindex 72479bf05a..5a3b7cbc96 100644--- a/libs/cua-driver/rust/crates/cua-driver-core/src/session_manifest.rs+++ b/libs/cua-driver/rust/crates/cua-driver-core/src/session_manifest.rs@@ -8,7 +8,9 @@//! managed, and user policy layers; it cannot introduce unreviewed tools.use std::collections::HashSet;-use std::path::{Component, Path, PathBuf};+#[cfg(feature = "yaml")]+use std::path::Component;+use std::path::{Path, PathBuf};use std::sync::atomic::{AtomicBool, Ordering};use std::sync::{Arc, Mutex, OnceLock};use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH};@@ -67,6 +69,8 @@ struct ApplicationGrant {terminate: TerminationGrant,}+// Only the YAML manifest parser constructs these variants.+#[cfg_attr(not(feature = "yaml"), allow(dead_code))]#[derive(Debug, Clone, Copy, PartialEq, Eq)]enum TerminationGrant {Deny,