60 lines
2.1 KiB
Plaintext
60 lines
2.1 KiB
Plaintext
(component
|
|
(type $ty-foo:dep/the-name (;0;)
|
|
(instance
|
|
(type (;0;) (func))
|
|
(export (;0;) "a" (func (type 0)))
|
|
)
|
|
)
|
|
(import "foo:dep/the-name" (instance $foo:dep/the-name (;0;) (type $ty-foo:dep/the-name)))
|
|
(type $ty-foo:foo/the-name (;1;)
|
|
(instance
|
|
(type (;0;) (func))
|
|
(export (;0;) "a" (func (type 0)))
|
|
)
|
|
)
|
|
(import "foo:foo/the-name" (instance $foo:foo/the-name (;1;) (type $ty-foo:foo/the-name)))
|
|
(core module $main (;0;)
|
|
(type (;0;) (func))
|
|
(import "foo:dep/the-name" "a" (func (;0;) (type 0)))
|
|
(import "foo:foo/the-name" "a" (func (;1;) (type 0)))
|
|
(export "foo:foo/the-name#a" (func 2))
|
|
(func (;2;) (type 0))
|
|
(@producers
|
|
(processed-by "wit-component" "$CARGO_PKG_VERSION")
|
|
(processed-by "my-fake-bindgen" "123.45")
|
|
)
|
|
)
|
|
(alias export $foo:dep/the-name "a" (func $a (;0;)))
|
|
(core func $a (;0;) (canon lower (func $a)))
|
|
(core instance $foo:dep/the-name (;0;)
|
|
(export "a" (func $a))
|
|
)
|
|
(alias export $foo:foo/the-name "a" (func $"#func1 a" (@name "a") (;1;)))
|
|
(core func $"#core-func1 a" (@name "a") (;1;) (canon lower (func $"#func1 a")))
|
|
(core instance $foo:foo/the-name (;1;)
|
|
(export "a" (func $"#core-func1 a"))
|
|
)
|
|
(core instance $main (;2;) (instantiate $main
|
|
(with "foo:dep/the-name" (instance $foo:dep/the-name))
|
|
(with "foo:foo/the-name" (instance $foo:foo/the-name))
|
|
)
|
|
)
|
|
(type (;2;) (func))
|
|
(alias core export $main "foo:foo/the-name#a" (core func $foo:foo/the-name#a (;2;)))
|
|
(func $"#func2 a" (@name "a") (;2;) (type 2) (canon lift (core func $foo:foo/the-name#a)))
|
|
(component $foo:foo/the-name-shim-component (;0;)
|
|
(type (;0;) (func))
|
|
(import "import-func-a" (func (;0;) (type 0)))
|
|
(type (;1;) (func))
|
|
(export (;1;) "a" (func 0) (func (type 1)))
|
|
)
|
|
(instance $foo:foo/the-name-shim-instance (;2;) (instantiate $foo:foo/the-name-shim-component
|
|
(with "import-func-a" (func $"#func2 a"))
|
|
)
|
|
)
|
|
(export $"#instance3 foo:foo/the-name" (@name "foo:foo/the-name") (;3;) "foo:foo/the-name" (instance $foo:foo/the-name-shim-instance))
|
|
(@producers
|
|
(processed-by "wit-component" "$CARGO_PKG_VERSION")
|
|
)
|
|
)
|