[go: nahoru, domu]

Skip to content

Commit

Permalink
Feat: split compression feature for Gzip and Brotli support
Browse files Browse the repository at this point in the history
  • Loading branch information
BastiDood authored and seanmonstar committed Nov 4, 2021
1 parent ea181a6 commit a23f147
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ edition = "2018"
all-features = true

[dependencies]
async-compression = { version = "0.3.7", features = ["brotli", "deflate", "gzip", "tokio"], optional = true }
async-compression = { version = "0.3.7", features = ["tokio"], optional = true }
bytes = "1.0"
futures-util = { version = "0.3", default-features = false, features = ["sink"] }
futures-channel = { version = "0.3.17", features = ["sink"]}
Expand Down Expand Up @@ -56,7 +56,11 @@ listenfd = "0.3"
default = ["multipart", "websocket"]
websocket = ["tokio-tungstenite"]
tls = ["tokio-rustls"]
compression = ["async-compression"]

# Enable compression-related filters
compression = ["compression-brotli", "compression-gzip"]
compression-brotli = ["async-compression/brotli"]
compression-gzip = ["async-compression/deflate", "async-compression/gzip"]

[profile.release]
codegen-units = 1
Expand Down

0 comments on commit a23f147

Please sign in to comment.