Skip to content

Package namespaces and package names are not generatable in combination #1224

Open
@cleanerx

Description

@cleanerx

Looking at the wit-syntax the following is supported

package-decl ::= 'package' ( id ':' )+ id ( '/' id )* ('@' valid-semver)? ';'

Using it

package com:mydomain/tree/leaf;

interface foo {

record stat {
  ino: u64,
  size: u64,
}

}

world x {
export foo;
}

Generating fails with
tool@6fddbba60b7a:/workspaces/test_wit# wit-bindgen rust my_interface.wit
Error: expected '{', found /
--> my_interface.wit:1:21
|
1 | package com:mydomain/tree/leaf;
| ^

I think this should be supported

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