Skip to content

Commit b83b8ae

Browse files
committed
fix the compilation of the wasm example and update the readme again
1 parent 1accb0e commit b83b8ae

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@ The SDK lets you customize the http client by implementing the `HttpClient` trai
246246
initializing the `Client` with the `new_with_client` method.
247247
You 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

251255
This crate fully supports WASM.

examples/web_app/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ serde_json = "1.0"
1313
wasm-bindgen = "0.2"
1414
wasm-bindgen-futures = "0.4.18"
1515
yew = {version="0.21", features = ["csr"]}
16-
meilisearch-sdk = {path="../.."}
16+
meilisearch-sdk = { path="../..", features = ["futures-unsend"] }
1717
lazy_static = "1.4"
1818
serde = {version="1.0", features=["derive"]}
1919
web-sys = "0.3"

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@
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

0 commit comments

Comments
 (0)