Skip to content

Feature Request: Add the ability to add user defined Custom Sections to wasm modules. #2351

@davidmdm

Description

@davidmdm

Problem

Not all language toolchains and ecosystems offer consistent or complete support for WASM custom sections during compilation. The lack of standard compiler support for readily embedding user-defined metadata into a module's custom section limits the ability of users to attach essential data for post-processing, tooling, or runtime use. This limitation necessitates an external, dedicated utility to manage this metadata.

Feature Proposal

Add a new command, or a set of subcommands under an existing utility (e.g., wasm-tools custom-section or under mutations), to enable users to manage a WASM module's custom sections.

  • add/edit: Insert a new custom section or replace the contents of an existing custom section by name.
  • remove: Delete a specified custom section by name.
  • list: Display the names and associated data sizes of all custom sections within a module.

History

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions