From c2c9086fff2f5667f0fb8947852e43b6b349c897 Mon Sep 17 00:00:00 2001 From: John DiSanti Date: Thu, 16 Nov 2023 13:35:18 -0800 Subject: [PATCH 1/4] Only output dev preview warning messages for 0.x versions --- aws/SDK_README.md.hb | 11 +- .../smithy/rustsdk/AwsCrateDocsDecorator.kt | 21 ++- .../test/kotlin/AwsCrateDocsDecoratorTest.kt | 53 ++++++ .../test/kotlin/SdkCodegenIntegrationTest.kt | 53 ++++++ .../amazon/smithy/rustsdk/TestUtil.kt | 1 + .../core/testutil/CodegenIntegrationTest.kt | 2 + .../smithy/rust/codegen/core/testutil/Rust.kt | 3 +- .../src/subcommand/hydrate_readme.rs | 168 +++++++++++++++++- 8 files changed, 291 insertions(+), 21 deletions(-) diff --git a/aws/SDK_README.md.hb b/aws/SDK_README.md.hb index cf0897c35b..09fa2ae5cf 100644 --- a/aws/SDK_README.md.hb +++ b/aws/SDK_README.md.hb @@ -5,6 +5,7 @@ It gets instantiated and copied into the build artifacts by the `aws:sdk:assembl Available template arguments: - `{{sdk_version_}}` (e.g., `{{sdk_version_aws_config}}` for the `aws-config` crate): the version number of the given crate (just the number, no `v` prefix) - `{{msrv}}`: The MSRV Rust compiler version (just the number, no `v` prefix) +- `{{warning_banner}}`: Show the production warning banner --}}