pchickey opened PR #10578 from bytecodealliance:pch/wit-bindgen-nfcs to bytecodealliance:main:
These changes to wasmtime-wit-bindgen make more functional versions of some of the imperative internal apis for printing datatypes and function types. This PR creates variants of a bunch of these internal functions that drops their
print_prefix and has them return String instead of append to self.src. This is probably worse for performance, but I assume it just doesn't matter for a code generator inside a proc macro.The existing imperative apis (those starting with
print_) still exist, except in the cases where they were dead code- that is, they were only used by other imperative code that was translated to the functional style.
pchickey requested dicej for a review on PR #10578.
pchickey requested wasmtime-core-reviewers for a review on PR #10578.
pchickey requested alexcrichton for a review on PR #10578.
pchickey requested wasmtime-core-reviewers for a review on PR #10578.
pchickey updated PR #10578.
alexcrichton submitted PR review.
pchickey updated PR #10578.
pchickey updated PR #10578.
pchickey merged PR #10578.
Last updated: Dec 06 2025 at 07:03 UTC