cargo aws_sdk_dynamodb 0.0.26-alpha
v0.0.26-alpha (November 24th, 2021)

latest releases: 1.53.0, 1.52.0, 1.51.0...
2 years ago

Breaking Changes

  • RetryConfigBuilder::merge_with has been renamed to RetryConfigBuilder::take_unset_from
  • Credentials::from_keys is now behind a feature flag named hardcoded-credentials in aws-types.
    It is NOT secure to hardcode credentials into your application, and the credentials
    providers that come with the AWS SDK should be preferred. (smithy-rs#875, smithy-rs#317)
  • (aws-smithy-client): Extraneous pub use SdkSuccess removed from aws_smithy_client::hyper_ext. (smithy-rs#855)
  • The add_metadata function was removed from AwsUserAgent in aws-http.
    Use with_feature_metadata, with_config_metadata, or with_framework_metadata now instead. (smithy-rs#865)
  • Several breaking changes around aws_smithy_types::Instant were introduced by smithy-rs#849:
    • aws_smithy_types::Instant from was renamed to DateTime to avoid confusion with the standard library's monotonically nondecreasing Instant type.
    • DateParseError in aws_smithy_types has been renamed to DateTimeParseError to match the type that's being parsed.
    • The chrono-conversions feature and associated functions have been moved to the aws-smithy-types-convert crate.
      • Calls to Instant::from_chrono should be changed to:
        use aws_smithy_types::DateTime;
        use aws_smithy_types_convert::date_time::DateTimeExt;
        
        // For chrono::DateTime<Utc>
        let date_time = DateTime::from_chrono_utc(chrono_date_time);
        // For chrono::DateTime<FixedOffset>
        let date_time = DateTime::from_chrono_offset(chrono_date_time);
      • Calls to instant.to_chrono() should be changed to:
        use aws_smithy_types_convert::date_time::DateTimeExt;
        
        date_time.to_chrono_utc();
    • Instant::from_system_time and Instant::to_system_time have been changed to From trait implementations.
      • Calls to from_system_time should be changed to:
        DateTime::from(system_time);
        // or
        let date_time: DateTime = system_time.into();
      • Calls to to_system_time should be changed to:
        SystemTime::from(date_time);
        // or
        let system_time: SystemTime = date_time.into();
    • Several functions in Instant/DateTime were renamed:
      • Instant::from_f64 -> DateTime::from_secs_f64
      • Instant::from_fractional_seconds -> DateTime::from_fractional_secs
      • Instant::from_epoch_seconds -> DateTime::from_secs
      • Instant::from_epoch_millis -> DateTime::from_millis
      • Instant::epoch_fractional_seconds -> DateTime::as_secs_f64
      • Instant::has_nanos -> DateTime::has_subsec_nanos
      • Instant::epoch_seconds -> DateTime::secs
      • Instant::epoch_subsecond_nanos -> DateTime::subsec_nanos
      • Instant::to_epoch_millis -> DateTime::to_millis
    • The DateTime::fmt method is now fallible and fails when a DateTime's value is outside what can be represented by the desired date format.

New this week

  • ⚠️ MSRV increased from 1.53.0 to 1.54.0 per our 3-behind MSRV policy.
  • Conversions from aws_smithy_types::DateTime to OffsetDateTime from the time crate are now available from the aws-smithy-types-convert crate. (smithy-rs#849)
  • Fixed links to Usage Examples (smithy-rs#862, @floric)
  • Added missing features to user agent formatting, and made it possible to configure an app name for the user agent via service config. (smithy-rs#865)
  • 🐛 Relaxed profile name validation to allow @ and other characters (smithy-rs#861, aws-sdk-rust#270)
  • 🐛 Fixed signing problem with S3 Control (smithy-rs#858, aws-sdk-rust#291)
  • 🎉 Timeouts for requests are now configurable. You can set a timeout for each individual request attempt or for all attempts made for a request. (smithy-rs#831)
    • SdkError now includes a variant TimeoutError for when a request times out (smithy-rs#885)
  • Improve docs on aws-smithy-client (smithy-rs#855)
  • Fix http-body dependency version (smithy-rs#883, aws-sdk-rust#305)

Contributions

Thank you for your contributions! ❤️

Don't miss a new aws_sdk_dynamodb release

NewReleases is sending notifications on new releases.