Loading rust-runtime/Cargo.lock +17 −17 Original line number Diff line number Diff line Loading @@ -306,7 +306,7 @@ dependencies = [ name = "aws-smithy-cbor" version = "0.60.7" dependencies = [ "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "criterion", "minicbor", ] Loading Loading @@ -337,7 +337,7 @@ name = "aws-smithy-checksums" version = "0.60.12" dependencies = [ "aws-smithy-http 0.60.9", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "bytes", "bytes-utils", "crc32c", Loading @@ -364,7 +364,7 @@ name = "aws-smithy-compression" version = "0.0.1" dependencies = [ "aws-smithy-runtime-api 1.7.2", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "bytes", "bytes-utils", "flate2", Loading @@ -384,7 +384,7 @@ name = "aws-smithy-eventstream" version = "0.60.4" dependencies = [ "arbitrary", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "bytes", "bytes-utils", "crc32fast", Loading @@ -409,7 +409,7 @@ dependencies = [ "aws-smithy-async 1.2.1", "aws-smithy-runtime 1.6.3", "aws-smithy-runtime-api 1.7.2", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "h2 0.4.5", "http 1.1.0", "hyper 1.3.1", Loading Loading @@ -451,7 +451,7 @@ dependencies = [ "async-stream", "aws-smithy-eventstream 0.60.4", "aws-smithy-runtime-api 1.7.2", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "bytes", "bytes-utils", "futures-core", Loading Loading @@ -480,7 +480,7 @@ dependencies = [ "aws-smithy-http 0.60.9", "aws-smithy-json 0.60.7", "aws-smithy-runtime-api 1.7.2", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "aws-smithy-xml 0.60.8", "bytes", "futures-util", Loading Loading @@ -510,7 +510,7 @@ dependencies = [ "aws-smithy-http 0.60.9", "aws-smithy-http-server", "aws-smithy-json 0.60.7", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "aws-smithy-xml 0.60.8", "bytes", "futures", Loading Loading @@ -550,7 +550,7 @@ version = "0.60.3" name = "aws-smithy-json" version = "0.60.7" dependencies = [ "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "proptest", "serde_json", ] Loading @@ -570,7 +570,7 @@ version = "0.2.1" dependencies = [ "aws-sdk-s3", "aws-smithy-runtime-api 1.7.2", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "tokio", ] Loading Loading @@ -611,7 +611,7 @@ dependencies = [ name = "aws-smithy-query" version = "0.60.7" dependencies = [ "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "urlencoding", ] Loading Loading @@ -655,7 +655,7 @@ dependencies = [ "aws-smithy-http 0.60.9", "aws-smithy-protocol-test 0.62.0", "aws-smithy-runtime-api 1.7.2", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "bytes", "fastrand", "futures-util", Loading Loading @@ -703,7 +703,7 @@ name = "aws-smithy-runtime-api" version = "1.7.2" dependencies = [ "aws-smithy-async 1.2.1", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "bytes", "http 0.2.12", "http 1.1.0", Loading Loading @@ -742,7 +742,7 @@ dependencies = [ [[package]] name = "aws-smithy-types" version = "1.2.1" version = "1.2.2" dependencies = [ "base64 0.13.1", "base64-simd", Loading Loading @@ -779,7 +779,7 @@ name = "aws-smithy-types-convert" version = "0.60.8" dependencies = [ "aws-smithy-async 1.2.1", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "chrono", "futures-core", "time", Loading @@ -791,7 +791,7 @@ version = "0.1.3" dependencies = [ "aws-smithy-http 0.60.9", "aws-smithy-runtime-api 1.7.2", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "bytes", "http 1.1.0", "tracing", Loading Loading @@ -1980,7 +1980,7 @@ dependencies = [ "aws-smithy-http 0.60.9", "aws-smithy-json 0.60.7", "aws-smithy-runtime-api 1.7.2", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "aws-smithy-xml 0.60.8", "bytes", "fastrand", Loading rust-runtime/aws-smithy-types/Cargo.toml +1 −1 Original line number Diff line number Diff line [package] name = "aws-smithy-types" version = "1.2.1" version = "1.2.2" authors = [ "AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>", Loading rust-runtime/aws-smithy-types/src/date_time/mod.rs +13 −1 Original line number Diff line number Diff line Loading @@ -332,7 +332,12 @@ impl Ord for DateTime { impl Display for DateTime { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let date = self.fmt(Format::DateTime).map_err(|_| fmt::Error)?; // Some dates are out of range to be serialized with `DateTime`. // In these cases, fallback to using epoch seconds which always works let date = match self.fmt(Format::DateTime) { Ok(date) => date, Err(_err) => format::epoch_seconds::format(self), }; write!(f, "{}", date) } } Loading Loading @@ -629,6 +634,13 @@ mod test { ); } #[test] fn formatting_of_early_dates() { let date: DateTime = DateTime::from_str("Mon, 16 Dec -019 23:48:18 GMT", Format::HttpDate).unwrap(); assert_eq!(format!("{}", date), "-62736509502"); } #[test] fn ord() { let first = DateTime::from_secs_and_nanos(-1, 0); Loading Loading
rust-runtime/Cargo.lock +17 −17 Original line number Diff line number Diff line Loading @@ -306,7 +306,7 @@ dependencies = [ name = "aws-smithy-cbor" version = "0.60.7" dependencies = [ "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "criterion", "minicbor", ] Loading Loading @@ -337,7 +337,7 @@ name = "aws-smithy-checksums" version = "0.60.12" dependencies = [ "aws-smithy-http 0.60.9", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "bytes", "bytes-utils", "crc32c", Loading @@ -364,7 +364,7 @@ name = "aws-smithy-compression" version = "0.0.1" dependencies = [ "aws-smithy-runtime-api 1.7.2", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "bytes", "bytes-utils", "flate2", Loading @@ -384,7 +384,7 @@ name = "aws-smithy-eventstream" version = "0.60.4" dependencies = [ "arbitrary", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "bytes", "bytes-utils", "crc32fast", Loading @@ -409,7 +409,7 @@ dependencies = [ "aws-smithy-async 1.2.1", "aws-smithy-runtime 1.6.3", "aws-smithy-runtime-api 1.7.2", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "h2 0.4.5", "http 1.1.0", "hyper 1.3.1", Loading Loading @@ -451,7 +451,7 @@ dependencies = [ "async-stream", "aws-smithy-eventstream 0.60.4", "aws-smithy-runtime-api 1.7.2", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "bytes", "bytes-utils", "futures-core", Loading Loading @@ -480,7 +480,7 @@ dependencies = [ "aws-smithy-http 0.60.9", "aws-smithy-json 0.60.7", "aws-smithy-runtime-api 1.7.2", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "aws-smithy-xml 0.60.8", "bytes", "futures-util", Loading Loading @@ -510,7 +510,7 @@ dependencies = [ "aws-smithy-http 0.60.9", "aws-smithy-http-server", "aws-smithy-json 0.60.7", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "aws-smithy-xml 0.60.8", "bytes", "futures", Loading Loading @@ -550,7 +550,7 @@ version = "0.60.3" name = "aws-smithy-json" version = "0.60.7" dependencies = [ "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "proptest", "serde_json", ] Loading @@ -570,7 +570,7 @@ version = "0.2.1" dependencies = [ "aws-sdk-s3", "aws-smithy-runtime-api 1.7.2", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "tokio", ] Loading Loading @@ -611,7 +611,7 @@ dependencies = [ name = "aws-smithy-query" version = "0.60.7" dependencies = [ "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "urlencoding", ] Loading Loading @@ -655,7 +655,7 @@ dependencies = [ "aws-smithy-http 0.60.9", "aws-smithy-protocol-test 0.62.0", "aws-smithy-runtime-api 1.7.2", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "bytes", "fastrand", "futures-util", Loading Loading @@ -703,7 +703,7 @@ name = "aws-smithy-runtime-api" version = "1.7.2" dependencies = [ "aws-smithy-async 1.2.1", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "bytes", "http 0.2.12", "http 1.1.0", Loading Loading @@ -742,7 +742,7 @@ dependencies = [ [[package]] name = "aws-smithy-types" version = "1.2.1" version = "1.2.2" dependencies = [ "base64 0.13.1", "base64-simd", Loading Loading @@ -779,7 +779,7 @@ name = "aws-smithy-types-convert" version = "0.60.8" dependencies = [ "aws-smithy-async 1.2.1", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "chrono", "futures-core", "time", Loading @@ -791,7 +791,7 @@ version = "0.1.3" dependencies = [ "aws-smithy-http 0.60.9", "aws-smithy-runtime-api 1.7.2", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "bytes", "http 1.1.0", "tracing", Loading Loading @@ -1980,7 +1980,7 @@ dependencies = [ "aws-smithy-http 0.60.9", "aws-smithy-json 0.60.7", "aws-smithy-runtime-api 1.7.2", "aws-smithy-types 1.2.1", "aws-smithy-types 1.2.2", "aws-smithy-xml 0.60.8", "bytes", "fastrand", Loading
rust-runtime/aws-smithy-types/Cargo.toml +1 −1 Original line number Diff line number Diff line [package] name = "aws-smithy-types" version = "1.2.1" version = "1.2.2" authors = [ "AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>", Loading
rust-runtime/aws-smithy-types/src/date_time/mod.rs +13 −1 Original line number Diff line number Diff line Loading @@ -332,7 +332,12 @@ impl Ord for DateTime { impl Display for DateTime { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let date = self.fmt(Format::DateTime).map_err(|_| fmt::Error)?; // Some dates are out of range to be serialized with `DateTime`. // In these cases, fallback to using epoch seconds which always works let date = match self.fmt(Format::DateTime) { Ok(date) => date, Err(_err) => format::epoch_seconds::format(self), }; write!(f, "{}", date) } } Loading Loading @@ -629,6 +634,13 @@ mod test { ); } #[test] fn formatting_of_early_dates() { let date: DateTime = DateTime::from_str("Mon, 16 Dec -019 23:48:18 GMT", Format::HttpDate).unwrap(); assert_eq!(format!("{}", date), "-62736509502"); } #[test] fn ord() { let first = DateTime::from_secs_and_nanos(-1, 0); Loading