[package]
name = "attohttpc"
version = "0.10.1"
authors = ["Simon Bernier St-Pierre <git@sbstp.ca>"]
edition = "2018"
license = "MPL-2.0"
readme = "README.md"
description = "Small and lightweight HTTP client"
documentation = "https://docs.rs/attohttpc"
homepage = "https://github.com/sbstp/attohttpc"
repository = "https://github.com/sbstp/attohttpc"
keywords = ["http", "https", "client", "request", "response"]
categories = ["network-programming", "web-programming", "web-programming::http-client"]
[dependencies]
http = "0.2"
log = "0.4"
url = "2"
encoding_rs = { version = "0.8", optional = true }
encoding_rs_io = { version = "0.1", optional = true }
flate2 = { version = "1.0", optional = true }
native-tls = { version = "0.2", optional = true }
serde = { version = "1", optional = true }
serde_json = { version = "1", optional = true }
serde_urlencoded = { version = "0.6", optional = true }
[target.'cfg(not(any(target_os = "windows", target_os = "macos", target_os = "ios")))'.dependencies]
openssl = { version = "0.10.26", optional = true }
[dev-dependencies]
env_logger = "0.7"
lazy_static = "1"
rouille = "3"
[features]
charsets = ["encoding_rs", "encoding_rs_io"]
compress = ["flate2"]
tls = ["native-tls", "openssl"]
json = ["serde", "serde_json"]
form = ["serde", "serde_urlencoded"]
default = ["compress", "tls"]
[package.metadata.docs.rs]
all-features = true
[[example]]
name = "cat"
path = "examples/cat.rs"
required-features = ["default"]
[[example]]
name = "imdb"
path = "examples/imdb.rs"
required-features = ["tls"]
[[example]]
name = "nhlapi"
path = "examples/nhlapi.rs"
required-features = ["tls"]
[[example]]
name = "post_json"
path = "examples/post_json.rs"
required-features = ["json"]
[[example]]
name = "post"
path = "examples/post.rs"
required-features = ["tls"]
[[example]]
name = "charset"
path = "examples/charset.rs"
required-features = ["charsets"]
[[test]]
name = "test_invalid_certs"
path = "tests/test_invalid_certs.rs"
required-features = ["tls"]