Skip to content

Commit

Permalink
Remove deprecated aws-smithy-client
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSouther committed Oct 14, 2023
1 parent 1f6554b commit 532b2d7
Show file tree
Hide file tree
Showing 14 changed files with 10 additions and 30 deletions.
2 changes: 1 addition & 1 deletion rust_dev_preview/cross_service/rest_ses/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ uuid = { version = "1.2.1", features = ["v4", "serde"] }
xlsxwriter = "0.6.0"

[dev-dependencies]
aws-smithy-client = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = ["test-util"] }
aws-smithy-runtime = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
aws-smithy-http = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
fake = { version = "2.5.0", features = ["uuid"] }
once_cell = "1.15.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ async fn describe_pool(client: &Client, id: &str) -> Result<(), Error> {
println!(" value: {}", value);
}

let open_id_arns = response.open_id_connect_provider_ar_ns();
let open_id_arns = response.open_id_connect_provider_arns();
println!(" Open ID provider ARNs:");
for arn in open_id_arns {
println!(" {}", arn);
}

let saml_arns = response.saml_provider_ar_ns();
let saml_arns = response.saml_provider_arns();
println!(" SAML provider ARNs:");
for arn in saml_arns {
println!(" {}", arn);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ description = "An example demonstrating setting a custom root certificate with r

[dependencies]
aws-config = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
aws-smithy-client = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
# bringing our own HTTPs so no need for the default features
aws-sdk-s3 = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", default-features = false }
tokio = { version = "1.21.2", features = ["full"] }
Expand Down
1 change: 0 additions & 1 deletion rust_dev_preview/examples/dynamodb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ edition = "2021"
aws-config = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
aws-http = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
aws-sdk-dynamodb = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
aws-smithy-client = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = [ "client-hyper", "rustls", "rt-tokio", ] }
aws-smithy-http = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = [ "rt-tokio", ] }
aws-smithy-runtime = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = ["test-util"] }
aws-smithy-types = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
Expand Down
5 changes: 0 additions & 5 deletions rust_dev_preview/examples/glue/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ aws-config = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next"
aws-sdk-glue = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
aws-sdk-s3 = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
aws-http = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
aws-smithy-client = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = [
"client-hyper",
"rustls",
"rt-tokio",
] }
aws-smithy-http = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = [
"rt-tokio",
] }
Expand Down
5 changes: 0 additions & 5 deletions rust_dev_preview/examples/kms/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ description = "Example usage of the KMS service"
[dependencies]
aws-config = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
aws-sdk-kms = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
aws-smithy-client = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = [
"client-hyper",
"rustls",
"rt-tokio",
] }
tokio = { version = "1.20.1", features = ["full"] }
base64 = "0.13.0"
clap = { version = "~4.2", features = ["derive"] }
Expand Down
3 changes: 0 additions & 3 deletions rust_dev_preview/examples/s3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ aws-config = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next"
aws-endpoint = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
# snippet-end:[s3.rust.s3-object-lambda-cargo.toml]
aws-sdk-s3 = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
aws-smithy-client = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = [
"test-util",
] }
aws-smithy-http = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = ["rt-tokio"] }
aws-smithy-runtime = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
aws-smithy-types = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ async fn put_object(client: &Client, opts: &Opt) -> Result<(), anyhow::Error> {
// ProgressBody wrapped implementation.
let customized = request
.customize()
.await?
.map_request(ProgressBody::<SdkBody>::replace);

let out = customized.send().await?;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ reqwest = "0.11"
clap = { version = "~4.2", features = ["derive"] }
tokio = { version = "1.20.1", features = ["full"] }
tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
hyper-tls = "0.5.0"
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ fn print_as_curl_request(presigned_req: &PresignedRequest, body: Option<&str>) {

/// This function demonstrates how you can send a presigned request using [hyper](https://crates.io/crates/hyper)
async fn send_presigned_request_with_hyper(req: PresignedRequest, body: hyper::Body) {
let conn = aws_smithy_client::conns::https();
let conn = hyper_tls::HttpsConnector::new();
let client = hyper::Client::builder().build(conn);
let req = req.to_http_request(body).unwrap();

Expand Down
3 changes: 0 additions & 3 deletions rust_dev_preview/examples/testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ async-trait = "0.1.51"
# snippet-end:[testing.rust.Cargo.toml]
aws-config = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
aws-sdk-s3 = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
aws-smithy-client = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = [
"test-util",
] }
aws-smithy-http = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
aws-types = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
aws-credential-types = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = [
Expand Down
10 changes: 5 additions & 5 deletions rust_dev_preview/run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export APP_ENVIRONMENT="test"

FAIL=()
for f in ${DIRS[@]} ; do
"$HOME/.cargo/bin/cargo" fmt --manifest-path rust_dev_preview/$f/Cargo.toml --all --check || FAIL+=("fmt $f")
"$HOME/.cargo/bin/cargo" clippy --manifest-path rust_dev_preview/$f/Cargo.toml --all || FAIL+=("clippy $f")
"$HOME/.cargo/bin/cargo" test --manifest-path rust_dev_preview/$f/Cargo.toml --all || FAIL+=("clippy $f")
"$HOME/.cargo/bin/cargo" fmt --manifest-path rust_dev_preview/$f/Cargo.toml --all --check || FAIL+=("fmt:$f")
"$HOME/.cargo/bin/cargo" clippy --manifest-path rust_dev_preview/$f/Cargo.toml --all || FAIL+=("clippy:$f")
"$HOME/.cargo/bin/cargo" test --manifest-path rust_dev_preview/$f/Cargo.toml --all || FAIL+=("test:$f")
done

echo $FAIL

echo $FAIL;
exit "${#FAIL[@]}"

1 change: 0 additions & 1 deletion rust_dev_preview/test-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ edition = "2021"

[dependencies]
aws-config = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
aws-smithy-client = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = [ "test-util", ] }
aws-smithy-http = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
aws-smithy-runtime = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = ["test-util"] }
aws-types = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next"}
Expand Down
1 change: 0 additions & 1 deletion rust_dev_preview/webassembly/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ aws-config = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next",
aws-credential-types = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = ["hardcoded-credentials"] }
aws-sdk-lambda = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", default-features = false }
aws-smithy-async = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
aws-smithy-client = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", default-features = false }
aws-smithy-http = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next", features = ["event-stream"] }
aws-smithy-runtime-api = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
aws-smithy-types = { git = "https://github.com/awslabs/aws-sdk-rust", branch = "next" }
Expand Down

0 comments on commit 532b2d7

Please sign in to comment.