Files
cli/vendor/wit-component/tests/components/import-only-resource-static-function/component.wat

31 lines
912 B
Plaintext

(component
(type $ty-foo:bar/x (;0;)
(instance
(export (;0;) "a" (type (sub resource)))
(type (;1;) (func))
(export (;0;) "[static]a.f" (func (type 1)))
)
)
(import "foo:bar/x" (instance $foo:bar/x (;0;) (type $ty-foo:bar/x)))
(core module $main (;0;)
(type (;0;) (func))
(import "foo:bar/x" "[static]a.f" (func (;0;) (type 0)))
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
(processed-by "my-fake-bindgen" "123.45")
)
)
(alias export $foo:bar/x "[static]a.f" (func $"[static]a.f" (;0;)))
(core func $"[static]a.f" (;0;) (canon lower (func $"[static]a.f")))
(core instance $foo:bar/x (;0;)
(export "[static]a.f" (func $"[static]a.f"))
)
(core instance $main (;1;) (instantiate $main
(with "foo:bar/x" (instance $foo:bar/x))
)
)
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)