| 1 | [package] |
| 2 | name = "hyper-util" |
| 3 | version = "0.1.11" |
| 4 | description = "hyper utilities" |
| 5 | readme = "README.md" |
| 6 | homepage = "https://hyper.rs" |
| 7 | documentation = "https://docs.rs/hyper-util" |
| 8 | repository = "https://github.com/hyperium/hyper-util" |
| 9 | license = "MIT" |
| 10 | authors = ["Sean McArthur <sean@seanmonstar.com>" ] |
| 11 | keywords = ["http" , "hyper" , "hyperium" ] |
| 12 | categories = ["network-programming" , "web-programming::http-client" , "web-programming::http-server" ] |
| 13 | edition = "2021" |
| 14 | rust-version = "1.63" |
| 15 | |
| 16 | [package.metadata.docs.rs] |
| 17 | features = ["full" ] |
| 18 | rustdoc-args = ["--cfg" , "docsrs" ] |
| 19 | |
| 20 | [dependencies] |
| 21 | hyper = "1.6.0" |
| 22 | futures-util = { version = "0.3.16" , default-features = false } |
| 23 | http = "1.0" |
| 24 | http-body = "1.0.0" |
| 25 | bytes = "1.7.1" |
| 26 | pin-project-lite = "0.2.4" |
| 27 | futures-channel = { version = "0.3" , optional = true } |
| 28 | socket2 = { version = "0.5.9" , optional = true, features = ["all" ] } |
| 29 | tracing = { version = "0.1" , default-features = false, features = ["std" ], optional = true } |
| 30 | tokio = { version = "1" , optional = true, default-features = false } |
| 31 | tower-service = { version = "0.3" , optional = true } |
| 32 | libc = { version = "0.2" , optional = true } |
| 33 | |
| 34 | [dev-dependencies] |
| 35 | hyper = { version = "1.4.0" , features = ["full" ] } |
| 36 | bytes = "1" |
| 37 | http-body-util = "0.1.0" |
| 38 | tokio = { version = "1" , features = ["macros" , "test-util" , "signal" ] } |
| 39 | tokio-test = "0.4" |
| 40 | pretty_env_logger = "0.5" |
| 41 | |
| 42 | [target.'cfg(any(target_os = "linux", target_os = "macos"))'.dev-dependencies] |
| 43 | pnet_datalink = "0.35.0" |
| 44 | |
| 45 | [features] |
| 46 | default = [] |
| 47 | |
| 48 | # Shorthand to enable everything |
| 49 | full = [ |
| 50 | "client" , |
| 51 | "client-legacy" , |
| 52 | "server" , |
| 53 | "server-auto" , |
| 54 | "server-graceful" , |
| 55 | "service" , |
| 56 | "http1" , |
| 57 | "http2" , |
| 58 | "tokio" , |
| 59 | "tracing" , |
| 60 | ] |
| 61 | |
| 62 | client = ["hyper/client" , "dep:tracing" , "dep:futures-channel" , "dep:tower-service" ] |
| 63 | client-legacy = ["client" , "dep:socket2" , "tokio/sync" , "dep:libc" ] |
| 64 | |
| 65 | server = ["hyper/server" ] |
| 66 | server-auto = ["server" , "http1" , "http2" ] |
| 67 | server-graceful = ["server" , "tokio/sync" , "futures-util/alloc" ] |
| 68 | |
| 69 | service = ["dep:tower-service" ] |
| 70 | |
| 71 | http1 = ["hyper/http1" ] |
| 72 | http2 = ["hyper/http2" ] |
| 73 | |
| 74 | tokio = ["dep:tokio" , "tokio/net" , "tokio/rt" , "tokio/time" ] |
| 75 | |
| 76 | tracing = ["dep:tracing" ] |
| 77 | |
| 78 | # internal features used in CI |
| 79 | __internal_happy_eyeballs_tests = [] |
| 80 | |
| 81 | [[example]] |
| 82 | name = "client" |
| 83 | required-features = ["client-legacy" , "http1" , "tokio" ] |
| 84 | |
| 85 | [[example]] |
| 86 | name = "server" |
| 87 | required-features = ["server" , "http1" , "tokio" ] |
| 88 | |
| 89 | [[example]] |
| 90 | name = "server_graceful" |
| 91 | required-features = ["tokio" , "server-graceful" , "server-auto" ] |
| 92 | |