Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update compression dependencies #371

Merged
merged 2 commits into from
Jun 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion tower-http/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Changed

- None.
- **compression:** Update to async-compression 0.4 ([#371])

## Removed

Expand All @@ -23,6 +23,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- None.

[#371]: https://github.com/tower-rs/tower-http/pull/371

# 0.4.1 (June 20, 2023)

## Added
Expand Down
4 changes: 2 additions & 2 deletions tower-http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ tower-layer = "0.3"
tower-service = "0.3"

# optional dependencies
async-compression = { version = "0.3", optional = true, features = ["tokio"] }
async-compression = { version = "0.4", optional = true, features = ["tokio"] }
base64 = { version = "0.20", optional = true }
http-range-header = "0.3.0"
iri-string = { version = "0.7.0", optional = true }
Expand All @@ -50,7 +50,7 @@ tower = { version = "0.4.10", features = ["buffer", "util", "retry", "make", "ti
tracing-subscriber = "0.3"
uuid = { version = "1.0", features = ["v4"] }
serde_json = "1.0"
zstd = "0.11"
zstd = "0.12"

[features]
default = []
Expand Down
2 changes: 1 addition & 1 deletion tower-http/src/compression_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ pub enum CompressionLevel {
/// qualities. The interpretation of this depends on the algorithm chosen
/// and the specific implementation backing it.
/// Qualities are implicitly clamped to the algorithm's maximum.
Precise(u32),
Precise(i32),
}

impl Default for CompressionLevel {
Expand Down