forked from http-rs/http-types
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
72 lines (63 loc) · 1.65 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[package]
name = "http-types-rs"
version = "4.0.4"
license = "MIT OR Apache-2.0"
repository = "https://github.com/OneOfone/http-types"
documentation = "https://docs.rs/http-types-rs"
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 <[email protected]>",
"Ahmed Mones <[email protected]>",
]
readme = "README.md"
edition = "2021"
[package.metadata.docs.rs]
features = ["docs"]
rustdoc-args = ["--cfg", "feature=\"docs\""]
[features]
default = ["fs", "cookies", "serde"]
docs = ["unstable"]
unstable = []
hyperium_http = ["dep:http"]
cookies = ["dep:cookie"]
fs = ["dep:async-std"]
serde = [
"dep:serde_qs",
"dep:serde",
"dep:serde_json",
"dep:serde_urlencoded",
"url/serde",
]
[dependencies]
fastrand = "2.0"
base64 = "0.22"
futures = "0.3"
async-channel = "2.2"
infer = "0.15"
pin-project-lite = "0.2"
url = "2.5"
anyhow = "1.0"
# features: async_std
async-std = { version = "1.12", optional = true }
# features: hyperium/http
http = { version = "1.1", optional = true }
# features: cookies
cookie = { version = "0.18", features = ["percent-encode", "secure"], optional = true }
# features: serde
serde_json = { version = "1.0", optional = true }
serde = { version = "1.0", features = [
"derive",
], optional = true, package = "serde" }
serde_urlencoded = { version = "0.7", optional = true }
serde_qs = { version = "0.13", optional = true }
[dev-dependencies]
http = "1.1"
async-std = { version = "1.12", features = ["attributes"] }