Skip to content

Commit 12d4112

Browse files
committed
Merge branch 'main' of https://github.com/meilisearch/meilisearch-rust into meili-bot/localhost-samples
2 parents fd53824 + 7c7f081 commit 12d4112

File tree

19 files changed

+2596
-886
lines changed

19 files changed

+2596
-886
lines changed

.code-samples.meilisearch.yaml

Lines changed: 132 additions & 81 deletions
Large diffs are not rendered by default.

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "meilisearch-sdk"
3-
version = "0.17.0"
3+
version = "0.18.0"
44
authors = ["Mubelotix <[email protected]>"]
55
edition = "2018"
66
description = "Rust wrapper for the Meilisearch API. Meilisearch is a powerful, fast, open-source, easy to use and deploy search engine."
@@ -19,10 +19,12 @@ serde = { version = "1.0", features = ["derive"] }
1919
serde_json = "1.0"
2020
time = { version = "0.3.7", features = ["serde-well-known", "formatting", "parsing"] }
2121
jsonwebtoken = { version = "8", default-features = false }
22+
yaup = "0.2.0"
2223

2324
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
2425
futures = "0.3"
2526
isahc = { version = "1.0", features = ["http2", "text-decoding"], default_features = false }
27+
uuid = { version = "1.1.2", features = ["v4"] }
2628

2729
[target.'cfg(target_arch = "wasm32")'.dependencies]
2830
js-sys = "0.3.47"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ To use `meilisearch-sdk`, add this to your `Cargo.toml`:
5050

5151
```toml
5252
[dependencies]
53-
meilisearch-sdk = "0.17.0"
53+
meilisearch-sdk = "0.18.0"
5454
```
5555

5656
The following optional dependencies may also be useful:
@@ -224,7 +224,7 @@ Json output:
224224
],
225225
"offset": 0,
226226
"limit": 20,
227-
"nbHits": 1,
227+
"estimatedTotalHits": 1,
228228
"processingTimeMs": 0,
229229
"query": "wonder"
230230
}
@@ -242,7 +242,7 @@ WARNING: `meilisearch-sdk` will panic if no Window is available (ex: Web extensi
242242

243243
## 🤖 Compatibility with Meilisearch
244244

245-
This package only guarantees the compatibility with the [version v0.27.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.27.0).
245+
This package only guarantees the compatibility with the [version v0.28.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.28.0).
246246

247247
## ⚙️ Development Workflow and Contributing
248248

README.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ To use `meilisearch-sdk`, add this to your `Cargo.toml`:
5050

5151
```toml
5252
[dependencies]
53-
meilisearch-sdk = "0.17.0"
53+
meilisearch-sdk = "0.18.0"
5454
```
5555

5656
The following optional dependencies may also be useful:
@@ -97,7 +97,7 @@ WARNING: `meilisearch-sdk` will panic if no Window is available (ex: Web extensi
9797

9898
## 🤖 Compatibility with Meilisearch
9999

100-
This package only guarantees the compatibility with the [version v0.27.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.27.0).
100+
This package only guarantees the compatibility with the [version v0.28.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.28.0).
101101

102102
## ⚙️ Development Workflow and Contributing
103103

meilisearch-test-macro/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async fn test_get_tasks() -> Result<(), Error> {
2525

2626
let tasks = index.get_tasks().await?;
2727
// The only task is the creation of the index
28-
assert_eq!(status.len(), 1);
28+
assert_eq!(status.results.len(), 1);
2929

3030
index.delete()
3131
.await?
@@ -52,7 +52,7 @@ With this macro, all these problems are solved. See a rewrite of this test:
5252
async fn test_get_tasks(index: Index, client: Client) -> Result<(), Error> {
5353
let tasks = index.get_tasks().await?;
5454
// The only task is the creation of the index
55-
assert_eq!(status.len(), 1);
55+
assert_eq!(status.results.len(), 1);
5656
}
5757
```
5858

0 commit comments

Comments
 (0)