Add producers section to binaries
Feature Request
Summary
Add producers custom section to moonbit Wasm binaries.
Motivation
This can be useful for obtaining information about a Wasm binary in a standard way when assessing usage metrics etc.
Detailed Description
WebAssembly toolchains support a standardized producers custom section (https://github.com/WebAssembly/tool-conventions/blob/main/ProducersSection.md), which can be used by toolchains to include their compiler name and version.
Related Issues
None found
Checklist
- [x] I have added all necessary details to make it easy for the maintainers to understand my request.
Just noticed this was moved to the docs repo. Since this is a compiler / toolchain feature, curious why that is the case? Would very much love to see this for building adoption metrics.
It is a compiler feature, since the compiler produces the wasm directly. And this is the repo where we collect the issues around the compiler, since the actual development process happens elsewhere. As you can see a lot of internal compiler issues are all in this repository. I admit it might be a bit confusing.
I think we can add it once we have some spare bandwidth.