http-types/Cargo.toml

58 lines
1.7 KiB
TOML
Raw Permalink Normal View History

[package]
name = "http-types"
version = "3.0.0"
license = "MIT OR Apache-2.0"
repository = "https://github.com/http-rs/http-types"
documentation = "https://docs.rs/http-types"
description = "Common types for HTTP operations."
keywords = ["http", "types", "request", "response", "h2"]
categories = ["asynchronous", "web-programming", "web-programming::http-client", "web-programming::http-server", "web-programming::websocket"]
authors = ["Yoshua Wuyts <yoshuawuyts@gmail.com>"]
readme = "README.md"
edition = "2018"
[package.metadata.docs.rs]
features = ["docs"]
rustdoc-args = ["--cfg", "feature=\"docs\""]
[features]
default = ["fs", "cookie-secure", "serde"]
docs = ["unstable"]
2020-04-11 18:46:15 +00:00
unstable = []
hyperium_http = ["http"]
async_std = ["fs"]
cookies = ["cookie"]
cookie-secure = ["cookies", "cookie/secure"]
fs = ["async-std"]
serde = ["serde_qs", "serde_crate", "serde_json", "serde_urlencoded", "url/serde"]
[dependencies]
fastrand = "1.4.0"
base64 = "0.13.0"
2020-09-20 15:08:03 +00:00
futures-lite = "1.11.1"
async-channel = "1.5.1"
2022-03-23 11:19:56 +00:00
infer = "0.7.0"
pin-project-lite = "0.2.0"
url = "2.1.1"
anyhow = "1.0.26"
# features: async_std
async-std = { version = "1.6.0", optional = true }
# features: hyperium/http
http = { version = "0.2.0", optional = true }
# features: cookies
2022-01-24 19:02:27 +00:00
cookie = { version = "0.16.0", features = ["percent-encode"], optional = true }
# features: serde
serde_json = { version = "1.0.51", optional = true }
serde_crate = { version = "1.0.106", features = ["derive"], optional = true, package = "serde" }
serde_urlencoded = { version = "0.7.0", optional = true}
2022-03-23 11:22:51 +00:00
serde_qs = { version = "0.9.1", optional = true }
2020-04-16 16:19:24 +00:00
[dev-dependencies]
http = "0.2.0"
async-std = { version = "1.6.0", features = ["attributes"] }