Unverified Commit fc8a3981 authored by Zelda Hessler's avatar Zelda Hessler Committed by GitHub
Browse files

Add request compression runtime crate (#3627)

This adds a new runtime crate. The new crate contains code related to
compressing requests. Not included in this PR is everything needed to
actually make use of the new crate.

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent 1468813e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@ object CrateSet {
        listOf(
            "aws-smithy-async",
            "aws-smithy-checksums",
            "aws-smithy-compression",
            "aws-smithy-client",
            "aws-smithy-eventstream",
            "aws-smithy-http",
+1 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ members = [
    "inlineable",
    "aws-smithy-async",
    "aws-smithy-checksums",
    "aws-smithy-compression",
    "aws-smithy-client",
    "aws-smithy-eventstream",
    "aws-smithy-http",
+1 −1
Original line number Diff line number Diff line
[package]
name = "aws-smithy-checksums"
version = "0.60.7"
version = "0.60.8"
authors = [
  "AWS Rust SDK Team <aws-sdk-rust@amazon.com>",
  "Zelda Hessler <zhessler@amazon.com>",
+1 −1
Original line number Diff line number Diff line
# aws-smithy-checksum-callbacks
# aws-smithy-checksums

Checksum calculation and verification callbacks for HTTP request and response bodies sent by service clients generated by [smithy-rs](https://github.com/smithy-lang/smithy-rs).

+51 −0
Original line number Diff line number Diff line
[package]
name = "aws-smithy-compression"
version = "0.0.1"
authors = [
  "AWS Rust SDK Team <aws-sdk-rust@amazon.com>",
  "Zelda Hessler <zhessler@amazon.com>",
]
description = "Request compression for smithy clients."
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/smithy-lang/smithy-rs"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
http-body-0-4-x = [
  "dep:http-body-0-4",
  "dep:http-0-2",
  "aws-smithy-types/http-body-0-4-x",
]
http-body-1-x = [
  "dep:http-body-1-0",
  "dep:http-1-0",
  "dep:http-body-util",
  "aws-smithy-types/http-body-1-x",
]

[dependencies]
aws-smithy-types = { path = "../aws-smithy-types" }
aws-smithy-runtime-api = { path = "../aws-smithy-runtime-api" }
bytes = "1.4.0"
flate2 = "1.0.30"
pin-project-lite = "0.2.14"
tracing = "0.1.40"
http-0-2 = { package = "http", version = "0.2.9", optional = true }
http-1-0 = { package = "http", version = "1", optional = true }
http-body-0-4 = { package = "http-body", version = "0.4.5", optional = true }
http-body-1-0 = { package = "http-body", version = "1", optional = true }
http-body-util = { version = "0.1.1", optional = true }

[dev-dependencies]
bytes-utils = "0.1.2"
pretty_assertions = "1.3"
tokio = { version = "1.23.1", features = ["macros", "rt"] }

[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
rustdoc-args = ["--cfg", "docsrs"]
# End of docs.rs metadata
Loading