Cargo Features
[dependencies]
image_search = { version = "0.4.5", default-features = false, features = ["curl", "hyper", "wasm", "h1", "rustls", "blocking"] }
- default = hyper
-
The
hyper
feature is set by default wheneverimage_search
is added without
somewhere in the dependency tree.default-features = false - curl
-
Use curl (through isahc) as the HTTP backend
Enables curl-client of surf
- hyper default
-
Use hyper as the HTTP backend (default)
Enables hyper-client of surf
- wasm
-
Use window.fetch as the HTTP backend for WASM
Enables wasm-client of surf
- h1
-
Use async-h1 as the HTTP backend with native TLS for HTTPS
- rustls
-
Use async-h1 as the HTTP backend with rustls for HTTPS
Enables h1-client-rustls of surf
- blocking
-
Blocking enables fetching images synchronously.
Affects
image_search::blocking
…