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