Loading aws/sdk/aws-models/s3-control.json +22438 −21537 File changed.Preview size limit exceeded, changes collapsed. Show changes codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/serialize/XmlBindingTraitSerializerGenerator.kt +13 −3 Original line number Diff line number Diff line Loading @@ -336,7 +336,8 @@ class XmlBindingTraitSerializerGenerator( HttpLocation.DOCUMENT, TimestampFormatTrait.Format.DATE_TIME, model, ) val timestampFormatType = RuntimeType.parseTimestampFormat(codegenTarget, runtimeConfig, timestampFormat) val timestampFormatType = RuntimeType.parseTimestampFormat(codegenTarget, runtimeConfig, timestampFormat) rust("$input.fmt(#T)?.as_ref()", timestampFormatType) } Loading Loading @@ -455,12 +456,21 @@ class XmlBindingTraitSerializerGenerator( rust("let mut scope_writer = writer.finish();") rustBlock("match input") { val members = unionShape.members() members.forEach { member -> val memberShape = model.expectShape(member.target) val memberName = symbolProvider.toMemberName(member) val variantName = if (member.isTargetUnit()) { "${symbolProvider.toMemberName(member)}" "$memberName" } else if (memberShape.isStructureShape && memberShape.asStructureShape() .get().allMembers.isEmpty() ) { // Unit structs don't serialize inner, so it is never accessed "$memberName(_inner)" } else { "${symbolProvider.toMemberName(member)}(inner)" "$memberName(inner)" } withBlock("#T::$variantName =>", ",", unionSymbol) { serializeMember(member, Ctx.Scope("scope_writer", "inner")) Loading gradle.properties +1 −1 Original line number Diff line number Diff line Loading @@ -18,4 +18,4 @@ allowLocalDeps=false isTestingEnabled=true # codegen publication version codegenVersion=0.1.0 codegenVersion=0.1.1 rust-runtime/aws-smithy-http-server-python/Cargo.toml +2 −2 Original line number Diff line number Diff line [package] name = "aws-smithy-http-server-python" version = "0.66.2" version = "0.66.3" authors = ["Smithy Rust Server <smithy-rs-server@amazon.com>"] edition = "2021" license = "Apache-2.0" Loading @@ -25,7 +25,7 @@ hyper = { version = "0.14.26", features = ["server", "http1", "http2", "tcp", "s tls-listener = { version = "0.7.0", features = ["rustls", "hyper-h2"] } rustls-pemfile = "1.0.1" tokio-rustls = "0.24.0" lambda_http = { version = "0.8.3" } lambda_http = { version = "0.8.4" } num_cpus = "1.13.1" parking_lot = "0.12.1" pin-project-lite = "0.2.14" Loading rust-runtime/aws-smithy-http-server/Cargo.toml +2 −2 Original line number Diff line number Diff line [package] name = "aws-smithy-http-server" version = "0.65.5" version = "0.65.6" authors = ["Smithy Rust Server <smithy-rs-server@amazon.com>"] edition = "2021" license = "Apache-2.0" Loading Loading @@ -29,7 +29,7 @@ futures-util = { version = "0.3.29", default-features = false } http = "0.2.9" http-body = "0.4.5" hyper = { version = "0.14.26", features = ["server", "http1", "http2", "tcp", "stream"] } lambda_http = { version = "0.8.3", optional = true } lambda_http = { version = "0.8.4", optional = true } mime = "0.3.17" nom = "7.1.3" pin-project-lite = "0.2.14" Loading Loading
aws/sdk/aws-models/s3-control.json +22438 −21537 File changed.Preview size limit exceeded, changes collapsed. Show changes
codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/serialize/XmlBindingTraitSerializerGenerator.kt +13 −3 Original line number Diff line number Diff line Loading @@ -336,7 +336,8 @@ class XmlBindingTraitSerializerGenerator( HttpLocation.DOCUMENT, TimestampFormatTrait.Format.DATE_TIME, model, ) val timestampFormatType = RuntimeType.parseTimestampFormat(codegenTarget, runtimeConfig, timestampFormat) val timestampFormatType = RuntimeType.parseTimestampFormat(codegenTarget, runtimeConfig, timestampFormat) rust("$input.fmt(#T)?.as_ref()", timestampFormatType) } Loading Loading @@ -455,12 +456,21 @@ class XmlBindingTraitSerializerGenerator( rust("let mut scope_writer = writer.finish();") rustBlock("match input") { val members = unionShape.members() members.forEach { member -> val memberShape = model.expectShape(member.target) val memberName = symbolProvider.toMemberName(member) val variantName = if (member.isTargetUnit()) { "${symbolProvider.toMemberName(member)}" "$memberName" } else if (memberShape.isStructureShape && memberShape.asStructureShape() .get().allMembers.isEmpty() ) { // Unit structs don't serialize inner, so it is never accessed "$memberName(_inner)" } else { "${symbolProvider.toMemberName(member)}(inner)" "$memberName(inner)" } withBlock("#T::$variantName =>", ",", unionSymbol) { serializeMember(member, Ctx.Scope("scope_writer", "inner")) Loading
gradle.properties +1 −1 Original line number Diff line number Diff line Loading @@ -18,4 +18,4 @@ allowLocalDeps=false isTestingEnabled=true # codegen publication version codegenVersion=0.1.0 codegenVersion=0.1.1
rust-runtime/aws-smithy-http-server-python/Cargo.toml +2 −2 Original line number Diff line number Diff line [package] name = "aws-smithy-http-server-python" version = "0.66.2" version = "0.66.3" authors = ["Smithy Rust Server <smithy-rs-server@amazon.com>"] edition = "2021" license = "Apache-2.0" Loading @@ -25,7 +25,7 @@ hyper = { version = "0.14.26", features = ["server", "http1", "http2", "tcp", "s tls-listener = { version = "0.7.0", features = ["rustls", "hyper-h2"] } rustls-pemfile = "1.0.1" tokio-rustls = "0.24.0" lambda_http = { version = "0.8.3" } lambda_http = { version = "0.8.4" } num_cpus = "1.13.1" parking_lot = "0.12.1" pin-project-lite = "0.2.14" Loading
rust-runtime/aws-smithy-http-server/Cargo.toml +2 −2 Original line number Diff line number Diff line [package] name = "aws-smithy-http-server" version = "0.65.5" version = "0.65.6" authors = ["Smithy Rust Server <smithy-rs-server@amazon.com>"] edition = "2021" license = "Apache-2.0" Loading Loading @@ -29,7 +29,7 @@ futures-util = { version = "0.3.29", default-features = false } http = "0.2.9" http-body = "0.4.5" hyper = { version = "0.14.26", features = ["server", "http1", "http2", "tcp", "stream"] } lambda_http = { version = "0.8.3", optional = true } lambda_http = { version = "0.8.4", optional = true } mime = "0.3.17" nom = "7.1.3" pin-project-lite = "0.2.14" Loading