Skip to content

Commit

Permalink
Clean up dependency usage for aws-types crate (#3704)
Browse files Browse the repository at this point in the history
_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
Velfi authored Jun 18, 2024
1 parent b583a2f commit 217af48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aws/rust-runtime/aws-types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aws-types"
version = "1.3.1"
version = "1.3.2"
authors = ["AWS Rust SDK Team <[email protected]>", "Russell Cohen <[email protected]>"]
description = "Cross-service types for the AWS SDK."
edition = "2021"
Expand All @@ -18,7 +18,6 @@ aws-smithy-types = { path = "../../../rust-runtime/aws-smithy-types" }
aws-smithy-runtime = { path = "../../../rust-runtime/aws-smithy-runtime", optional = true }
aws-smithy-runtime-api = { path = "../../../rust-runtime/aws-smithy-runtime-api", features = ["client"] }
tracing = "0.1"
http = "0.2.6"
# cargo does not support optional test dependencies, so to completely disable rustls
# we need to add the webpki-roots feature here.
# https://github.com/rust-lang/cargo/issues/1596
Expand All @@ -29,6 +28,7 @@ http = "0.2.4"
tempfile = "3"
tracing-test = "=0.2.5"
tokio = { version = "1", features = ["rt", "macros"] }
aws-smithy-runtime-api = { path = "../../../rust-runtime/aws-smithy-runtime-api", features = ["http-02x"] }

[build-dependencies]
rustc_version = "0.4.0"
Expand Down
5 changes: 4 additions & 1 deletion aws/rust-runtime/aws-types/src/request_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,12 @@ pub fn apply_request_id(builder: ErrorMetadataBuilder, headers: &Headers) -> Err

#[cfg(test)]
mod tests {
use super::*;
use crate::request_id::{apply_request_id, RequestId, AWS_REQUEST_ID};
use aws_smithy_runtime_api::client::orchestrator::HttpResponse;
use aws_smithy_runtime_api::client::result::SdkError;
use aws_smithy_runtime_api::http::Headers;
use aws_smithy_types::body::SdkBody;
use aws_smithy_types::error::ErrorMetadata;
use http::{HeaderValue, Response};

#[test]
Expand Down

0 comments on commit 217af48

Please sign in to comment.