@@ -26,7 +26,6 @@ futures-util = { version = "0.3", default-features = false }
26
26
http = " 0.2"
27
27
http-body = " =1.0.0-rc.2"
28
28
pin-project-lite = " 0.2.4"
29
- tokio = { version = " 1.13" , features = [" sync" ] }
30
29
31
30
# Optional
32
31
@@ -36,6 +35,7 @@ httparse = { version = "1.8", optional = true }
36
35
httpdate = { version = " 1.0" , optional = true }
37
36
itoa = { version = " 1" , optional = true }
38
37
libc = { version = " 0.2" , optional = true }
38
+ tokio = { version = " 1" , features = [" sync" ], optional = true }
39
39
tracing = { version = " 0.1" , default-features = false , features = [" std" ], optional = true }
40
40
want = { version = " 0.3" , optional = true }
41
41
@@ -74,13 +74,16 @@ full = [
74
74
]
75
75
76
76
# HTTP versions
77
- http1 = [" dep:httparse" , " dep:itoa" ]
78
- http2 = [" dep:h2" ]
77
+ http1 = [" upgrade " , " dep:httparse" , " dep:itoa" ]
78
+ http2 = [" upgrade " , " dep:h2" ]
79
79
80
80
# Client/Server
81
81
client = [" dep:want" ]
82
82
server = [" dep:httpdate" ]
83
83
84
+ # HTTP Upgrades
85
+ upgrade = [" dep:tokio" ]
86
+
84
87
# C-API support (currently unstable (no semver))
85
88
ffi = [" dep:libc" , " dep:http-body-util" ]
86
89
0 commit comments