Skip to content

Commit 2218692

Browse files
authored
Fix docs.rs build (#65)
* enable docs attribute * set version 0.5.3 * added docs config to Cargo.toml * removed rustdoc-args from Cargo.toml * revised attribute * Revert "revised attribute" This reverts commit 041d402. * revised
1 parent 416d74b commit 2218692

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ members = [
4545
resolver = "2"
4646

4747
[workspace.package]
48-
version = "0.5.2"
48+
version = "0.5.3"
4949
edition = "2021"
5050
license = "MIT OR Apache-2.0 OR Apache-2.0 WITH LLVM-exception"
5151
repository = "https://github.com/yoshuawuyts/wstd"
@@ -82,9 +82,10 @@ wasmtime = "26"
8282
wasmtime-wasi = "26"
8383
wasmtime-wasi-http = "26"
8484
wstd = { path = "." }
85-
wstd-macro = { path = "macro", version = "=0.5.2" }
85+
wstd-macro = { path = "macro", version = "=0.5.3" }
8686

8787
[package.metadata.docs.rs]
88+
all-features = true
8889
targets = [
8990
"wasm32-wasip2"
9091
]

src/http/body.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ impl IncomingBody {
189189
///
190190
/// [`serde_json::from_reader`]: https://docs.serde.rs/serde_json/fn.from_reader.html
191191
#[cfg(feature = "json")]
192-
#[cfg_attr(docsrs, doc(cfg(feature = "json")))]
193192
pub async fn json<T: DeserializeOwned>(&mut self) -> Result<T, Error> {
194193
let buf = self.bytes().await?;
195194
serde_json::from_slice(&buf).map_err(|e| ErrorVariant::Other(e.to_string()).into())

src/http/request.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ impl JsonRequest for Builder {
3636
/// Serialization can fail if `T`'s implementation of `Serialize` decides to
3737
/// fail.
3838
#[cfg(feature = "json")]
39-
#[cfg_attr(docsrs, doc(cfg(feature = "json")))]
4039
fn json<T: Serialize + ?Sized>(self, json: &T) -> Result<Request<BoundedBody<Vec<u8>>>, Error> {
4140
let encoded = serde_json::to_vec(json).map_err(|e| ErrorVariant::Other(e.to_string()))?;
4241
let builder = if !self

0 commit comments

Comments
 (0)