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