Remove RustCrateInlineModuleComposingWriter.kt
#2456
Labels
high-priority
High priority issue
refactoring
Changes that do not affect our users, mostly focused on maintainability
server
Rust server SDK
In #2256, we introduced
RustCrateInlineModuleComposingWriter.kt
, containing utilities to render code in the same Rust module from different callsites in the code generator. This was done to enable constraint trait precedence, to render member shapes in the same module where the builder for the structure shape is hosted, all in the samemodel.rs
file:Yields in
model.rs
:In retrospect, this has had rippling effects throughout the codebase that make it more difficult to maintain. We could have dispensed with
RustCrateInlineModuleComposingWriter
, and it would have been simpler if we had just rendered each module in separate files:model.rs
:a.rs
:b.rs
:This issue tracks the work needed to remove
RustCrateInlineModuleComposingWriter
. Note that now builders will go in abuilders
module as per #2455, so when tackling this issue one should keep that in mind.The text was updated successfully, but these errors were encountered: