Skip to content

Commit

Permalink
Update compression dependencies (#371)
Browse files Browse the repository at this point in the history
* Update compression dependencies

* Update changelog
  • Loading branch information
tottoto committed Jun 22, 2023
1 parent f9aa1ae commit d48da34
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
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

0 comments on commit d48da34

Please sign in to comment.