bytecodealliance / wit-bindgen

A language binding generator for WebAssembly interface types
Apache License 2.0
997 stars 190 forks source link

Use stderr for diagnostics #1032

Closed joonas closed 1 month ago

joonas commented 1 month ago

I would like to propose switching the diagnostics output (i.e. which file is being generated) to be sent to stderr instead of stdout.

This would have the benefit of making it any other programs that embed wit-bindgen not have to worry about redirecting the diagnostics output to stderr instead so as to prevent their own program output from including things from wit-bindgen unless they explicitly choose to do so by including them from stderr.