Skip to content

Commit

Permalink
Remove middleware - part 2 (#2925)
Browse files Browse the repository at this point in the history
This PR continues removing middleware by addressing the simpler
`TODO(enableNewSmithyRuntimeCleanup)` comments in the code generator.

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
  • Loading branch information
jdisanti authored Aug 21, 2023
1 parent 99ff449 commit b84c02b
Show file tree
Hide file tree
Showing 60 changed files with 345 additions and 3,011 deletions.
3 changes: 1 addition & 2 deletions aws/rust-runtime/aws-inlineable/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ aws-smithy-http-tower = { path = "../../../rust-runtime/aws-smithy-http-tower" }
aws-smithy-runtime-api = { path = "../../../rust-runtime/aws-smithy-runtime-api", features = ["client"] }
aws-smithy-runtime = { path = "../../../rust-runtime/aws-smithy-runtime", features = ["client"] }
aws-smithy-types = { path = "../../../rust-runtime/aws-smithy-types" }
aws-smithy-async = { path = "../../../rust-runtime/aws-smithy-async" }
aws-smithy-async = { path = "../../../rust-runtime/aws-smithy-async", features = ["rt-tokio"] }
aws-types = { path = "../aws-types" }
bytes = "1"
bytes-utils = "0.1.1"
Expand All @@ -36,7 +36,6 @@ md-5 = "0.10.1"
ring = "0.16"
tokio = { version = "1.23.1", features = ["full"] }
tokio-stream = "0.1.5"
tower = { version = "0.4", default-features = false }
tracing = "0.1"

[dev-dependencies]
Expand Down
6 changes: 0 additions & 6 deletions aws/rust-runtime/aws-inlineable/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ pub mod no_credentials;
/// Support types required for adding presigning to an operation in a generated service.
pub mod presigning;

/// Presigning tower service
pub mod presigning_service;

/// Presigning interceptors
pub mod presigning_interceptors;

Expand All @@ -43,9 +40,6 @@ pub mod glacier_checksums;
/// Glacier-specific behavior
pub mod glacier_interceptors;

/// Default middleware stack for AWS services
pub mod middleware;

/// Strip prefixes from IDs returned by Route53 operations when those IDs are used to construct requests
pub mod route53_resource_id_preprocessor_middleware;

Expand Down
88 changes: 0 additions & 88 deletions aws/rust-runtime/aws-inlineable/src/middleware.rs

This file was deleted.

1 change: 1 addition & 0 deletions aws/rust-runtime/aws-inlineable/src/presigning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ impl PresigningConfigBuilder {
pub struct PresignedRequest(http::Request<()>);

impl PresignedRequest {
#[allow(dead_code)]
pub(crate) fn new(inner: http::Request<()>) -> Self {
Self(inner)
}
Expand Down
61 changes: 0 additions & 61 deletions aws/rust-runtime/aws-inlineable/src/presigning_service.rs

This file was deleted.

182 changes: 0 additions & 182 deletions aws/rust-runtime/aws-inlineable/tests/middleware_e2e_test.rs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ val DECORATORS: List<ClientCodegenDecorator> = listOf(
RequireEndpointRules(),
UserAgentDecorator(),
SigV4AuthDecorator(),
SigV4SigningDecorator(),
HttpRequestChecksumDecorator(),
HttpResponseChecksumDecorator(),
RetryClassifierDecorator(),
Expand Down
Loading

0 comments on commit b84c02b

Please sign in to comment.