From ba262cb6c4e071747db260e470a948be1feba35e Mon Sep 17 00:00:00 2001 From: David Souther Date: Fri, 8 Nov 2024 08:31:51 -0500 Subject: [PATCH] Rust: Update dependencies, especially Hyper 1.x examples. --- rustv1/examples/apigateway/Cargo.toml | 2 +- .../examples/apigatewaymanagement/Cargo.toml | 2 +- .../examples/applicationautoscaling/Cargo.toml | 2 +- rustv1/examples/auto-scaling/Cargo.toml | 2 +- rustv1/examples/autoscalingplans/Cargo.toml | 2 +- rustv1/examples/batch/Cargo.toml | 2 +- rustv1/examples/cloudformation/Cargo.toml | 2 +- rustv1/examples/cloudwatch/Cargo.toml | 2 +- rustv1/examples/cloudwatchlogs/Cargo.toml | 2 +- rustv1/examples/cognitoidentity/Cargo.toml | 2 +- .../cognitoidentityprovider/Cargo.toml | 2 +- rustv1/examples/cognitosync/Cargo.toml | 2 +- rustv1/examples/concurrency/Cargo.toml | 2 +- rustv1/examples/config/Cargo.toml | 2 +- rustv1/examples/dynamodb/Cargo.toml | 2 +- rustv1/examples/ebs/Cargo.toml | 2 +- rustv1/examples/ec2/Cargo.toml | 2 +- rustv1/examples/ecr/Cargo.toml | 2 +- rustv1/examples/ecs/Cargo.toml | 2 +- rustv1/examples/eks/Cargo.toml | 2 +- rustv1/examples/firehose/Cargo.toml | 2 +- rustv1/examples/globalaccelerator/Cargo.toml | 2 +- rustv1/examples/glue/Cargo.toml | 2 +- rustv1/examples/greengrassv2/Cargo.toml | 2 +- rustv1/examples/iam/Cargo.toml | 2 +- .../iam/src/bin/iam-getting-started.rs | 2 +- rustv1/examples/iot/Cargo.toml | 2 +- rustv1/examples/kinesis/Cargo.toml | 2 +- rustv1/examples/kms/Cargo.toml | 2 +- rustv1/examples/lambda/Cargo.toml | 2 +- rustv1/examples/logging/logger/Cargo.toml | 2 +- rustv1/examples/logging/tracing/Cargo.toml | 2 +- rustv1/examples/medialive/Cargo.toml | 2 +- rustv1/examples/mediapackage/Cargo.toml | 2 +- rustv1/examples/polly/Cargo.toml | 2 +- rustv1/examples/qldb/Cargo.toml | 2 +- rustv1/examples/rds/Cargo.toml | 2 +- rustv1/examples/rdsdata/Cargo.toml | 2 +- rustv1/examples/route53/Cargo.toml | 2 +- rustv1/examples/s3/Cargo.toml | 2 +- rustv1/examples/sagemaker/Cargo.toml | 2 +- rustv1/examples/sdk-config/Cargo.toml | 2 +- rustv1/examples/secretsmanager/Cargo.toml | 2 +- .../sending-presigned-requests/Cargo.toml | 18 +++++++++--------- .../sending-presigned-requests/src/main.rs | 11 ++++++----- rustv1/examples/ses/Cargo.toml | 2 +- rustv1/examples/sitewise/Cargo.toml | 2 +- rustv1/examples/snowball/Cargo.toml | 2 +- rustv1/examples/sns/Cargo.toml | 2 +- rustv1/examples/sqs/Cargo.toml | 2 +- rustv1/examples/ssm/Cargo.toml | 2 +- rustv1/examples/stepfunction/Cargo.toml | 2 +- rustv1/examples/sts/Cargo.toml | 2 +- rustv1/examples/testing/Cargo.toml | 2 +- rustv1/examples/transcribestreaming/Cargo.toml | 2 +- 55 files changed, 68 insertions(+), 67 deletions(-) diff --git a/rustv1/examples/apigateway/Cargo.toml b/rustv1/examples/apigateway/Cargo.toml index ed3f3d60190..74d6bea328f 100644 --- a/rustv1/examples/apigateway/Cargo.toml +++ b/rustv1/examples/apigateway/Cargo.toml @@ -11,7 +11,7 @@ aws-sdk-apigateway = { version = "1.3.0" } aws-smithy-types-convert = { version = "0.60.0", features = [ "convert-chrono", ] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } thiserror = "1.0" tokio = { version = "1.20.1", features = ["full"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/apigatewaymanagement/Cargo.toml b/rustv1/examples/apigatewaymanagement/Cargo.toml index c816f05be4e..540ed9b7741 100644 --- a/rustv1/examples/apigatewaymanagement/Cargo.toml +++ b/rustv1/examples/apigatewaymanagement/Cargo.toml @@ -14,5 +14,5 @@ aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-apigatewaymanagement = { version = "1.3.0" } http = "0.2.5" tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/applicationautoscaling/Cargo.toml b/rustv1/examples/applicationautoscaling/Cargo.toml index 10fe7e21189..45f31e2afaa 100644 --- a/rustv1/examples/applicationautoscaling/Cargo.toml +++ b/rustv1/examples/applicationautoscaling/Cargo.toml @@ -12,5 +12,5 @@ edition = "2021" aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-applicationautoscaling = { version = "1.4.0" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/auto-scaling/Cargo.toml b/rustv1/examples/auto-scaling/Cargo.toml index 0f99d9de81a..8bcca193881 100644 --- a/rustv1/examples/auto-scaling/Cargo.toml +++ b/rustv1/examples/auto-scaling/Cargo.toml @@ -12,7 +12,7 @@ aws-sdk-autoscaling = { version = "1.3.0" } aws-sdk-ec2 = { version = "1.3.0" } aws-types = { version = "1.0.1" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } anyhow = "1.0.75" tracing = "0.1.37" diff --git a/rustv1/examples/autoscalingplans/Cargo.toml b/rustv1/examples/autoscalingplans/Cargo.toml index b4ccdbcfb70..fc9833622b3 100644 --- a/rustv1/examples/autoscalingplans/Cargo.toml +++ b/rustv1/examples/autoscalingplans/Cargo.toml @@ -14,5 +14,5 @@ aws-sdk-autoscalingplans = { version = "1.3.0" } aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-types = { version = "1.0.1" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/batch/Cargo.toml b/rustv1/examples/batch/Cargo.toml index f06831665de..6a819d065ba 100644 --- a/rustv1/examples/batch/Cargo.toml +++ b/rustv1/examples/batch/Cargo.toml @@ -13,5 +13,5 @@ edition = "2021" aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-batch = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/cloudformation/Cargo.toml b/rustv1/examples/cloudformation/Cargo.toml index 594d8cf023e..0c55f5dec89 100644 --- a/rustv1/examples/cloudformation/Cargo.toml +++ b/rustv1/examples/cloudformation/Cargo.toml @@ -13,5 +13,5 @@ edition = "2021" aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-cloudformation = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/cloudwatch/Cargo.toml b/rustv1/examples/cloudwatch/Cargo.toml index ec1f62dff1b..998a51951f8 100644 --- a/rustv1/examples/cloudwatch/Cargo.toml +++ b/rustv1/examples/cloudwatch/Cargo.toml @@ -14,5 +14,5 @@ edition = "2021" aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-cloudwatch = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/cloudwatchlogs/Cargo.toml b/rustv1/examples/cloudwatchlogs/Cargo.toml index 574c3d9759e..90ac7397ecd 100644 --- a/rustv1/examples/cloudwatchlogs/Cargo.toml +++ b/rustv1/examples/cloudwatchlogs/Cargo.toml @@ -15,7 +15,7 @@ aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-cloudwatchlogs = { version = "1.3.0", features = ["test-util"]} aws-types = { version = "1.0.1" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } chrono = "0.4.32" tracing = "0.1.40" diff --git a/rustv1/examples/cognitoidentity/Cargo.toml b/rustv1/examples/cognitoidentity/Cargo.toml index 5d71cfe8d6e..7c5ea8cc0b0 100644 --- a/rustv1/examples/cognitoidentity/Cargo.toml +++ b/rustv1/examples/cognitoidentity/Cargo.toml @@ -16,7 +16,7 @@ aws-smithy-types-convert = { version = "0.60.0", features = [ "convert-chrono", ] } chrono = "0.4" -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } thiserror = "1.0" tokio = { version = "1.20.1", features = ["full"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/cognitoidentityprovider/Cargo.toml b/rustv1/examples/cognitoidentityprovider/Cargo.toml index ef47e6029fd..f419a8844a0 100644 --- a/rustv1/examples/cognitoidentityprovider/Cargo.toml +++ b/rustv1/examples/cognitoidentityprovider/Cargo.toml @@ -15,7 +15,7 @@ aws-sdk-cognitoidentityprovider = { version = "1.3.0" } aws-smithy-types-convert = { version = "0.60.0", features = [ "convert-chrono", ] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } thiserror = "1.0" tokio = { version = "1.20.1", features = ["full"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/cognitosync/Cargo.toml b/rustv1/examples/cognitosync/Cargo.toml index b26fcfdeb1d..5c6c655e00f 100644 --- a/rustv1/examples/cognitosync/Cargo.toml +++ b/rustv1/examples/cognitosync/Cargo.toml @@ -15,7 +15,7 @@ aws-sdk-cognitosync = { version = "1.3.0" } aws-smithy-types-convert = { version = "0.60.0", features = [ "convert-chrono", ] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } thiserror = "1.0" tokio = { version = "1.20.1", features = ["full"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/concurrency/Cargo.toml b/rustv1/examples/concurrency/Cargo.toml index 9c6cd822b4f..4c45d1c03b0 100644 --- a/rustv1/examples/concurrency/Cargo.toml +++ b/rustv1/examples/concurrency/Cargo.toml @@ -14,7 +14,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } futures = "0.3.25" tokio = { version = "1.20.1", features = ["full"] } tracing = "0.1.37" diff --git a/rustv1/examples/config/Cargo.toml b/rustv1/examples/config/Cargo.toml index b59571f5307..ae026adda8a 100644 --- a/rustv1/examples/config/Cargo.toml +++ b/rustv1/examples/config/Cargo.toml @@ -13,5 +13,5 @@ edition = "2021" aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-config = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/dynamodb/Cargo.toml b/rustv1/examples/dynamodb/Cargo.toml index 939886c2ce5..faaee39cdb6 100644 --- a/rustv1/examples/dynamodb/Cargo.toml +++ b/rustv1/examples/dynamodb/Cargo.toml @@ -17,7 +17,7 @@ aws-sdk-dynamodb = { version = "1.3.0" } aws-smithy-runtime = { version = "1.0.1", features = ["test-util"] } aws-smithy-types = { version = "1.0.1" } axum = "0.5.16" -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } futures = "0.3" http = "0.2.5" log = "0.4.17" diff --git a/rustv1/examples/ebs/Cargo.toml b/rustv1/examples/ebs/Cargo.toml index 028772ec44e..9b1d5807cfc 100644 --- a/rustv1/examples/ebs/Cargo.toml +++ b/rustv1/examples/ebs/Cargo.toml @@ -16,5 +16,5 @@ aws-sdk-ec2 = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } base64 = "0.13.0" sha2 = "0.9.5" -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/ec2/Cargo.toml b/rustv1/examples/ec2/Cargo.toml index a0a205cb4f6..047863a3635 100644 --- a/rustv1/examples/ec2/Cargo.toml +++ b/rustv1/examples/ec2/Cargo.toml @@ -15,7 +15,7 @@ aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-ec2 = { version = "1.3.0" } aws-types = { version = "1.0.1" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.17", features = ["env-filter"] } tracing = "0.1.40" aws-smithy-runtime-api = "1.6.2" diff --git a/rustv1/examples/ecr/Cargo.toml b/rustv1/examples/ecr/Cargo.toml index 81bd5df1d68..cec30a8b2c3 100644 --- a/rustv1/examples/ecr/Cargo.toml +++ b/rustv1/examples/ecr/Cargo.toml @@ -12,5 +12,5 @@ aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-ecr = { version = "1.3.0" } aws-types = { version = "1.0.1" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/ecs/Cargo.toml b/rustv1/examples/ecs/Cargo.toml index a22857a40e5..5a1299bde96 100644 --- a/rustv1/examples/ecs/Cargo.toml +++ b/rustv1/examples/ecs/Cargo.toml @@ -13,5 +13,5 @@ edition = "2021" aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-ecs = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/eks/Cargo.toml b/rustv1/examples/eks/Cargo.toml index ed0dba4d2e7..053d6bfb2e5 100644 --- a/rustv1/examples/eks/Cargo.toml +++ b/rustv1/examples/eks/Cargo.toml @@ -12,5 +12,5 @@ aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-eks = { version = "1.3.0" } aws-types = { version = "1.0.1" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/firehose/Cargo.toml b/rustv1/examples/firehose/Cargo.toml index 65395abd984..ac0d884b24c 100644 --- a/rustv1/examples/firehose/Cargo.toml +++ b/rustv1/examples/firehose/Cargo.toml @@ -12,6 +12,6 @@ edition = "2021" aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-firehose = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/globalaccelerator/Cargo.toml b/rustv1/examples/globalaccelerator/Cargo.toml index 7ad995748da..3828bdf9312 100644 --- a/rustv1/examples/globalaccelerator/Cargo.toml +++ b/rustv1/examples/globalaccelerator/Cargo.toml @@ -11,5 +11,5 @@ aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-globalaccelerator = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } tokio-stream = "0.1.8" -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/glue/Cargo.toml b/rustv1/examples/glue/Cargo.toml index 803b5715d63..b8dfbfad4ed 100644 --- a/rustv1/examples/glue/Cargo.toml +++ b/rustv1/examples/glue/Cargo.toml @@ -24,7 +24,7 @@ tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } tracing = "0.1.37" async_once = "0.2.6" lazy_static = "1.4.0" -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } thiserror = "1.0.37" secrecy = "0.8.0" uuid = { version = "1.2.1", features = ["v4"] } diff --git a/rustv1/examples/greengrassv2/Cargo.toml b/rustv1/examples/greengrassv2/Cargo.toml index 5c8e78a4156..c965ddca290 100644 --- a/rustv1/examples/greengrassv2/Cargo.toml +++ b/rustv1/examples/greengrassv2/Cargo.toml @@ -9,5 +9,5 @@ aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-greengrassv2 = { version = "1.3.0" } aws-types = { version = "1.0.1" } tokio = { version = "1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.5", features = ["env-filter"] } diff --git a/rustv1/examples/iam/Cargo.toml b/rustv1/examples/iam/Cargo.toml index ef2be0deaef..5e063c218fd 100644 --- a/rustv1/examples/iam/Cargo.toml +++ b/rustv1/examples/iam/Cargo.toml @@ -24,7 +24,7 @@ aws-sdk-s3 = { version = "1.4.0" } aws-sdk-sts = { version = "1.3.1" } sdk-examples-test-utils = { path = "../../test-utils" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } uuid = { version = "0.8", features = ["serde", "v4"] } tower-service = "0.3.2" diff --git a/rustv1/examples/iam/src/bin/iam-getting-started.rs b/rustv1/examples/iam/src/bin/iam-getting-started.rs index 96220629e2f..84a967d7fd8 100644 --- a/rustv1/examples/iam/src/bin/iam-getting-started.rs +++ b/rustv1/examples/iam/src/bin/iam-getting-started.rs @@ -182,7 +182,7 @@ async fn run_iam_operations( let assumed_role = sts_client .assume_role() .role_arn(assume_role_role.arn()) - .role_session_name(&format!("{}{}", "iam_demo_assumerole_session_", uuid)) + .role_session_name(format!("iam_demo_assumerole_session_{uuid}")) .send() .await; println!("Assumed role: {:?}", assumed_role); diff --git a/rustv1/examples/iot/Cargo.toml b/rustv1/examples/iot/Cargo.toml index 8a611284c73..a405181c3c3 100644 --- a/rustv1/examples/iot/Cargo.toml +++ b/rustv1/examples/iot/Cargo.toml @@ -11,5 +11,5 @@ aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-iot = { version = "1.3.0" } aws-types = { version = "1.0.1" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/kinesis/Cargo.toml b/rustv1/examples/kinesis/Cargo.toml index 8a05721d0ea..e1db9ca3215 100644 --- a/rustv1/examples/kinesis/Cargo.toml +++ b/rustv1/examples/kinesis/Cargo.toml @@ -13,5 +13,5 @@ edition = "2021" aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-kinesis = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/kms/Cargo.toml b/rustv1/examples/kms/Cargo.toml index 476ac47d58c..f71dada3ba6 100644 --- a/rustv1/examples/kms/Cargo.toml +++ b/rustv1/examples/kms/Cargo.toml @@ -13,5 +13,5 @@ aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-kms = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } base64 = "0.13.0" -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/lambda/Cargo.toml b/rustv1/examples/lambda/Cargo.toml index 2e96311bb54..0a49e8bed4b 100644 --- a/rustv1/examples/lambda/Cargo.toml +++ b/rustv1/examples/lambda/Cargo.toml @@ -13,7 +13,7 @@ aws-sdk-lambda = { version = "1.3.0" } aws-sdk-s3 = { version = "1.4.0" } aws-smithy-types = { version = "1.0.1" } aws-types = { version = "1.0.1" } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tokio = { version = "1.20.1", features = ["full"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } tracing = "0.1.37" diff --git a/rustv1/examples/logging/logger/Cargo.toml b/rustv1/examples/logging/logger/Cargo.toml index 1d7d3067971..c447a57cc72 100644 --- a/rustv1/examples/logging/logger/Cargo.toml +++ b/rustv1/examples/logging/logger/Cargo.toml @@ -16,6 +16,6 @@ aws-sdk-dynamodb = { version = "1.3.0" } # snippet-start:[logging.rust.logger-cargo.toml-env_logger] env_logger = "0.9.0" # snippet-end:[logging.rust.logger-cargo.toml-env_logger] -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tokio = { version = "1.20.1", features = ["full"] } # snippet-end:[logging.rust.logger-cargo.toml] diff --git a/rustv1/examples/logging/tracing/Cargo.toml b/rustv1/examples/logging/tracing/Cargo.toml index dc87ec0d0dc..fe12d6c5350 100644 --- a/rustv1/examples/logging/tracing/Cargo.toml +++ b/rustv1/examples/logging/tracing/Cargo.toml @@ -13,7 +13,7 @@ version = "0.1.0" [dependencies] aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-dynamodb = { version = "1.3.0" } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tokio = { version = "1.20.1", features = ["full"] } # snippet-start:[logging.rust.tracing-cargo.toml-tracing_subscriber] tracing-subscriber = { version = "0.3", features = ["env-filter"] } diff --git a/rustv1/examples/medialive/Cargo.toml b/rustv1/examples/medialive/Cargo.toml index 4fd3b27bf26..547225ae804 100644 --- a/rustv1/examples/medialive/Cargo.toml +++ b/rustv1/examples/medialive/Cargo.toml @@ -13,5 +13,5 @@ edition = "2021" aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-medialive = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/mediapackage/Cargo.toml b/rustv1/examples/mediapackage/Cargo.toml index 1d826f392bb..ac42ffdc703 100644 --- a/rustv1/examples/mediapackage/Cargo.toml +++ b/rustv1/examples/mediapackage/Cargo.toml @@ -13,5 +13,5 @@ edition = "2021" aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-mediapackage = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/polly/Cargo.toml b/rustv1/examples/polly/Cargo.toml index bfc3232c8b6..1f91943b825 100644 --- a/rustv1/examples/polly/Cargo.toml +++ b/rustv1/examples/polly/Cargo.toml @@ -14,5 +14,5 @@ aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-polly = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } bytes = "1" -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/qldb/Cargo.toml b/rustv1/examples/qldb/Cargo.toml index 6fbf0dc97e0..4f8c60ed470 100644 --- a/rustv1/examples/qldb/Cargo.toml +++ b/rustv1/examples/qldb/Cargo.toml @@ -15,5 +15,5 @@ aws-sdk-qldb = { version = "1.3.0" } aws-sdk-qldbsession = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } tokio-stream = { version = "0.1.9", features = ["default"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/rds/Cargo.toml b/rustv1/examples/rds/Cargo.toml index 03701384103..e44728820ed 100644 --- a/rustv1/examples/rds/Cargo.toml +++ b/rustv1/examples/rds/Cargo.toml @@ -17,7 +17,7 @@ async-trait = "0.1.73" aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-smithy-runtime-api = { version = "1.0.1" } aws-sdk-rds = { version = "1.3.0" } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } inquire = "0.6.2" mockall = "0.11.4" phf = { version = "0.11.2", features = ["std", "macros"] } diff --git a/rustv1/examples/rdsdata/Cargo.toml b/rustv1/examples/rdsdata/Cargo.toml index f7a58e6ce42..0ee0d47f387 100644 --- a/rustv1/examples/rdsdata/Cargo.toml +++ b/rustv1/examples/rdsdata/Cargo.toml @@ -13,5 +13,5 @@ version = "0.1.0" aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-rdsdata = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/route53/Cargo.toml b/rustv1/examples/route53/Cargo.toml index 08e919b778f..218c700040a 100644 --- a/rustv1/examples/route53/Cargo.toml +++ b/rustv1/examples/route53/Cargo.toml @@ -13,5 +13,5 @@ edition = "2021" aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-route53 = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/s3/Cargo.toml b/rustv1/examples/s3/Cargo.toml index 4b5da8363bf..b32bcb0b9b9 100644 --- a/rustv1/examples/s3/Cargo.toml +++ b/rustv1/examples/s3/Cargo.toml @@ -24,7 +24,7 @@ aws-smithy-types = { version = "1.0.1", features = ["http-body-0-4-x"] } sdk-examples-test-utils = { path = "../../test-utils" } anyhow = "1.0.70" bytes = "1.4.0" -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } futures-util = { version = "0.3.21", features = ["alloc"] } http = "0.2.8" http-body = "0.4.5" diff --git a/rustv1/examples/sagemaker/Cargo.toml b/rustv1/examples/sagemaker/Cargo.toml index 921a7969f04..3bad2f6d7b7 100644 --- a/rustv1/examples/sagemaker/Cargo.toml +++ b/rustv1/examples/sagemaker/Cargo.toml @@ -15,7 +15,7 @@ aws-sdk-sagemaker = { version = "1.5.0" } aws-smithy-types-convert = { version = "0.60.0", features = [ "convert-chrono", ] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } thiserror = "1.0" tokio = { version = "1.20.1", features = ["full"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/sdk-config/Cargo.toml b/rustv1/examples/sdk-config/Cargo.toml index dfd7c4d7d33..534462113a2 100644 --- a/rustv1/examples/sdk-config/Cargo.toml +++ b/rustv1/examples/sdk-config/Cargo.toml @@ -15,7 +15,7 @@ aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-credential-types = { version = "1.0.1" } aws-sdk-s3 = { version = "1.4.0" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } lazy_static = "1.4.0" async_once = "0.2.6" diff --git a/rustv1/examples/secretsmanager/Cargo.toml b/rustv1/examples/secretsmanager/Cargo.toml index 0e50c9fbcf0..40c8f17a43f 100644 --- a/rustv1/examples/secretsmanager/Cargo.toml +++ b/rustv1/examples/secretsmanager/Cargo.toml @@ -12,5 +12,5 @@ description = "Example usage of the SecretManager service" aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-secretsmanager = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/sending-presigned-requests/Cargo.toml b/rustv1/examples/sending-presigned-requests/Cargo.toml index 4a29c1373d4..f01bab58c27 100644 --- a/rustv1/examples/sending-presigned-requests/Cargo.toml +++ b/rustv1/examples/sending-presigned-requests/Cargo.toml @@ -7,12 +7,12 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } -aws-sdk-s3 = { version = "1.4.0" } -http = "0.2.6" -hyper = "0.14" -reqwest = "0.11" -clap = { version = "~4.4", features = ["derive"] } -tokio = { version = "1.20.1", features = ["full"] } -tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } -hyper-tls = "0.5.0" +aws-config = {version = "1.5.9", features = ["behavior-version-latest"]} +aws-sdk-s3 = { version = "1.59.0", features = ["http-1x"] } +clap = { version = "4.5.20", features = ["derive"] } +hyper = { version = "1.5.0", features = ["client", "full"] } +hyper-tls = "0.6.0" +hyper-util = { version = "0.1.10", features = ["client-legacy", "tokio"] } +reqwest = "0.12.9" +tokio = { version = "1.41.0", features = ["full"] } +tracing-subscriber = { version = "0.3.18", features = ["env-filter"] } diff --git a/rustv1/examples/sending-presigned-requests/src/main.rs b/rustv1/examples/sending-presigned-requests/src/main.rs index a668234f810..80b095f99a9 100644 --- a/rustv1/examples/sending-presigned-requests/src/main.rs +++ b/rustv1/examples/sending-presigned-requests/src/main.rs @@ -7,7 +7,8 @@ use aws_config::meta::region::RegionProviderChain; use aws_sdk_s3::presigning::{PresignedRequest, PresigningConfig}; use aws_sdk_s3::{config::Region, meta::PKG_VERSION, Client}; use clap::Parser; -use http::{HeaderName, HeaderValue}; +use hyper::http::{HeaderName, HeaderValue}; +use hyper_util::rt::TokioExecutor; use std::error::Error; use std::time::Duration; @@ -94,7 +95,7 @@ async fn main() -> Result<(), Box> { // Presigned requests can be used in several ways. Here are a few examples: print_as_curl_request(&presigned_request, Some(body.as_str())); send_presigned_request_with_reqwest(&presigned_request, body.clone()).await; - send_presigned_request_with_hyper(presigned_request, hyper::Body::from(body.clone())).await; + send_presigned_request_with_hyper(presigned_request, body.clone()).await; Ok(()) } @@ -125,10 +126,10 @@ 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) { +async fn send_presigned_request_with_hyper(req: PresignedRequest, body: String) { let conn = hyper_tls::HttpsConnector::new(); - let client = hyper::Client::builder().build(conn); - let req = req.into_http_02x_request(body); + let client = hyper_util::client::legacy::Client::builder(TokioExecutor::new()).build(conn); + let req = req.into_http_1x_request(body); let res = client.request(req).await; diff --git a/rustv1/examples/ses/Cargo.toml b/rustv1/examples/ses/Cargo.toml index 8df3b411249..565175c0ef8 100644 --- a/rustv1/examples/ses/Cargo.toml +++ b/rustv1/examples/ses/Cargo.toml @@ -11,7 +11,7 @@ edition = "2021" aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-sesv2 = { version = "1.3.0", features = ["test-util"]} tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } anyhow = "1.0.81" tracing = "0.1.40" diff --git a/rustv1/examples/sitewise/Cargo.toml b/rustv1/examples/sitewise/Cargo.toml index 7018ffa8304..45d367d576e 100644 --- a/rustv1/examples/sitewise/Cargo.toml +++ b/rustv1/examples/sitewise/Cargo.toml @@ -12,7 +12,7 @@ aws-sdk-iotsitewise = { version = "1.3.0" } aws-smithy-types-convert = { version = "0.60.0", features = [ "convert-chrono", ] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } thiserror = "1.0" tokio = { version = "1.20.1", features = ["full"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/snowball/Cargo.toml b/rustv1/examples/snowball/Cargo.toml index fa627c94c34..0d213af7c98 100644 --- a/rustv1/examples/snowball/Cargo.toml +++ b/rustv1/examples/snowball/Cargo.toml @@ -10,5 +10,5 @@ edition = "2021" aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-snowball = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/sns/Cargo.toml b/rustv1/examples/sns/Cargo.toml index db56d4bbe63..fa06d103933 100644 --- a/rustv1/examples/sns/Cargo.toml +++ b/rustv1/examples/sns/Cargo.toml @@ -13,5 +13,5 @@ edition = "2021" aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-sns = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/sqs/Cargo.toml b/rustv1/examples/sqs/Cargo.toml index b3cb7e64e50..a076cd5e5a8 100644 --- a/rustv1/examples/sqs/Cargo.toml +++ b/rustv1/examples/sqs/Cargo.toml @@ -13,5 +13,5 @@ edition = "2021" aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-sqs = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/ssm/Cargo.toml b/rustv1/examples/ssm/Cargo.toml index 52cd3e77041..b8f140a64a4 100644 --- a/rustv1/examples/ssm/Cargo.toml +++ b/rustv1/examples/ssm/Cargo.toml @@ -13,5 +13,5 @@ edition = "2021" aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-ssm = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/stepfunction/Cargo.toml b/rustv1/examples/stepfunction/Cargo.toml index 3c13be94baf..4d76439fbfd 100644 --- a/rustv1/examples/stepfunction/Cargo.toml +++ b/rustv1/examples/stepfunction/Cargo.toml @@ -8,5 +8,5 @@ edition = "2021" aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-sfn = { version = "1.3.0" } tokio = { version = "1.20.1", features = ["full"] } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/sts/Cargo.toml b/rustv1/examples/sts/Cargo.toml index 0c337622cbd..e6e3a79a9aa 100644 --- a/rustv1/examples/sts/Cargo.toml +++ b/rustv1/examples/sts/Cargo.toml @@ -13,6 +13,6 @@ aws-config = { version = "1.0.1", features = ["behavior-version-latest"] } aws-sdk-sts = { version = "1.3.1" } aws-smithy-types = { version = "1.0.1" } aws-types = { version = "1.0.1" } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tokio = { version = "1.20.1", features = ["full"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } diff --git a/rustv1/examples/testing/Cargo.toml b/rustv1/examples/testing/Cargo.toml index 2947b9abe8a..8a2f0c8f15e 100644 --- a/rustv1/examples/testing/Cargo.toml +++ b/rustv1/examples/testing/Cargo.toml @@ -17,7 +17,7 @@ aws-smithy-types = { version = "1.0.1" } aws-smithy-runtime = { version = "1.0.1", features = ["test-util"] } aws-smithy-runtime-api = { version = "1.0.1", features = ["test-util"] } aws-types = { version = "1.0.1" } -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } http = "0.2.9" mockall = "0.11.4" serde_json = "1" diff --git a/rustv1/examples/transcribestreaming/Cargo.toml b/rustv1/examples/transcribestreaming/Cargo.toml index 3af587c6dc9..770db9f01f1 100644 --- a/rustv1/examples/transcribestreaming/Cargo.toml +++ b/rustv1/examples/transcribestreaming/Cargo.toml @@ -15,6 +15,6 @@ aws-sdk-transcribestreaming = { version = "1.3.0" } async-stream = "0.3" bytes = "1" hound = "3.4" -clap = { version = "~4.4", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tokio = { version = "1.20.1", features = ["full"] } tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }