forked from meilisearch/meilisearch-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
48 lines (41 loc) · 1.31 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[package]
name = "meilisearch-sdk"
version = "0.13.0"
authors = ["Mubelotix <[email protected]>"]
edition = "2018"
description = "Rust wrapper for the MeiliSearch API. MeiliSearch is a powerful, fast, open-source, easy to use and deploy search engine."
license = "MIT"
readme = "README.md"
repository = "https://github.com/meilisearch/meilisearch-sdk"
[dependencies]
serde_json = "1.0"
log = "0.4"
serde = { version = "1.0", features = ["derive"] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
futures = "0.3"
isahc = { version = "1.0", features = ["http2", "text-decoding"], default_features = false }
[target.'cfg(target_arch = "wasm32")'.dependencies]
js-sys = "0.3.47"
web-sys = { version = "0.3", features = ["RequestInit", "Headers", "Window", "Response", "console"] }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
[features]
default = ["isahc-static-curl", "sync"]
isahc-static-curl = ["isahc/static-curl"]
sync = []
[dev-dependencies]
env_logger = "0.9"
futures-await-test = "0.3"
futures = "0.3"
# The following dependencies are required for examples
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
yew = "0.18"
lazy_static = "1.4"
web-sys = "0.3"
console_error_panic_hook = "0.1"
[[example]]
name = "web_app"
crate-type = ["cdylib", "rlib"]
required-features = ["sync"]
path = "examples/web_app/src/lib.rs"