[dependencies.base64]
version = "0.21"
[dependencies.bytes]
version = "1.0"
[dependencies.futures-core]
default-features = false
version = "0.3.0"
[dependencies.futures-util]
default-features = false
version = "0.3.0"
[dependencies.http]
version = "0.2"
[dependencies.mime_guess]
default-features = false
optional = true
version = "2.0"
[dependencies.serde]
version = "1.0"
[dependencies.serde_json]
optional = true
version = "1.0"
[dependencies.serde_urlencoded]
version = "0.7.1"
[dependencies.tower-service]
version = "0.3"
[dependencies.url]
version = "2.2"
[[example]]
name = "blocking"
path = "examples/blocking.rs"
required-features = ["blocking"]
[[example]]
name = "json_dynamic"
path = "examples/json_dynamic.rs"
required-features = ["json"]
[[example]]
name = "json_typed"
path = "examples/json_typed.rs"
required-features = ["json"]
[[example]]
name = "tor_socks"
path = "examples/tor_socks.rs"
required-features = ["socks"]
[[example]]
name = "form"
path = "examples/form.rs"
[[example]]
name = "simple"
path = "examples/simple.rs"
[features]
__internal_proxy_sys_no_cache = []
__rustls = ["hyper-rustls", "tokio-rustls", "rustls", "__tls", "rustls-pemfile"]
__tls = []
blocking = ["futures-util/io", "tokio_wasi/rt-multi-thread", "tokio_wasi/sync"]
brotli = ["async-compression", "async-compression/brotli", "tokio-util_wasi"]
cookies = ["cookie_crate", "cookie_store"]
default = []
default-tls = ["hyper-tls", "native-tls-crate", "__tls", "tokio-native-tls"]
deflate = ["async-compression", "async-compression/zlib", "tokio-util_wasi"]
gzip = ["async-compression", "async-compression/gzip", "tokio-util_wasi"]
json = ["serde_json"]
multipart = ["mime_guess"]
native-tls = ["default-tls"]
native-tls-alpn = ["native-tls", "native-tls-crate/alpn"]
native-tls-vendored = ["native-tls", "native-tls-crate/vendored"]
no-pool = []
rustls-tls = ["rustls-tls-webpki-roots"]
rustls-tls-manual-roots = ["__rustls"]
rustls-tls-native-roots = ["rustls-native-certs", "__rustls"]
rustls-tls-webpki-roots = ["webpki-roots", "__rustls"]
socks = ["tokio-socks"]
stream = ["tokio_wasi/fs", "tokio-util_wasi", "wasm-streams"]
trust-dns = ["trust-dns-resolver"]
wasmedge-tls = ["wasmedge_hyper_rustls", "wasmedge_rustls_api", "__tls"]
[lib]
name = "reqwest"
path = "src/lib.rs"
[package]
authors = ["Sean McArthur <sean@seanmonstar.com>", "Tricster <mediosrity@gmail.com>", "csh <458761603@qq.com>"]
autotests = true
categories = ["web-programming::http-client", "wasm"]
description = "higher level HTTP client library"
documentation = "https://docs.rs/reqwest"
edition = "2018"
keywords = ["http", "request", "client"]
license = "MIT OR Apache-2.0"
name = "reqwest_wasi"
readme = "README.md"
repository = "https://github.com/wasmedge/reqwest"
version = "0.11.16"
[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]
targets = ["wasm32-wasi", "wasm32-unknown-unknown"]
[package.metadata.playground]
features = ["blocking", "cookies", "json", "multipart"]
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.js-sys]
version = "0.3.45"
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.serde_json]
version = "1.0"
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.wasm-bindgen]
version = "0.2.68"
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.wasm-bindgen-futures]
version = "0.4.18"
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.wasm-streams]
optional = true
version = "0.2"
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.web-sys]
features = ["Headers", "Request", "RequestInit", "RequestMode", "Response", "Window", "FormData", "Blob", "BlobPropertyBag", "ServiceWorkerGlobalScope", "RequestCredentials", "File", "ReadableStream"]
version = "0.3.25"
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dev-dependencies.wasm-bindgen]
features = ["serde-serialize"]
version = "0.2.68"
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dev-dependencies.wasm-bindgen-test]
version = "0.3"
[target.'cfg(target_os = "wasi")'.dependencies.async-compression]
default-features = false
features = ["tokio"]
optional = true
version = "0.3.13"
[target.'cfg(target_os = "wasi")'.dependencies.cookie_crate]
optional = true
package = "cookie"
version = "0.16"
[target.'cfg(target_os = "wasi")'.dependencies.cookie_store]
optional = true
version = "0.16"
[target.'cfg(target_os = "wasi")'.dependencies.encoding_rs]
version = "0.8"
[target.'cfg(target_os = "wasi")'.dependencies.h2_wasi]
version = "0.3"
[target.'cfg(target_os = "wasi")'.dependencies.http-body]
version = "0.4.0"
[target.'cfg(target_os = "wasi")'.dependencies.hyper-rustls]
default-features = false
optional = true
version = "0.23"
[target.'cfg(target_os = "wasi")'.dependencies.hyper-tls]
optional = true
version = "0.5"
[target.'cfg(target_os = "wasi")'.dependencies.hyper_wasi]
default-features = false
features = ["full"]
version = "0.15"
[target.'cfg(target_os = "wasi")'.dependencies.ipnet]
version = "2.3"
[target.'cfg(target_os = "wasi")'.dependencies.lazy_static]
version = "1.4"
[target.'cfg(target_os = "wasi")'.dependencies.log]
version = "0.4"
[target.'cfg(target_os = "wasi")'.dependencies.mime]
version = "0.3.16"
[target.'cfg(target_os = "wasi")'.dependencies.native-tls-crate]
optional = true
package = "native-tls"
version = "0.2.10"
[target.'cfg(target_os = "wasi")'.dependencies.once_cell]
version = "1"
[target.'cfg(target_os = "wasi")'.dependencies.percent-encoding]
version = "2.1"
[target.'cfg(target_os = "wasi")'.dependencies.pin-project-lite]
version = "0.2.0"
[target.'cfg(target_os = "wasi")'.dependencies.rustls]
features = ["dangerous_configuration"]
optional = true
version = "0.20"
[target.'cfg(target_os = "wasi")'.dependencies.rustls-native-certs]
optional = true
version = "0.6"
[target.'cfg(target_os = "wasi")'.dependencies.rustls-pemfile]
optional = true
version = "1.0"
[target.'cfg(target_os = "wasi")'.dependencies.tokio-native-tls]
optional = true
version = "0.3.0"
[target.'cfg(target_os = "wasi")'.dependencies.tokio-rustls]
optional = true
version = "0.23"
[target.'cfg(target_os = "wasi")'.dependencies.tokio-socks]
optional = true
version = "0.5.1"
[target.'cfg(target_os = "wasi")'.dependencies.tokio-util_wasi]
default-features = false
features = ["codec", "io"]
optional = true
version = "0.7"
[target.'cfg(target_os = "wasi")'.dependencies.tokio_wasi]
default-features = false
features = ["net", "time"]
version = "1"
[target.'cfg(target_os = "wasi")'.dependencies.trust-dns-resolver]
optional = true
version = "0.22"
[target.'cfg(target_os = "wasi")'.dependencies.wasmedge_hyper_rustls]
optional = true
version = "0.1.0"
[target.'cfg(target_os = "wasi")'.dependencies.wasmedge_rustls_api]
optional = true
version = "0.1.1"
[target.'cfg(target_os = "wasi")'.dependencies.webpki-roots]
optional = true
version = "0.22"
[target.'cfg(target_os = "wasi")'.dev-dependencies.brotli_crate]
package = "brotli"
version = "3.3.0"
[target.'cfg(target_os = "wasi")'.dev-dependencies.doc-comment]
version = "0.3"
[target.'cfg(target_os = "wasi")'.dev-dependencies.env_logger]
version = "0.8"
[target.'cfg(target_os = "wasi")'.dev-dependencies.hyper_wasi]
default-features = false
features = ["tcp", "http1", "client", "server", "runtime"]
version = "0.15"
[target.'cfg(target_os = "wasi")'.dev-dependencies.libflate]
version = "1.0"
[target.'cfg(target_os = "wasi")'.dev-dependencies.serde]
features = ["derive"]
version = "1.0"
[target.'cfg(target_os = "wasi")'.dev-dependencies.tokio_wasi]
default-features = false
features = ["macros", "rt"]
version = "1"
[target."cfg(windows)".dependencies.winreg]
version = "0.10"
[[test]]
name = "blocking"
path = "tests/blocking.rs"
required-features = ["blocking"]
[[test]]
name = "cookie"
path = "tests/cookie.rs"
required-features = ["cookies"]
[[test]]
name = "gzip"
path = "tests/gzip.rs"
required-features = ["gzip"]
[[test]]
name = "brotli"
path = "tests/brotli.rs"
required-features = ["brotli"]
[[test]]
name = "deflate"
path = "tests/deflate.rs"
required-features = ["deflate"]
[[test]]
name = "multipart"
path = "tests/multipart.rs"
required-features = ["multipart"]