83 lines
2.4 KiB
Plaintext
83 lines
2.4 KiB
Plaintext
|
|
(component
|
||
|
|
(type (;0;)
|
||
|
|
(instance
|
||
|
|
(type (;0;) (record (field "a" u8)))
|
||
|
|
(export (;1;) "x" (type (eq 0)))
|
||
|
|
(type (;2;) (func (param "x" string)))
|
||
|
|
(export (;0;) "bar1" (func (type 2)))
|
||
|
|
(type (;3;) (func (param "x" 1)))
|
||
|
|
(export (;1;) "bar2" (func (type 3)))
|
||
|
|
)
|
||
|
|
)
|
||
|
|
(import "bar" (instance (;0;) (type 0)))
|
||
|
|
(core module (;0;)
|
||
|
|
(type (;0;) (func (param i32 i32)))
|
||
|
|
(type (;1;) (func (param i32)))
|
||
|
|
(type (;2;) (func (param i32 i32 i32 i32) (result i32)))
|
||
|
|
(import "bar" "bar1" (func (;0;) (type 0)))
|
||
|
|
(import "bar" "bar2" (func (;1;) (type 1)))
|
||
|
|
(func (;2;) (type 2) (param i32 i32 i32 i32) (result i32)
|
||
|
|
unreachable
|
||
|
|
)
|
||
|
|
(memory (;0;) 1)
|
||
|
|
(export "memory" (memory 0))
|
||
|
|
(export "cabi_realloc" (func 2))
|
||
|
|
(@producers
|
||
|
|
(processed-by "wit-component" "$CARGO_PKG_VERSION")
|
||
|
|
(processed-by "my-fake-bindgen" "123.45")
|
||
|
|
)
|
||
|
|
)
|
||
|
|
(core module (;1;)
|
||
|
|
(type (;0;) (func (param i32 i32)))
|
||
|
|
(func $indirect-bar-bar1 (;0;) (type 0) (param i32 i32)
|
||
|
|
local.get 0
|
||
|
|
local.get 1
|
||
|
|
i32.const 0
|
||
|
|
call_indirect (type 0)
|
||
|
|
)
|
||
|
|
(table (;0;) 1 1 funcref)
|
||
|
|
(export "0" (func $indirect-bar-bar1))
|
||
|
|
(export "$imports" (table 0))
|
||
|
|
(@producers
|
||
|
|
(processed-by "wit-component" "$CARGO_PKG_VERSION")
|
||
|
|
)
|
||
|
|
)
|
||
|
|
(core module (;2;)
|
||
|
|
(type (;0;) (func (param i32 i32)))
|
||
|
|
(import "" "0" (func (;0;) (type 0)))
|
||
|
|
(import "" "$imports" (table (;0;) 1 1 funcref))
|
||
|
|
(elem (;0;) (i32.const 0) func 0)
|
||
|
|
(@producers
|
||
|
|
(processed-by "wit-component" "$CARGO_PKG_VERSION")
|
||
|
|
)
|
||
|
|
)
|
||
|
|
(core instance (;0;) (instantiate 1))
|
||
|
|
(alias core export 0 "0" (core func (;0;)))
|
||
|
|
(alias export 0 "bar2" (func (;0;)))
|
||
|
|
(core func (;1;) (canon lower (func 0)))
|
||
|
|
(core instance (;1;)
|
||
|
|
(export "bar1" (func 0))
|
||
|
|
(export "bar2" (func 1))
|
||
|
|
)
|
||
|
|
(core instance (;2;) (instantiate 0
|
||
|
|
(with "bar" (instance 1))
|
||
|
|
)
|
||
|
|
)
|
||
|
|
(alias core export 2 "memory" (core memory (;0;)))
|
||
|
|
(alias core export 2 "cabi_realloc" (core func (;2;)))
|
||
|
|
(alias core export 0 "$imports" (core table (;0;)))
|
||
|
|
(alias export 0 "bar1" (func (;1;)))
|
||
|
|
(core func (;3;) (canon lower (func 1) (memory 0) string-encoding=utf8))
|
||
|
|
(core instance (;3;)
|
||
|
|
(export "$imports" (table 0))
|
||
|
|
(export "0" (func 3))
|
||
|
|
)
|
||
|
|
(core instance (;4;) (instantiate 2
|
||
|
|
(with "" (instance 3))
|
||
|
|
)
|
||
|
|
)
|
||
|
|
(@producers
|
||
|
|
(processed-by "wit-component" "$CARGO_PKG_VERSION")
|
||
|
|
)
|
||
|
|
)
|