diff --git a/Cargo.lock b/Cargo.lock index 3c55334..c30b447 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2985,7 +2985,7 @@ dependencies = [ [[package]] name = "rustguac" -version = "1.0.2" +version = "1.5.0" dependencies = [ "aes", "axum", diff --git a/Cargo.toml b/Cargo.toml index a3562ba..827b953 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rustguac" -version = "1.0.2" +version = "1.5.0" edition = "2021" description = "Lightweight Rust replacement for Apache Guacamole client" diff --git a/src/vdi/docker.rs b/src/vdi/docker.rs index 50a6404..348cc80 100644 --- a/src/vdi/docker.rs +++ b/src/vdi/docker.rs @@ -412,6 +412,7 @@ impl DockerDriver { Ok(()) } + #[allow(dead_code)] async fn do_health_check(&self) -> Result<(), VdiError> { self.client .ping() @@ -420,6 +421,7 @@ impl DockerDriver { Ok(()) } + #[allow(dead_code)] async fn do_list_managed_containers(&self) -> Result, VdiError> { let mut filters = HashMap::new(); filters.insert("label", vec!["rustguac.managed=true"]); diff --git a/src/vdi/mod.rs b/src/vdi/mod.rs index be47e0c..72fc925 100644 --- a/src/vdi/mod.rs +++ b/src/vdi/mod.rs @@ -66,6 +66,7 @@ pub struct ContainerInfo { /// Errors specific to VDI operations. #[derive(Debug)] +#[allow(dead_code)] pub enum VdiError { /// Docker API or communication error. Docker(String), @@ -108,11 +109,13 @@ pub trait VdiDriver: Send + Sync { ) -> std::pin::Pin> + Send + 'a>>; /// Check if the driver backend is reachable (e.g. Docker socket exists). + #[allow(dead_code)] fn health_check( &self, ) -> std::pin::Pin> + Send + '_>>; /// List container IDs managed by rustguac (label `rustguac.managed=true`). + #[allow(dead_code)] fn list_managed_containers( &self, ) -> std::pin::Pin, VdiError>> + Send + '_>>;