diff --git a/Cargo.toml b/Cargo.toml index 13aa7b1..762ece3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,7 +45,7 @@ members = [ resolver = "2" [workspace.package] -version = "0.5.2" +version = "0.5.3" edition = "2021" license = "MIT OR Apache-2.0 OR Apache-2.0 WITH LLVM-exception" repository = "https://github.com/yoshuawuyts/wstd" @@ -82,9 +82,10 @@ wasmtime = "26" wasmtime-wasi = "26" wasmtime-wasi-http = "26" wstd = { path = "." } -wstd-macro = { path = "macro", version = "=0.5.2" } +wstd-macro = { path = "macro", version = "=0.5.3" } [package.metadata.docs.rs] +all-features = true targets = [ "wasm32-wasip2" ] diff --git a/src/http/body.rs b/src/http/body.rs index 3671c22..074b4fe 100644 --- a/src/http/body.rs +++ b/src/http/body.rs @@ -189,7 +189,6 @@ impl IncomingBody { /// /// [`serde_json::from_reader`]: https://docs.serde.rs/serde_json/fn.from_reader.html #[cfg(feature = "json")] - #[cfg_attr(docsrs, doc(cfg(feature = "json")))] pub async fn json(&mut self) -> Result { let buf = self.bytes().await?; serde_json::from_slice(&buf).map_err(|e| ErrorVariant::Other(e.to_string()).into()) diff --git a/src/http/request.rs b/src/http/request.rs index f5e38ec..92a1129 100644 --- a/src/http/request.rs +++ b/src/http/request.rs @@ -36,7 +36,6 @@ impl JsonRequest for Builder { /// Serialization can fail if `T`'s implementation of `Serialize` decides to /// fail. #[cfg(feature = "json")] - #[cfg_attr(docsrs, doc(cfg(feature = "json")))] fn json(self, json: &T) -> Result>>, Error> { let encoded = serde_json::to_vec(json).map_err(|e| ErrorVariant::Other(e.to_string()))?; let builder = if !self