Is the (apparent) duplication between wit_component::WitPrinter and wit_encoder intentional?
it is yeah, sort of reflecting the historical development trends too
they input is somewhat different where WitPrinter takes a Resolve while wit_encoder takes programmatic API-based input from callers (which may or may not be Resolve)
I see; so in theory it might be nice to deduplicate the two but it would require some major refactor or gnarly AST transform?
Context is https://github.com/bytecodealliance/wasm-pkg-tools/issues/172
Well I guess the context is I'm debugging that and got side-tracked
yeah lots of refactoring would be required
Last updated: Dec 06 2025 at 06:05 UTC