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