feat: add a histrical wit-bindgen
This commit is contained in:
@@ -0,0 +1,161 @@
|
||||
(component
|
||||
(type (;0;) (func))
|
||||
(type (;1;) (list string))
|
||||
(type (;2;) (func (param "x" 1)))
|
||||
(type (;3;) (record (field "s" string)))
|
||||
(type (;4;) (func (param "x" 3)))
|
||||
(type (;5;) (variant (case $c0 "s" string)))
|
||||
(type (;6;) (func (param "x" 5)))
|
||||
(type (;7;) (record (field "s" u32)))
|
||||
(type (;8;) (func (param "x" 7)))
|
||||
(type (;9;) (variant (case $c0 "s" u32)))
|
||||
(type (;10;) (func (param "x" 9)))
|
||||
(type (;11;) (list 3))
|
||||
(type (;12;) (func (param "x" 11)))
|
||||
(type (;13;) (list 5))
|
||||
(type (;14;) (func (param "x" 13)))
|
||||
(type (;15;) (list u32))
|
||||
(type (;16;) (func (param "x" 15)))
|
||||
(type (;17;) (func (param "x" u32)))
|
||||
(type (;18;) (tuple u32 u32))
|
||||
(type (;19;) (func (result 18)))
|
||||
(type (;20;) (func (result string)))
|
||||
(type (;21;) (func (result 15)))
|
||||
(type (;22;) (func (result u32)))
|
||||
(type (;23;) (func (result 5)))
|
||||
(type (;24;) (list 9))
|
||||
(type (;25;) (func (result 24)))
|
||||
(export "r" (type 3))
|
||||
(export "v" (type 5))
|
||||
(export "r-no-string" (type 7))
|
||||
(export "v-no-string" (type 9))
|
||||
(core module (;0;)
|
||||
(type (;0;) (func (param i32 i32 i32 i32) (result i32)))
|
||||
(type (;1;) (func))
|
||||
(type (;2;) (func (param i32 i32)))
|
||||
(type (;3;) (func (param i32 i32 i32)))
|
||||
(type (;4;) (func (param i32)))
|
||||
(type (;5;) (func (result i32)))
|
||||
(func (;0;) (type 0) (param i32 i32 i32 i32) (result i32)
|
||||
unreachable
|
||||
)
|
||||
(func (;1;) (type 1)
|
||||
unreachable
|
||||
)
|
||||
(func (;2;) (type 2) (param i32 i32)
|
||||
unreachable
|
||||
)
|
||||
(func (;3;) (type 2) (param i32 i32)
|
||||
unreachable
|
||||
)
|
||||
(func (;4;) (type 3) (param i32 i32 i32)
|
||||
unreachable
|
||||
)
|
||||
(func (;5;) (type 4) (param i32)
|
||||
unreachable
|
||||
)
|
||||
(func (;6;) (type 2) (param i32 i32)
|
||||
unreachable
|
||||
)
|
||||
(func (;7;) (type 2) (param i32 i32)
|
||||
unreachable
|
||||
)
|
||||
(func (;8;) (type 2) (param i32 i32)
|
||||
unreachable
|
||||
)
|
||||
(func (;9;) (type 2) (param i32 i32)
|
||||
unreachable
|
||||
)
|
||||
(func (;10;) (type 4) (param i32)
|
||||
unreachable
|
||||
)
|
||||
(func (;11;) (type 5) (result i32)
|
||||
unreachable
|
||||
)
|
||||
(func (;12;) (type 5) (result i32)
|
||||
unreachable
|
||||
)
|
||||
(func (;13;) (type 5) (result i32)
|
||||
unreachable
|
||||
)
|
||||
(func (;14;) (type 5) (result i32)
|
||||
unreachable
|
||||
)
|
||||
(func (;15;) (type 5) (result i32)
|
||||
unreachable
|
||||
)
|
||||
(func (;16;) (type 5) (result i32)
|
||||
unreachable
|
||||
)
|
||||
(memory (;0;) 1)
|
||||
(export "memory" (memory 0))
|
||||
(export "canonical_abi_realloc" (func 0))
|
||||
(export "a" (func 1))
|
||||
(export "b" (func 2))
|
||||
(export "c" (func 3))
|
||||
(export "d" (func 4))
|
||||
(export "e" (func 5))
|
||||
(export "f" (func 6))
|
||||
(export "g" (func 7))
|
||||
(export "h" (func 8))
|
||||
(export "i" (func 9))
|
||||
(export "j" (func 10))
|
||||
(export "k" (func 11))
|
||||
(export "l" (func 12))
|
||||
(export "m" (func 13))
|
||||
(export "n" (func 14))
|
||||
(export "o" (func 15))
|
||||
(export "p" (func 16))
|
||||
)
|
||||
(core instance (;0;) (instantiate 0))
|
||||
(core alias export 0 "memory" (memory (;0;)))
|
||||
(core alias export 0 "canonical_abi_realloc" (func (;0;)))
|
||||
(core alias export 0 "a" (func (;1;)))
|
||||
(core alias export 0 "b" (func (;2;)))
|
||||
(core alias export 0 "c" (func (;3;)))
|
||||
(core alias export 0 "d" (func (;4;)))
|
||||
(core alias export 0 "e" (func (;5;)))
|
||||
(core alias export 0 "f" (func (;6;)))
|
||||
(core alias export 0 "g" (func (;7;)))
|
||||
(core alias export 0 "h" (func (;8;)))
|
||||
(core alias export 0 "i" (func (;9;)))
|
||||
(core alias export 0 "j" (func (;10;)))
|
||||
(core alias export 0 "k" (func (;11;)))
|
||||
(core alias export 0 "l" (func (;12;)))
|
||||
(core alias export 0 "m" (func (;13;)))
|
||||
(core alias export 0 "n" (func (;14;)))
|
||||
(core alias export 0 "o" (func (;15;)))
|
||||
(core alias export 0 "p" (func (;16;)))
|
||||
(func (;0;) (type 0) (canon lift (core func 1)))
|
||||
(func (;1;) (type 2) (canon lift (core func 2) (memory 0) (realloc 0) string-encoding=utf8))
|
||||
(func (;2;) (type 4) (canon lift (core func 3) (memory 0) (realloc 0) string-encoding=utf8))
|
||||
(func (;3;) (type 6) (canon lift (core func 4) (memory 0) (realloc 0) string-encoding=utf8))
|
||||
(func (;4;) (type 8) (canon lift (core func 5)))
|
||||
(func (;5;) (type 10) (canon lift (core func 6)))
|
||||
(func (;6;) (type 12) (canon lift (core func 7) (memory 0) (realloc 0) string-encoding=utf8))
|
||||
(func (;7;) (type 14) (canon lift (core func 8) (memory 0) (realloc 0) string-encoding=utf8))
|
||||
(func (;8;) (type 16) (canon lift (core func 9) (memory 0) (realloc 0)))
|
||||
(func (;9;) (type 17) (canon lift (core func 10)))
|
||||
(func (;10;) (type 19) (canon lift (core func 11) (memory 0)))
|
||||
(func (;11;) (type 20) (canon lift (core func 12) (memory 0) (realloc 0) string-encoding=utf8))
|
||||
(func (;12;) (type 21) (canon lift (core func 13) (memory 0) (realloc 0)))
|
||||
(func (;13;) (type 22) (canon lift (core func 14)))
|
||||
(func (;14;) (type 23) (canon lift (core func 15) (memory 0) (realloc 0) string-encoding=utf8))
|
||||
(func (;15;) (type 25) (canon lift (core func 16) (memory 0) (realloc 0)))
|
||||
(export "a" (func 0))
|
||||
(export "b" (func 1))
|
||||
(export "c" (func 2))
|
||||
(export "d" (func 3))
|
||||
(export "e" (func 4))
|
||||
(export "f" (func 5))
|
||||
(export "g" (func 6))
|
||||
(export "h" (func 7))
|
||||
(export "i" (func 8))
|
||||
(export "j" (func 9))
|
||||
(export "k" (func 10))
|
||||
(export "l" (func 11))
|
||||
(export "m" (func 12))
|
||||
(export "n" (func 13))
|
||||
(export "o" (func 14))
|
||||
(export "p" (func 15))
|
||||
)
|
||||
@@ -0,0 +1,32 @@
|
||||
record r {
|
||||
s: string
|
||||
}
|
||||
|
||||
record r-no-string {
|
||||
s: u32
|
||||
}
|
||||
|
||||
variant v {
|
||||
s(string)
|
||||
}
|
||||
|
||||
variant v-no-string {
|
||||
s(u32)
|
||||
}
|
||||
|
||||
a: func()
|
||||
b: func(x: list<string>)
|
||||
c: func(x: r)
|
||||
d: func(x: v)
|
||||
e: func(x: r-no-string)
|
||||
f: func(x: v-no-string)
|
||||
g: func(x: list<r>)
|
||||
h: func(x: list<v>)
|
||||
i: func(x: list<u32>)
|
||||
j: func(x: u32)
|
||||
k: func() -> tuple<u32, u32>
|
||||
l: func() -> string
|
||||
m: func() -> list<u32>
|
||||
n: func() -> u32
|
||||
o: func() -> v
|
||||
p: func() -> list<v-no-string>
|
||||
@@ -0,0 +1,20 @@
|
||||
(module
|
||||
(memory (export "memory") 1)
|
||||
(func (export "canonical_abi_realloc") (param i32 i32 i32 i32) (result i32) unreachable)
|
||||
(func (export "a") unreachable)
|
||||
(func (export "b") (param i32 i32) unreachable)
|
||||
(func (export "c") (param i32 i32) unreachable)
|
||||
(func (export "d") (param i32 i32 i32) unreachable)
|
||||
(func (export "e") (param i32) unreachable)
|
||||
(func (export "f") (param i32 i32) unreachable)
|
||||
(func (export "g") (param i32 i32) unreachable)
|
||||
(func (export "h") (param i32 i32) unreachable)
|
||||
(func (export "i") (param i32 i32) unreachable)
|
||||
(func (export "j") (param i32) unreachable)
|
||||
(func (export "k") (result i32) unreachable)
|
||||
(func (export "l") (result i32) unreachable)
|
||||
(func (export "m") (result i32) unreachable)
|
||||
(func (export "n") (result i32) unreachable)
|
||||
(func (export "o") (result i32) unreachable)
|
||||
(func (export "p") (result i32) unreachable)
|
||||
)
|
||||
Reference in New Issue
Block a user