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
246
246
initializing the ` Client ` with the ` new_with_client ` method.
247
247
You may be interested by the ` futures-unsend ` feature which lets you specify a non-Send http client.
248
248
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
+
249
253
## 🌐 Running in the Browser with WASM <!-- omit in TOC -->
250
254
251
255
This crate fully supports WASM.
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ serde_json = "1.0"
13
13
wasm-bindgen = " 0.2"
14
14
wasm-bindgen-futures = " 0.4.18"
15
15
yew = {version =" 0.21" , features = [" csr" ]}
16
- meilisearch-sdk = {path =" ../.." }
16
+ meilisearch-sdk = { path =" ../.." , features = [ " futures-unsend " ] }
17
17
lazy_static = " 1.4"
18
18
serde = {version =" 1.0" , features =[" derive" ]}
19
19
web-sys = " 0.3"
Original file line number Diff line number Diff line change 223
223
//! The SDK lets you customize the http client by implementing the `HttpClient` trait yourself and
224
224
//! initializing the `Client` with the `new_with_client` method.
225
225
//! 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.
226
230
#![ warn( clippy:: all) ]
227
231
#![ allow( clippy:: needless_doctest_main) ]
228
232
You can’t perform that action at this time.
0 commit comments