Skip to content

wit: Comments in deps don't round-trip through binary encoding #2571

Description

@lann
$ find . -type f
./root.wit
./deps/dep.wit
$ wasm-tools component wit .
package pkg:root;

/// Root comment
world w {
  import pkg:dep/iface;
}
package pkg:dep {
  interface iface {
    /// Dep comment
    f: func();
  }
}
$ wasm-tools component wit . --wasm | wasm-tools component wit
package pkg:root;

/// Root comment
world w {
  import pkg:dep/iface;
}
package pkg:dep {
  interface iface {
    f: func();
  }
}

Note /// Dep comment present in the WIT is missing when round-tripped with --wasm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    witrelated to the `*.wit` text formatwit-parserIssues for the `wit-parser` crate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions