[package]
edition = "2021"
name = "tiny_http_client"
version = "0.1.2"
build = "build.rs"
include = [
"src/**/*",
"certs/*.der",
"build.rs",
"Cargo.toml",
"LICENSE",
"README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tiny synchronous HTTP/HTTPS GET and POST client"
readme = "README.md"
keywords = [
"http",
"https",
"client",
"tls",
"networking",
]
categories = ["network-programming"]
license = "MIT"
repository = "https://github.com/ygguser/tiny_http_client"
[package.metadata.docs.rs]
all-features = true
[features]
default = ["http-get"]
http-get = []
http-post = []
linux-native-tls = ["dep:native-tls"]
linux-own-cert-list = []
[lib]
name = "tiny_http_client"
path = "src/lib.rs"
[target.'cfg(any(windows, target_os = "macos"))'.dependencies.native-tls]
version = "0.2"
[target.'cfg(target_os = "linux")'.dependencies.native-tls]
version = "0.2"
optional = true
[target.'cfg(target_os = "linux")'.dependencies.rustls]
version = "0.23"
features = [
"std",
"ring",
]
default-features = false
[target.'cfg(target_os = "linux")'.dependencies.webpki-roots]
version = "0.26"
default-features = false
[profile.release]
opt-level = "z"
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true