35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
(component
|
|
(type $ty-a:b/name (;0;)
|
|
(instance
|
|
(type (;0;) (list string))
|
|
(type (;1;) (variant (case "strs" 0)))
|
|
(export (;2;) "name" (type (eq 1)))
|
|
)
|
|
)
|
|
(import "a:b/name" (instance $a:b/name (;0;) (type $ty-a:b/name)))
|
|
(alias export $a:b/name "name" (type $name (;1;)))
|
|
(import "name" (type $"#type2 name" (@name "name") (;2;) (eq $name)))
|
|
(core module $main (;0;)
|
|
(@producers
|
|
(processed-by "wit-component" "$CARGO_PKG_VERSION")
|
|
(processed-by "my-fake-bindgen" "123.45")
|
|
)
|
|
)
|
|
(type (;3;) (list string))
|
|
(type (;4;) (variant (case "num" u16) (case "strs" 3)))
|
|
(type (;5;) (variant (case "strs" 3)))
|
|
(core instance $main (;0;) (instantiate $main))
|
|
(component $a:b/name-shim-component (;0;)
|
|
(type (;0;) (list string))
|
|
(type (;1;) (variant (case "num" u16) (case "strs" 0)))
|
|
(export (;2;) "name2" (type 1))
|
|
(type (;3;) (variant (case "strs" 0)))
|
|
(export (;4;) "name" (type 3))
|
|
)
|
|
(instance $a:b/name-shim-instance (;1;) (instantiate $a:b/name-shim-component))
|
|
(export $"#instance2 a:b/name" (@name "a:b/name") (;2;) "a:b/name" (instance $a:b/name-shim-instance))
|
|
(@producers
|
|
(processed-by "wit-component" "$CARGO_PKG_VERSION")
|
|
)
|
|
)
|