Skip to content

Commit

Permalink
Bump the aws group with 2 updates
Browse files Browse the repository at this point in the history
Updates the requirements on [aws-config](https://github.com/smithy-lang/smithy-rs) and [aws-sdk-s3](https://github.com/awslabs/aws-sdk-rust) to permit the latest version.

Updates `aws-config` to 1.1.3
- [Release notes](https://github.com/smithy-lang/smithy-rs/releases)
- [Changelog](https://github.com/smithy-lang/smithy-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/smithy-lang/smithy-rs/commits)

Updates `aws-sdk-s3` to 1.13.0
- [Release notes](https://github.com/awslabs/aws-sdk-rust/releases)
- [Changelog](https://github.com/awslabs/aws-sdk-rust/blob/main/CHANGELOG.md)
- [Commits](https://github.com/awslabs/aws-sdk-rust/commits)

---
updated-dependencies:
- dependency-name: aws-config
  dependency-type: direct:production
  dependency-group: aws
- dependency-name: aws-sdk-s3
  dependency-type: direct:production
  dependency-group: aws
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Martijn <[email protected]>
  • Loading branch information
dependabot[bot] and foresterre committed Jan 24, 2024
1 parent 18450a9 commit 3f624f4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exclude = [
"/bors.toml", # CI staging bot config
"/deny.toml" # dependency license checking config
]
rust-version = "1.67"
rust-version = "1.68"


[workspace]
Expand Down
6 changes: 3 additions & 3 deletions crates/rust-releases-rust-dist/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ description = "RustDist source implementation for rust-releases"
license = "MIT OR Apache-2.0"
documentation = "https://docs.rs/rust-releases-rust-dist"
repository = "https://github.com/foresterre/rust-releases"
rust-version = "1.67"
rust-version = "1.68"

[dependencies]
rust-releases-core = { version = "^0.27.0", path = "../rust-releases-core" }
rust-releases-io = { version = "^0.27.0", path = "../rust-releases-io" }

aws-config = "0.56.1"
aws-sdk-s3 = "0.32.0"
aws-config = "1.1.3"
aws-sdk-s3 = "1.13.0"

lazy_static = "1.4.0"
regex = "1.8.1"
Expand Down
9 changes: 5 additions & 4 deletions crates/rust-releases-rust-dist/src/fetch.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::errors::{AwsError, RustDistError, RustDistResult};
use aws_config::AppName;
use aws_config::{AppName, BehaviorVersion};
use aws_sdk_s3::config::Region;
use aws_sdk_s3::operation::list_objects_v2::ListObjectsV2Output;
use aws_sdk_s3::types::Object;
Expand Down Expand Up @@ -65,7 +65,7 @@ impl Client {
.map_err(AwsError::InvalidAppName)?;

let config = runtime.block_on(
aws_config::from_env()
aws_config::defaults(BehaviorVersion::v2023_11_09())
.no_credentials()
.app_name(app_name)
.region(RUST_DIST_REGION)
Expand Down Expand Up @@ -106,8 +106,9 @@ impl ChunkClient for Client {
.runtime
.block_on(list_objects(&self.aws_s3_client, offset))?;

if !raw.is_truncated() {
return Ok(ChunkState::Complete);
match raw.is_truncated {
Some(truncated) if !truncated => return Ok(ChunkState::Complete),
_ => {}
}

let objects = raw.contents.ok_or(RustDistError::ChunkMetadataMissing)?;
Expand Down

0 comments on commit 3f624f4

Please sign in to comment.