rustc/vendor/wit-component-0.219.1/tests/interfaces/pkg-use-chain2.wat
2025-01-11 15:57:26 +01:00

71 lines
1.8 KiB
Plaintext

(component
(type (;0;)
(component
(type (;0;)
(instance
(type (;0;) (record (field "f" u8)))
(export (;1;) "name" (type (eq 0)))
)
)
(export (;0;) "foo:foo/other" (instance (type 0)))
)
)
(export (;1;) "other" (type 0))
(type (;2;)
(component
(type (;0;)
(instance
(type (;0;) (record (field "f" u8)))
(export (;1;) "name" (type (eq 0)))
)
)
(import "foo:foo/other" (instance (;0;) (type 0)))
(alias export 0 "name" (type (;1;)))
(type (;2;)
(instance
(alias outer 1 1 (type (;0;)))
(export (;1;) "the-name" (type (eq 0)))
(type (;2;) (enum "a"))
(export (;3;) "name" (type (eq 2)))
)
)
(export (;1;) "foo:foo/bar" (instance (type 2)))
)
)
(export (;3;) "bar" (type 2))
(type (;4;)
(component
(type (;0;)
(instance
(type (;0;) (record (field "f" u8)))
(export (;1;) "name" (type (eq 0)))
)
)
(import "foo:foo/other" (instance (;0;) (type 0)))
(alias export 0 "name" (type (;1;)))
(type (;2;)
(instance
(alias outer 1 1 (type (;0;)))
(export (;1;) "the-name" (type (eq 0)))
(type (;2;) (enum "a"))
(export (;3;) "name" (type (eq 2)))
)
)
(import "foo:foo/bar" (instance (;1;) (type 2)))
(alias export 1 "the-name" (type (;3;)))
(type (;4;)
(instance
(alias outer 1 3 (type (;0;)))
(export (;1;) "the-name" (type (eq 0)))
)
)
(export (;2;) "foo:foo/foo" (instance (type 4)))
)
)
(export (;5;) "foo" (type 4))
(@custom "package-docs" "\00{}")
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)