Skip to content

Commit e8eb549

Browse files
authored
Make http-range-header dependency optional (#394)
1 parent 0c50afe commit e8eb549

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: tower-http/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ tower-service = "0.3"
2626
# optional dependencies
2727
async-compression = { version = "0.4", optional = true, features = ["tokio"] }
2828
base64 = { version = "0.21", optional = true }
29-
http-range-header = "0.4.0"
29+
http-range-header = { version = "0.4.0", optional = true }
3030
iri-string = { version = "0.7.0", optional = true }
3131
mime = { version = "0.3.17", optional = true, default_features = false }
3232
mime_guess = { version = "2", optional = true, default_features = false }
@@ -85,7 +85,7 @@ auth = ["base64", "validate-request"]
8585
catch-panic = ["tracing", "futures-util/std"]
8686
cors = []
8787
follow-redirect = ["iri-string", "tower/util"]
88-
fs = ["tokio/fs", "tokio-util/io", "tokio/io-util", "mime_guess", "mime", "percent-encoding", "httpdate", "set-status", "futures-util/alloc", "tracing"]
88+
fs = ["tokio/fs", "tokio-util/io", "tokio/io-util", "dep:http-range-header", "mime_guess", "mime", "percent-encoding", "httpdate", "set-status", "futures-util/alloc", "tracing"]
8989
limit = []
9090
map-request-body = []
9191
map-response-body = []

0 commit comments

Comments
 (0)