diff --git a/CHANGELOG.next.toml b/CHANGELOG.next.toml index fc4c4c2578..3b1b94fedc 100644 --- a/CHANGELOG.next.toml +++ b/CHANGELOG.next.toml @@ -9,4 +9,10 @@ # message = "Fix typos in module documentation for generated crates" # references = ["smithy-rs#920"] # meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "client | server | all"} -# author = "rcoh" \ No newline at end of file +# author = "rcoh" + +[[rust-runtime]] +message = "Pokémon Service example code now runs clippy during build." +references = ["smithy-rs#1727"] +meta = { "breaking" = false, "tada" = false, "bug" = false } +author = "GeneralSwiss" diff --git a/rust-runtime/aws-smithy-http-server-python/examples/Makefile b/rust-runtime/aws-smithy-http-server-python/examples/Makefile index a44194721c..c3af9f378b 100644 --- a/rust-runtime/aws-smithy-http-server-python/examples/Makefile +++ b/rust-runtime/aws-smithy-http-server-python/examples/Makefile @@ -24,6 +24,9 @@ codegen: cp -av $(SERVER_SDK_SRC)/* $(SERVER_SDK_DST)/ cp -av $(CLIENT_SDK_SRC)/* $(CLIENT_SDK_DST)/ +clippy: codegen + cargo clippy + build: codegen cargo build ln -sf $(DEBUG_SHARED_LIBRARY_SRC) $(SHARED_LIBRARY_DST) diff --git a/rust-runtime/aws-smithy-http-server/examples/Makefile b/rust-runtime/aws-smithy-http-server/examples/Makefile index 28f49f2d5d..a31e805d8b 100644 --- a/rust-runtime/aws-smithy-http-server/examples/Makefile +++ b/rust-runtime/aws-smithy-http-server/examples/Makefile @@ -20,6 +20,12 @@ build: codegen run: codegen cargo run +clippy: codegen + cargo clippy + +test: codegen + cargo test + doc-open: codegen cargo doc --no-deps --open diff --git a/tools/ci-build/scripts/check-server-e2e-test b/tools/ci-build/scripts/check-server-e2e-test index 9a37b3aabc..8b17890724 100755 --- a/tools/ci-build/scripts/check-server-e2e-test +++ b/tools/ci-build/scripts/check-server-e2e-test @@ -6,5 +6,4 @@ set -eux cd smithy-rs/rust-runtime/aws-smithy-http-server/examples -make -cargo test +make test clippy diff --git a/tools/ci-build/scripts/check-server-python-e2e-test b/tools/ci-build/scripts/check-server-python-e2e-test index 9b55c6377e..fbaf9b0d67 100755 --- a/tools/ci-build/scripts/check-server-python-e2e-test +++ b/tools/ci-build/scripts/check-server-python-e2e-test @@ -6,4 +6,4 @@ set -eux cd smithy-rs/rust-runtime/aws-smithy-http-server-python/examples -make test +make test clippy