1[package]
2name = "h2"
3# When releasing to crates.io:
4# - Update doc URL.
5# - html_root_url.
6# - Update CHANGELOG.md.
7# - Create git tag
8version = "0.3.25"
9license = "MIT"
10authors = [
11 "Carl Lerche <me@carllerche.com>",
12 "Sean McArthur <sean@seanmonstar.com>",
13]
14description = "An HTTP/2 client and server"
15documentation = "https://docs.rs/h2"
16repository = "https://github.com/hyperium/h2"
17readme = "README.md"
18keywords = ["http", "async", "non-blocking"]
19categories = ["asynchronous", "web-programming", "network-programming"]
20exclude = ["fixtures/**", "ci/**"]
21edition = "2018"
22rust-version = "1.63"
23
24[features]
25# Enables `futures::Stream` implementations for various types.
26stream = []
27
28# Enables **unstable** APIs. Any API exposed by this feature has no backwards
29# compatibility guarantees. In other words, you should not use this feature for
30# anything besides experimentation. Definitely **do not** publish a crate that
31# depends on this feature.
32unstable = []
33
34[workspace]
35members = [
36 "tests/h2-fuzz",
37 "tests/h2-tests",
38 "tests/h2-support",
39 "util/genfixture",
40 "util/genhuff",
41]
42
43[dependencies]
44futures-core = { version = "0.3", default-features = false }
45futures-sink = { version = "0.3", default-features = false }
46futures-util = { version = "0.3", default-features = false }
47tokio-util = { version = "0.7.1", features = ["codec", "io"] }
48tokio = { version = "1", features = ["io-util"] }
49bytes = "1"
50http = "0.2"
51tracing = { version = "0.1.35", default-features = false, features = ["std"] }
52fnv = "1.0.5"
53slab = "0.4.2"
54indexmap = { version = "2", features = ["std"] }
55
56[dev-dependencies]
57
58# Fuzzing
59quickcheck = { version = "1.0.3", default-features = false }
60rand = "0.8.4"
61
62# HPACK fixtures
63hex = "0.4.3"
64walkdir = "2.3.2"
65serde = "1.0.0"
66serde_json = "1.0.0"
67
68# Examples
69tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "net"] }
70env_logger = { version = "0.10", default-features = false }
71tokio-rustls = "0.24"
72webpki-roots = "0.25"
73
74[package.metadata.docs.rs]
75features = ["stream"]
76