diff --git a/CHANGELOG.next.toml b/CHANGELOG.next.toml index 1672dc0962..85454148c1 100644 --- a/CHANGELOG.next.toml +++ b/CHANGELOG.next.toml @@ -158,7 +158,7 @@ List of changes: - Core codegen code - Add sensitive warning - - Add `serde` attributes + - Add `serde` attributes - Import `serde` crate to enable `serde(skip)` on some namespaces - Add `serde` crate behind unstable feature gate on `Cargo.toml` @@ -173,7 +173,7 @@ meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "client" message = """ - SDK - Implements `serde` support as described in RFC 30 - + - rust runtime - Implements serde support to `number`, `blob`, `document`, `date time` and `error type`. - `&'static str` on Error type is replaced with `Cow` to allow `serde` support. No breaking changes are introduced. diff --git a/rust-runtime/aws-smithy-types/src/document.rs b/rust-runtime/aws-smithy-types/src/document.rs index c414af20f0..9515d26c2d 100644 --- a/rust-runtime/aws-smithy-types/src/document.rs +++ b/rust-runtime/aws-smithy-types/src/document.rs @@ -4,14 +4,12 @@ */ use crate::Number; -use std::collections::HashMap; -#[cfg( - any( - all(aws_sdk_unstable, feature = "serde-deserialize"), - all(aws_sdk_unstable, feature = "serde-serialize") - ) -)] +#[cfg(any( + all(aws_sdk_unstable, feature = "serde-deserialize"), + all(aws_sdk_unstable, feature = "serde-serialize") +))] use serde; +use std::collections::HashMap; /* ANCHOR: document */ /// Document Type diff --git a/rust-runtime/aws-smithy-types/test_data/serialize_document.json b/rust-runtime/aws-smithy-types/test_data/serialize_document.json index 315acc50f6..dcbac2986a 100644 --- a/rust-runtime/aws-smithy-types/test_data/serialize_document.json +++ b/rust-runtime/aws-smithy-types/test_data/serialize_document.json @@ -40,4 +40,4 @@ true, false ] -} \ No newline at end of file +}