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