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 = [
4545resolver = " 2"
4646
4747[workspace .package ]
48- version = " 0.5.2 "
48+ version = " 0.5.3 "
4949edition = " 2021"
5050license = " MIT OR Apache-2.0 OR Apache-2.0 WITH LLVM-exception"
5151repository = " https://github.com/yoshuawuyts/wstd"
@@ -82,9 +82,10 @@ wasmtime = "26"
8282wasmtime-wasi = " 26"
8383wasmtime-wasi-http = " 26"
8484wstd = { 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
8889targets = [
8990 " wasm32-wasip2"
9091]
Original file line number Diff line number Diff 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 ( ) )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments