Skip to content

Emit Producers section when compiling to wasm #96334

Description

@mhmd-azeez

From the official Wasm tool conventions:

The purpose of the producers section is to provide an optional, highly-structured record of all the distinct tools that were used to produce a given WebAssembly module. A primary purpose of this record is to allow broad analysis of toolchain usage in the wild, which can help inform both wasm producers and consumers.

The producers section is a custom section and thus has no semantic effects and can be stripped at any time. Since the producers section is relatively small, tools are encouraged to emit the section or include themselves in an existing section by default, keeping the producers section even in release builds.

This allows tools like https://www.dylibso.com/products/modsurfer/ to identify the source language of a given wasm file.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Priority:3Work that is nice to havearch-wasmWebAssembly architecturearea-Build-monoin-prThere is an active PR which will close this issue when it is merged

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions