File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -246,6 +246,10 @@ The SDK lets you customize the http client by implementing the `HttpClient` trai
246246initializing the ` Client ` with the ` new_with_client ` method.
247247You may be interested by the ` futures-unsend ` feature which lets you specify a non-Send http client.
248248
249+ #### Wasm support <!-- omit in TOC -->
250+
251+ The SDK supports wasm through reqwest. You'll need to enable the ` futures-unsend ` feature while importing it, though.
252+
249253## 🌐 Running in the Browser with WASM <!-- omit in TOC -->
250254
251255This crate fully supports WASM.
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ serde_json = "1.0"
1313wasm-bindgen = " 0.2"
1414wasm-bindgen-futures = " 0.4.18"
1515yew = {version =" 0.21" , features = [" csr" ]}
16- meilisearch-sdk = {path =" ../.." }
16+ meilisearch-sdk = { path =" ../.." , features = [ " futures-unsend " ] }
1717lazy_static = " 1.4"
1818serde = {version =" 1.0" , features =[" derive" ]}
1919web-sys = " 0.3"
Original file line number Diff line number Diff line change 223223//! The SDK lets you customize the http client by implementing the `HttpClient` trait yourself and
224224//! initializing the `Client` with the `new_with_client` method.
225225//! You may be interested by the `futures-unsend` feature which lets you specify a non-Send http client.
226+ //!
227+ //! ### Wasm support <!-- omit in TOC -->
228+ //!
229+ //! The SDK supports wasm through reqwest. You'll need to enable the `futures-unsend` feature while importing it, though.
226230#![ warn( clippy:: all) ]
227231#![ allow( clippy:: needless_doctest_main) ]
228232
You can’t perform that action at this time.
0 commit comments