Skip to content

wit-parser: relax unique extern name requirement between imports and exports #1396

Closed

Description

@peterhuene

Currently, wit-parser cannot parse this world:

package demo:greeter;

world greeter {
    import greet: func() -> string;
    export greet: func() -> string;
}

As it errors with:

1: export `greet` conflicts with prior import of same name
            -->greeter.wit:5:12
             |
           5 |     export greet: func() -> string;
             |            ^----

With WebAssembly/component-model#259 merged into the proposal, should wit-parser continue to enforce this restriction?

Do we generate export bindings into a separate logical "unit" in the supported languages already (for example, Rust uses an exports submodule for export bindings)?

Activity

  1. added a commit that references this issue on Feb 2, 2024
    c14f197
  2. added a commit that references this issue on Feb 5, 2024
    97b226f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions