[go: up one dir, main page]

ehttp 0.6.0

Minimal HTTP client for both native and WASM
Documentation
[dependencies.document-features]
version = "0.2"

[dependencies.mime]
optional = true
version = "0.3"

[dependencies.mime_guess]
optional = true
version = "2.0"

[dependencies.rand]
optional = true
version = "0.8.5"

[dependencies.serde]
optional = true
version = "1.0"

[dependencies.serde_json]
optional = true
version = "1.0"

[features]
default = []
json = ["dep:serde", "dep:serde_json"]
multipart = ["dep:getrandom", "dep:mime", "dep:mime_guess", "dep:rand"]
native-async = ["async-channel"]
streaming = ["dep:wasm-streams", "dep:futures-util"]

[lib]
name = "ehttp"
path = "src/lib.rs"

[package]
authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["network-programming", "wasm", "web-programming"]
description = "Minimal HTTP client for both native and WASM"
edition = "2018"
homepage = "https://github.com/emilk/ehttp"
include = ["../LICENSE-APACHE", "../LICENSE-MIT", "**/*.rs", "Cargo.toml"]
keywords = ["http", "wasm", "native", "web"]
license = "MIT OR Apache-2.0"
name = "ehttp"
readme = "README.md"
repository = "https://github.com/emilk/ehttp"
rust-version = "1.86"
version = "0.6.0"

[package.metadata.docs.rs]
all-features = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.async-channel]
optional = true
version = "2.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ureq]
version = "2.0"

[target.'cfg(target_arch = "wasm32")'.dependencies.futures-util]
optional = true
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
features = ["js"]
optional = true
version = "0.2.10"

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2.89"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-streams]
optional = true
version = "0.4"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
features = ["AbortSignal", "console", "Headers", "ReadableStream", "Request", "RequestInit", "RequestMode", "Response", "Window"]
version = "0.3.52"