smithy-rs
smithy-rs copied to clipboard
Deny warnings in generated crates
We already --deny warnings
in:
- integration tests (crates generated by the
codegen-{core,client,server}-test
Gradle subprojects), -
{client,server}IntegrationTest
s; and -
RustWriter.compileAndTest
, via theRUSTFLAGS
we bake in the CI Docker image (note though that we should delete usages ofRustWriter.compileAndTest
https://github.com/smithy-lang/smithy-rs/issues/3193).
However, we do not deny warnings in TestWriterDelegator.compileAndTest
; we generate crates with tests that have warnings.
It seems worthwhile to modify the tests so that they don't generate warnings to be consistent across the board. If a test can't be modified so as not to emit warnings, that specific test should opt-in into allowing warnings.