Skip to content

Commit

Permalink
Roll deps (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgerring authored Aug 25, 2023
1 parent cdeeef8 commit 61f6d58
Show file tree
Hide file tree
Showing 8 changed files with 186 additions and 278 deletions.
403 changes: 153 additions & 250 deletions Cargo.lock

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
clap = { version = "4.1.8", features = ["derive"] }
aws-sdk-s3 = "0.24.0"
aws-sdk-cloudformation = "0.24.0"
aws-sdk-route53 = "0.24.0"
aws-sdk-sts = "0.24.0"
aws-sdk-cloudfront = "0.24.0"
aws-config = "0.54.1"
tokio = {version = "1.26.0", features=["full"]}
thiserror = "1.0.38"
futures = "0.3.26"
clap = { version = "4.4.0", features = ["derive"] }
aws-sdk-s3 = "0.30.0"
aws-sdk-cloudformation = "0.30.0"
aws-sdk-route53 = "0.30.0"
aws-sdk-sts = "0.30.0"
aws-sdk-cloudfront = "0.30.0"
aws-config = "0.56.1"
tokio = {version = "1.32.0", features=["full"]}
thiserror = "1.0.47"
futures = "0.3.28"
mime_guess = "2.0.4"
tracing = "0.1.37"
tracing-subscriber = "0.3.16"
tracing-subscriber = "0.3.17"

# This is only here so we can match on byte-stream errors until this issue is closed
# https://github.com/awslabs/aws-sdk-rust/issues/600
aws-smithy-http = "0.54.4"
aws-smithy-http = "0.56.1"
8 changes: 5 additions & 3 deletions src/cloudformation_helpers.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
use crate::{Error, SdkError};
use aws_sdk_cloudformation::error::{CreateStackError, UpdateStackError};
use aws_sdk_cloudformation::model::{Parameter, StackStatus};
use crate::{Error};
use aws_sdk_cloudformation::operation::create_stack::CreateStackError;
use aws_sdk_cloudformation::operation::update_stack::UpdateStackError;
use aws_sdk_cloudformation::types::{Parameter, StackStatus};
use std::time::Duration;
use aws_sdk_cloudformation::error::SdkError;
use tracing::{error, event, Level};

///
Expand Down
7 changes: 4 additions & 3 deletions src/cloudfront_helpers.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
use crate::SdkError;
use aws_sdk_cloudfront::error::{CreateInvalidationError, GetInvalidationError};
use aws_sdk_cloudfront::model::{InvalidationBatch, Paths};
use aws_sdk_cloudfront::operation::create_invalidation::CreateInvalidationError;
use aws_sdk_cloudfront::operation::get_invalidation::GetInvalidationError;
use aws_sdk_cloudfront::Client;
use std::time::Duration;
use std::time::{SystemTime, UNIX_EPOCH};
use aws_sdk_cloudfront::error::SdkError;
use aws_sdk_cloudfront::types::{InvalidationBatch, Paths};
use tracing::info;

///
Expand Down
15 changes: 9 additions & 6 deletions src/error.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
use crate::SdkError;
use aws_sdk_cloudformation::error::{CreateStackError, DescribeStacksError, UpdateStackError};
use aws_sdk_cloudfront::error::{CreateInvalidationError, GetInvalidationError};
use aws_sdk_route53::error::ListHostedZonesByNameError;
use aws_sdk_s3::error::PutObjectError;
use aws_sdk_sts::error::GetCallerIdentityError;
use aws_sdk_cloudformation::error::SdkError;
use aws_sdk_cloudformation::operation::create_stack::CreateStackError;
use aws_sdk_cloudformation::operation::describe_stacks::DescribeStacksError;
use aws_sdk_cloudformation::operation::update_stack::UpdateStackError;
use aws_sdk_cloudfront::operation::create_invalidation::CreateInvalidationError;
use aws_sdk_cloudfront::operation::get_invalidation::GetInvalidationError;
use aws_sdk_route53::operation::list_hosted_zones_by_name::ListHostedZonesByNameError;
use aws_sdk_s3::operation::put_object::PutObjectError;
use aws_sdk_sts::operation::get_caller_identity::GetCallerIdentityError;
use tracing::dispatcher::SetGlobalDefaultError;

#[derive(Debug, thiserror::Error)]
Expand Down
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ mod s3_helpers;
use crate::cloudfront_helpers::{invalidate_distribution, wait_for_invalidation};
use crate::error::Error;
use crate::s3_helpers::upload_directory;
use aws_sdk_cloudformation::types::SdkError;
use clap::Parser;
use std::fs;
use std::path::Path;
Expand Down
4 changes: 2 additions & 2 deletions src/route53_helpers.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::SdkError;
use aws_sdk_route53::error::ListHostedZonesByNameError;
use aws_sdk_route53::error::SdkError;
use aws_sdk_route53::operation::list_hosted_zones_by_name::ListHostedZonesByNameError;

///
/// Finds the Zone ID for the given zone name.
Expand Down
2 changes: 1 addition & 1 deletion src/s3_helpers.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use crate::Error;
use aws_sdk_s3::types::ByteStream;
use aws_sdk_s3::Client;
use mime_guess;
use std::fs;
use std::path::Path;
use aws_smithy_http::byte_stream::ByteStream;
use tracing::info;

#[derive(Clone)]
Expand Down

0 comments on commit 61f6d58

Please sign in to comment.