* Initial compression support * Support configuring compression on `Server` * Minor clean up * Test that compression is actually happening * Clean up some todos * channels compressing requests * Move compression to be on the codecs * Test sending compressed request to server that doesn't support it * Clean up a bit * Compress server streams * Compress client streams * Bidirectional streaming compression * Handle receiving unsupported encoding * Clean up * Add note to future self * Support disabling compression for individual responses * Add docs * Add compression examples * Disable compression behind feature flag * Add some docs * Make flate2 optional dependency * Fix docs wording * Format * Reply with which encodings are supported * Convert tests to use mocked io * Fix lints * Use separate counters * Don't make a long stream * Address review feedback
25 lines
695 B
TOML
25 lines
695 B
TOML
[package]
|
|
name = "compression"
|
|
version = "0.1.0"
|
|
authors = ["Lucio Franco <[email protected]>"]
|
|
edition = "2018"
|
|
publish = false
|
|
license = "MIT"
|
|
|
|
[dependencies]
|
|
tonic = { path = "../../tonic", features = ["compression"] }
|
|
prost = "0.7"
|
|
tokio = { version = "1.0", features = ["macros", "rt-multi-thread", "net"] }
|
|
tower = { version = "0.4", features = [] }
|
|
http-body = "0.4"
|
|
http = "0.2"
|
|
tokio-stream = { version = "0.1.5", features = ["net"] }
|
|
tower-http = { version = "0.1", features = ["map-response-body", "map-request-body"] }
|
|
bytes = "1"
|
|
futures = "0.3"
|
|
pin-project = "1.0"
|
|
hyper = "0.14"
|
|
|
|
[build-dependencies]
|
|
tonic-build = { path = "../../tonic-build", features = ["compression"] }
|