@@ -26,7 +26,6 @@ futures-util = { version = "0.3", default-features = false }
2626http = " 0.2"
2727http-body = " =1.0.0-rc.2"
2828pin-project-lite = " 0.2.4"
29- tokio = { version = " 1.13" , features = [" sync" ] }
3029
3130# Optional
3231
@@ -36,6 +35,7 @@ httparse = { version = "1.8", optional = true }
3635httpdate = { version = " 1.0" , optional = true }
3736itoa = { version = " 1" , optional = true }
3837libc = { version = " 0.2" , optional = true }
38+ tokio = { version = " 1" , features = [" sync" ], optional = true }
3939tracing = { version = " 0.1" , default-features = false , features = [" std" ], optional = true }
4040want = { version = " 0.3" , optional = true }
4141
@@ -74,13 +74,16 @@ full = [
7474]
7575
7676# HTTP versions
77- http1 = [" dep:httparse" , " dep:itoa" ]
78- http2 = [" dep:h2" ]
77+ http1 = [" upgrade " , " dep:httparse" , " dep:itoa" ]
78+ http2 = [" upgrade " , " dep:h2" ]
7979
8080# Client/Server
8181client = [" dep:want" ]
8282server = [" dep:httpdate" ]
8383
84+ # HTTP Upgrades
85+ upgrade = [" dep:tokio" ]
86+
8487# C-API support (currently unstable (no semver))
8588ffi = [" dep:libc" , " dep:http-body-util" ]
8689
0 commit comments