You've already forked wit-bindgen
mirror of
https://github.com/AdaCore/wit-bindgen.git
synced 2026-02-12 13:12:42 -08:00
* C: Namespace types inside of annoymous types * Go generator should use c generator's name generation * Optionaly namespace inner types for all anonymous types * Test more
32 lines
694 B
Plaintext
32 lines
694 B
Plaintext
package local:demo
|
|
|
|
interface interface1 {
|
|
variant error {
|
|
some-error
|
|
}
|
|
record my-record {
|
|
some-field: u32
|
|
}
|
|
my-func: func() -> result<my-record, error>
|
|
my-optional: func() -> option<my-record>
|
|
my-tuple: func() -> tuple<my-record, error>
|
|
my-list: func() -> list<my-record>
|
|
}
|
|
|
|
interface interface2 {
|
|
variant error {
|
|
other-error
|
|
}
|
|
record my-record {
|
|
other-field: u32
|
|
}
|
|
my-func: func() -> result<my-record, error>
|
|
my-optional: func() -> option<my-record>
|
|
my-tuple: func() -> tuple<my-record, error>
|
|
my-list: func() -> list<my-record>
|
|
}
|
|
|
|
world my-world {
|
|
import interface1
|
|
import interface2
|
|
} |