Unverified Commit 8e81a3e0 authored by Russell Cohen's avatar Russell Cohen Committed by GitHub
Browse files

Rename generated crates to aws-sdk-* (#302)

* Rename generated crates to aws-sdk-*

* Don't use module name as service name for metadata

* Add module authors to protocol test builds

* Couple more fixes

* Fix module authors field

* Update dependency
parent 908dec55
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ fn generate_build_vars(output_path: &Path) {
    let mut f = File::create(&output_path.join("build_env.rs"))
        .expect("Could not create build environment");
    f.write_all(format!("static RUST_VERSION: &str = \"{}\";", rust_version).as_bytes())
        .expect("Unable to write user agent");
        .expect("Unable to write rust version");
}

fn main() {
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ fun generateSmithyBuild(tests: List<CodegenTest>): String {
                      },
                      "service": "${it.service}",
                      "module": "${it.module}",
                      "moduleAuthors": ["protocoltest@example.com"],
                      "moduleVersion": "0.0.1",
                      "build": {
                        "rootProject": true
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ import software.amazon.smithy.rust.codegen.smithy.generators.LibRsSection
import software.amazon.smithy.rust.codegen.smithy.generators.ProtocolConfig
import software.amazon.smithy.rust.codegen.smithy.letIf

val TestedServices = setOf("kms", "dynamodb")
val TestedServices = setOf("aws-sdk-kms", "aws-sdk-dynamodb")

class IntegrationTestDecorator : RustCodegenDecorator {
    override val name: String = "IntegrationTest"
+2 −1
Original line number Diff line number Diff line
@@ -69,8 +69,9 @@ fun generateSmithyBuild(tests: List<AwsService>): String {
                        "relativePath": "../"
                      },
                      "service": "${it.service}",
                      "module": "${it.module}",
                      "module": "aws-sdk-${it.module}",
                      "moduleVersion": "0.0.2",
                      "moduleAuthors": ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"],
                      "license": "Apache-2.0",
                      "build": {
                        "rootProject": true
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
dynamodb = { path = "../../build/aws-sdk/dynamodb", features = ["client"] }
dynamodb = { package = "aws-sdk-dynamodb", path = "../../build/aws-sdk/dynamodb", features = ["client"] }
tokio = { version = "1", features = ["full"] }

# used only for static endpoint configuration:
Loading