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 diff --git a/src/k2v-client/lib.rs b/src/k2v-client/lib.rs index 42bfa9f6..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); @@ -46,6 +50,7 @@ const PATH_ENCODE_SET: AsciiSet = NON_ALPHANUMERIC .remove(b'.') .remove(b'~'); +#[derive(Debug, Clone)] pub struct K2vClientConfig { pub endpoint: String, pub region: String, @@ -56,6 +61,7 @@ pub struct K2vClientConfig { } /// Client used to query a K2V server. +#[derive(Debug, Clone)] pub struct K2vClient { config: K2vClientConfig, user_agent: HeaderValue,