From 5884b4e9c78b868cb5464bcc4ec655e17466e60a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arma=C3=ABl=20Gu=C3=A9neau?= Date: Tue, 2 Jun 2026 14:25:45 +0200 Subject: [PATCH 1/4] k2v-client: repair build; serializers depend on the serde "std" features --- src/k2v-client/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/k2v-client/Cargo.toml b/src/k2v-client/Cargo.toml index 3c1076c0..00e7606e 100644 --- a/src/k2v-client/Cargo.toml +++ b/src/k2v-client/Cargo.toml @@ -24,7 +24,7 @@ percent-encoding.workspace = true hyper = { workspace = true, default-features = false, features = ["http1", "http2"] } hyper-util.workspace = true hyper-rustls.workspace = true -serde.workspace = true +serde = { workspace = true, default-features = false, features = ["derive", "std"] } serde_json.workspace = true thiserror.workspace = true tokio.workspace = true From e665a3432c41fd252566da31b6e9b75acedfddc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arma=C3=ABl=20Gu=C3=A9neau?= Date: Tue, 2 Jun 2026 14:28:21 +0200 Subject: [PATCH 2/4] k2v-client: derive Clone for the K2vClient type --- src/k2v-client/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/k2v-client/lib.rs b/src/k2v-client/lib.rs index 42bfa9f6..11e89875 100644 --- a/src/k2v-client/lib.rs +++ b/src/k2v-client/lib.rs @@ -46,6 +46,7 @@ const PATH_ENCODE_SET: AsciiSet = NON_ALPHANUMERIC .remove(b'.') .remove(b'~'); +#[derive(Clone)] pub struct K2vClientConfig { pub endpoint: String, pub region: String, @@ -56,6 +57,7 @@ pub struct K2vClientConfig { } /// Client used to query a K2V server. +#[derive(Clone)] pub struct K2vClient { config: K2vClientConfig, user_agent: HeaderValue, From d588a96125b975fcfb9447ca1bf332e1e3fcd10b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arma=C3=ABl=20Gu=C3=A9neau?= Date: Tue, 2 Jun 2026 15:17:56 +0200 Subject: [PATCH 3/4] k2v-client: implement Debug for K2vClient --- src/k2v-client/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/k2v-client/lib.rs b/src/k2v-client/lib.rs index 11e89875..be8d8570 100644 --- a/src/k2v-client/lib.rs +++ b/src/k2v-client/lib.rs @@ -46,7 +46,7 @@ const PATH_ENCODE_SET: AsciiSet = NON_ALPHANUMERIC .remove(b'.') .remove(b'~'); -#[derive(Clone)] +#[derive(Debug, Clone)] pub struct K2vClientConfig { pub endpoint: String, pub region: String, @@ -57,7 +57,7 @@ pub struct K2vClientConfig { } /// Client used to query a K2V server. -#[derive(Clone)] +#[derive(Debug, Clone)] pub struct K2vClient { config: K2vClientConfig, user_agent: HeaderValue, From 0ebf60f709455c26ae81ef1c5f0d6fec643813ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arma=C3=ABl=20Gu=C3=A9neau?= Date: Tue, 2 Jun 2026 15:24:58 +0200 Subject: [PATCH 4/4] k2v-client: re-export crates hyper_rustls and hyper_util --- src/k2v-client/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/k2v-client/lib.rs b/src/k2v-client/lib.rs index be8d8570..c4c2ef65 100644 --- a/src/k2v-client/lib.rs +++ b/src/k2v-client/lib.rs @@ -26,6 +26,10 @@ mod error; pub use error::Error; +// Re-export these crates: values from these are passed to K2vClient::new_with_client +pub use hyper_rustls; +pub use hyper_util; + pub type Body = FullBody; const DEFAULT_TIMEOUT: Duration = Duration::from_secs(5);