Loading codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/protocol/ProtocolGenerator.kt +0 −16 Original line number Diff line number Diff line Loading @@ -8,9 +8,7 @@ package software.amazon.smithy.rust.codegen.smithy.generators.protocol import software.amazon.smithy.model.shapes.OperationShape import software.amazon.smithy.model.shapes.StructureShape import software.amazon.smithy.rust.codegen.rustlang.Attribute import software.amazon.smithy.rust.codegen.rustlang.CargoDependency import software.amazon.smithy.rust.codegen.rustlang.RustWriter import software.amazon.smithy.rust.codegen.rustlang.asType import software.amazon.smithy.rust.codegen.rustlang.docLink import software.amazon.smithy.rust.codegen.rustlang.rust import software.amazon.smithy.rust.codegen.rustlang.rustBlock Loading @@ -22,7 +20,6 @@ import software.amazon.smithy.rust.codegen.smithy.customize.writeCustomizations import software.amazon.smithy.rust.codegen.smithy.generators.BuilderGenerator import software.amazon.smithy.rust.codegen.smithy.generators.client.FluentClientGenerator import software.amazon.smithy.rust.codegen.smithy.generators.implBlock import software.amazon.smithy.rust.codegen.smithy.generators.operationBuildError import software.amazon.smithy.rust.codegen.smithy.protocols.Protocol import software.amazon.smithy.rust.codegen.util.inputShape Loading Loading @@ -98,22 +95,9 @@ open class ProtocolGenerator( */ private val traitGenerator: ProtocolTraitImplGenerator, ) { private val runtimeConfig = codegenContext.runtimeConfig private val symbolProvider = codegenContext.symbolProvider private val model = codegenContext.model private val codegenScope = arrayOf( "HttpRequestBuilder" to RuntimeType.HttpRequestBuilder, "OpBuildError" to codegenContext.runtimeConfig.operationBuildError(), "Request" to RuntimeType.Http("request::Request"), "RequestBuilder" to RuntimeType.HttpRequestBuilder, "SdkBody" to RuntimeType.sdkBody(codegenContext.runtimeConfig), "config" to RuntimeType.Config, "header_util" to CargoDependency.SmithyHttp(codegenContext.runtimeConfig).asType().member("header"), "http" to RuntimeType.http, "operation" to RuntimeType.operationModule(runtimeConfig), ) /** * Render all code required for serializing requests and deserializing responses for the operation * Loading Loading
codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/protocol/ProtocolGenerator.kt +0 −16 Original line number Diff line number Diff line Loading @@ -8,9 +8,7 @@ package software.amazon.smithy.rust.codegen.smithy.generators.protocol import software.amazon.smithy.model.shapes.OperationShape import software.amazon.smithy.model.shapes.StructureShape import software.amazon.smithy.rust.codegen.rustlang.Attribute import software.amazon.smithy.rust.codegen.rustlang.CargoDependency import software.amazon.smithy.rust.codegen.rustlang.RustWriter import software.amazon.smithy.rust.codegen.rustlang.asType import software.amazon.smithy.rust.codegen.rustlang.docLink import software.amazon.smithy.rust.codegen.rustlang.rust import software.amazon.smithy.rust.codegen.rustlang.rustBlock Loading @@ -22,7 +20,6 @@ import software.amazon.smithy.rust.codegen.smithy.customize.writeCustomizations import software.amazon.smithy.rust.codegen.smithy.generators.BuilderGenerator import software.amazon.smithy.rust.codegen.smithy.generators.client.FluentClientGenerator import software.amazon.smithy.rust.codegen.smithy.generators.implBlock import software.amazon.smithy.rust.codegen.smithy.generators.operationBuildError import software.amazon.smithy.rust.codegen.smithy.protocols.Protocol import software.amazon.smithy.rust.codegen.util.inputShape Loading Loading @@ -98,22 +95,9 @@ open class ProtocolGenerator( */ private val traitGenerator: ProtocolTraitImplGenerator, ) { private val runtimeConfig = codegenContext.runtimeConfig private val symbolProvider = codegenContext.symbolProvider private val model = codegenContext.model private val codegenScope = arrayOf( "HttpRequestBuilder" to RuntimeType.HttpRequestBuilder, "OpBuildError" to codegenContext.runtimeConfig.operationBuildError(), "Request" to RuntimeType.Http("request::Request"), "RequestBuilder" to RuntimeType.HttpRequestBuilder, "SdkBody" to RuntimeType.sdkBody(codegenContext.runtimeConfig), "config" to RuntimeType.Config, "header_util" to CargoDependency.SmithyHttp(codegenContext.runtimeConfig).asType().member("header"), "http" to RuntimeType.http, "operation" to RuntimeType.operationModule(runtimeConfig), ) /** * Render all code required for serializing requests and deserializing responses for the operation * Loading