[dependencies.anyhow]
version = "1.0.95"
[dependencies.document-features]
version = "0.2.10"
[dependencies.egui]
default-features = false
optional = true
version = "0.30.0"
[dependencies.futures]
version = "0.3.28"
[dependencies.rand]
version = "0.8.5"
[dependencies.reqwest]
default-features = false
version = "0.12.12"
[dependencies.thiserror]
version = "2.0.9"
[dependencies.tracing]
version = "0.1.41"
[dev-dependencies.wasm-bindgen-test]
version = "0.3.34"
[[example]]
name = "loop_yield_custom"
path = "examples/loop_yield_custom.rs"
required-features = ["yield_now"]
[[example]]
name = "loop_yield_data_state"
path = "examples/loop_yield_data_state.rs"
required-features = ["yield_now"]
[[example]]
name = "simple_fetch"
path = "examples/simple_fetch.rs"
[features]
brotli = ["reqwest/brotli"]
cookies = ["reqwest/cookies"]
default = ["native-tokio", "reqwest_default"]
default-tls = ["reqwest/default-tls"]
deflate = ["reqwest/deflate"]
egui = ["dep:egui"]
gzip = ["reqwest/gzip"]
hickory-dns = ["reqwest/hickory-dns"]
http2 = ["reqwest/http2"]
json = ["reqwest/json"]
multipart = ["reqwest/multipart"]
native-tls = ["reqwest/native-tls"]
native-tokio = ["dep:tokio"]
reqwest_default = ["reqwest/default"]
rustls-tls = ["reqwest/rustls-tls"]
socks = ["reqwest/socks"]
stream = ["reqwest/stream"]
yield_now = ["dep:js-sys", "dep:web-sys"]
zstd = ["reqwest/zstd"]
[lib]
name = "reqwest_cross"
path = "src/lib.rs"
[package]
authors = ["One <one.bgz1@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["web-programming::http-client", "wasm"]
description = "Wrapper around reqwest for use in both native and wasm"
documentation = "https://docs.rs/reqwest-cross"
edition = "2021"
keywords = ["http", "wasm", "native", "web", "request"]
license = "MIT OR Apache-2.0"
name = "reqwest-cross"
readme = "README.md"
repository = "https://github.com/c-git/reqwest-cross"
version = "0.5.1"
[package.metadata.docs.rs]
all-features = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
default-features = false
optional = true
version = "1"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tokio]
default-features = false
features = ["macros", "rt-multi-thread"]
version = "1.27.0"
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
features = ["js"]
version = "0.2.15"
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
optional = true
version = "0.3.69"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4.34"
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
optional = true
version = "0.3.69"
[[test]]
name = "web"
path = "tests/web.rs"