moonbit-docs icon indicating copy to clipboard operation
moonbit-docs copied to clipboard

Add producers section to binaries

Open guybedford opened this issue 6 months ago • 2 comments

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.

guybedford avatar Jul 07 '25 16:07 guybedford

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.

guybedford avatar Jul 22 '25 23:07 guybedford

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.

peter-jerry-ye avatar Jul 23 '25 02:07 peter-jerry-ye