You've already forked wit-bindgen
mirror of
https://github.com/AdaCore/wit-bindgen.git
synced 2026-02-12 13:12:42 -08:00
* Update Rust codegen for new WIT changes * Update the markdown generation for new WIT * more-rust * Update the C generator for new WIT * Get Rust guest tests compiling * Get rust host tests working * Get all C tests passing * Turn off teavm-java and Go tests for now * Fixup lockfile after rebase * Bump crate versions * Update dependency sources * Update to wasmtime dep
41 lines
801 B
Plaintext
41 lines
801 B
Plaintext
// hello 🐱 world
|
|
|
|
package foo:foo
|
|
|
|
interface conventions {
|
|
kebab-case: func()
|
|
|
|
record ludicrous-speed {
|
|
how-fast-are-you-going: u32,
|
|
i-am-going-extremely-slow: u64,
|
|
}
|
|
|
|
foo: func(x: ludicrous-speed)
|
|
%function-with-dashes: func()
|
|
%function-with-no-weird-characters: func()
|
|
|
|
apple: func()
|
|
apple-pear: func()
|
|
apple-pear-grape: func()
|
|
a0: func()
|
|
|
|
// Comment out identifiers that collide when mapped to snake_case, for now; see
|
|
// https://github.com/WebAssembly/component-model/issues/118
|
|
//APPLE: func()
|
|
//APPLE-pear-GRAPE: func()
|
|
//apple-PEAR-grape: func()
|
|
|
|
is-XML: func()
|
|
|
|
%explicit: func()
|
|
%explicit-kebab: func()
|
|
|
|
// Identifiers with the same name as keywords are quoted.
|
|
%bool: func()
|
|
}
|
|
|
|
world the-world {
|
|
import conventions
|
|
export conventions
|
|
}
|