File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ members = [
45
45
resolver = " 2"
46
46
47
47
[workspace .package ]
48
- version = " 0.5.2 "
48
+ version = " 0.5.3 "
49
49
edition = " 2021"
50
50
license = " MIT OR Apache-2.0 OR Apache-2.0 WITH LLVM-exception"
51
51
repository = " https://github.com/yoshuawuyts/wstd"
@@ -82,9 +82,10 @@ wasmtime = "26"
82
82
wasmtime-wasi = " 26"
83
83
wasmtime-wasi-http = " 26"
84
84
wstd = { path = " ." }
85
- wstd-macro = { path = " macro" , version = " =0.5.2 " }
85
+ wstd-macro = { path = " macro" , version = " =0.5.3 " }
86
86
87
87
[package .metadata .docs .rs ]
88
+ all-features = true
88
89
targets = [
89
90
" wasm32-wasip2"
90
91
]
Original file line number Diff line number Diff line change @@ -189,7 +189,6 @@ impl IncomingBody {
189
189
///
190
190
/// [`serde_json::from_reader`]: https://docs.serde.rs/serde_json/fn.from_reader.html
191
191
#[ cfg( feature = "json" ) ]
192
- #[ cfg_attr( docsrs, doc( cfg( feature = "json" ) ) ) ]
193
192
pub async fn json < T : DeserializeOwned > ( & mut self ) -> Result < T , Error > {
194
193
let buf = self . bytes ( ) . await ?;
195
194
serde_json:: from_slice ( & buf) . map_err ( |e| ErrorVariant :: Other ( e. to_string ( ) ) . into ( ) )
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ impl JsonRequest for Builder {
36
36
/// Serialization can fail if `T`'s implementation of `Serialize` decides to
37
37
/// fail.
38
38
#[ cfg( feature = "json" ) ]
39
- #[ cfg_attr( docsrs, doc( cfg( feature = "json" ) ) ) ]
40
39
fn json < T : Serialize + ?Sized > ( self , json : & T ) -> Result < Request < BoundedBody < Vec < u8 > > > , Error > {
41
40
let encoded = serde_json:: to_vec ( json) . map_err ( |e| ErrorVariant :: Other ( e. to_string ( ) ) ) ?;
42
41
let builder = if !self
You can’t perform that action at this time.
0 commit comments