smithy-rs icon indicating copy to clipboard operation
smithy-rs copied to clipboard

Bake prelude scope into `rustTemplate` and friends

Open david-perez opened this issue 1 year ago • 0 comments

We use *preludeScope in rustTemplate and friends. We write code like:

rustTemplate("#{Vec}::new()", *preludeScope)

I think that generating code in Kotlin should feel as similar as possible to directly writing Rust. It'd be nice to include the prelude scope in rustTemplate and friends by default.

david-perez avatar Nov 10 '23 13:11 david-perez