forked from 0x676e67/http2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
100 lines (86 loc) · 2.52 KB
/
Cargo.toml
File metadata and controls
100 lines (86 loc) · 2.52 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
[package]
name = "http2"
# When releasing to crates.io:
# - Update CHANGELOG.md.
# - Create git tag
version = "0.5.16"
license = "MIT"
authors = [
"0x676e67 <gngppz@gmail.com>",
"Carl Lerche <me@carllerche.com>",
"Sean McArthur <sean@seanmonstar.com>",
]
description = "An HTTP/2 client and server"
documentation = "https://docs.rs/http2"
repository = "https://github.com/0x676e67/http2"
readme = "README.md"
keywords = ["http", "http2", "async", "non-blocking"]
categories = ["asynchronous", "web-programming", "network-programming"]
exclude = ["fixtures/**", "ci/**"]
edition = "2021"
rust-version = "1.68"
[features]
# Enables `futures::Stream` implementations for various types.
stream = []
# Enables tracing.
tracing = ["dep:tracing"]
# Enables **unstable** APIs. Any API exposed by this feature has no backwards
# compatibility guarantees. In other words, you should not use this feature for
# anything besides experimentation. Definitely **do not** publish a crate that
# depends on this feature.
unstable = []
# Enables `parking_lot` for synchronization primitives.
parking_lot = ["dep:parking_lot"]
[workspace]
members = [
"tests/h2-fuzz",
"tests/h2-tests",
"tests/h2-support",
"util/genfixture",
"util/genhuff",
]
[dependencies]
atomic-waker = "1.0.0"
futures-core = { version = "0.3", default-features = false }
futures-sink = { version = "0.3", default-features = false }
tokio-util = { version = "0.7.1", features = ["codec", "io"] }
tokio = { version = "1", features = ["io-util"] }
bytes = "1"
http = "1"
tracing = { version = "0.1", default-features = false, features = [
"std",
], optional = true }
fnv = "1.0.5"
slab = "0.4.2"
indexmap = { version = "2", features = ["std"] }
smallvec = { version = "1.15.0", features = ["serde"] }
parking_lot = { version = "0.12.4", optional = true }
serde = { version = "1.0", features = ["derive"] }
[dev-dependencies]
tracing = { version = "0.1", default-features = false, features = ["std"] }
h2 = { version = "0.4" }
# Fuzzing
quickcheck = { version = "1.0.3", default-features = false }
rand = "0.8.4"
# HPACK fixtures
hex = "0.4.3"
walkdir = "2.3.2"
serde = "1.0.0"
serde_json = "1.0.0"
# Examples
tokio = { version = "1", features = [
"rt-multi-thread",
"macros",
"sync",
"net",
] }
env_logger = { version = "0.10", default-features = false }
tokio-rustls = "0.26"
webpki-roots = "1"
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(fuzzing)"] }
[package.metadata.docs.rs]
features = ["stream"]
[[bench]]
name = "main"
harness = false