|
| 1 | +(component |
| 2 | + (type (;0;) |
| 3 | + (component |
| 4 | + (type (;0;) |
| 5 | + (instance |
| 6 | + (type (;0;) (option string)) |
| 7 | + (type (;1;) (func (param "key" string) (result 0))) |
| 8 | + (export (;0;) "get" (func (type 1))) |
| 9 | + (type (;2;) (func (param "key" string) (param "value" string))) |
| 10 | + (export (;1;) "set" (func (type 2))) |
| 11 | + ) |
| 12 | + ) |
| 13 | + (export (;0;) "foo:foo/store" (instance (type 0))) |
| 14 | + ) |
| 15 | + ) |
| 16 | + (export (;1;) "store" (type 0)) |
| 17 | + (type (;2;) |
| 18 | + (component |
| 19 | + (type (;0;) |
| 20 | + (instance |
| 21 | + (type (;0;) (func (param "msg" string))) |
| 22 | + (export (;0;) "log" (func (type 0))) |
| 23 | + ) |
| 24 | + ) |
| 25 | + (export (;0;) "foo:foo/logger" (instance (type 0))) |
| 26 | + ) |
| 27 | + ) |
| 28 | + (export (;3;) "logger" (type 2)) |
| 29 | + (type (;4;) |
| 30 | + (component |
| 31 | + (type (;0;) |
| 32 | + (component |
| 33 | + (type (;0;) |
| 34 | + (instance |
| 35 | + (type (;0;) (option string)) |
| 36 | + (type (;1;) (func (param "key" string) (result 0))) |
| 37 | + (export (;0;) "get" (func (type 1))) |
| 38 | + (type (;2;) (func (param "key" string) (param "value" string))) |
| 39 | + (export (;1;) "set" (func (type 2))) |
| 40 | + ) |
| 41 | + ) |
| 42 | + (import "[implements=<foo:foo/store>]primary" (instance (;0;) (type 0))) |
| 43 | + (type (;1;) |
| 44 | + (instance |
| 45 | + (type (;0;) (option string)) |
| 46 | + (type (;1;) (func (param "key" string) (result 0))) |
| 47 | + (export (;0;) "get" (func (type 1))) |
| 48 | + (type (;2;) (func (param "key" string) (param "value" string))) |
| 49 | + (export (;1;) "set" (func (type 2))) |
| 50 | + ) |
| 51 | + ) |
| 52 | + (import "[implements=<foo:foo/store>]backup" (instance (;1;) (type 1))) |
| 53 | + (type (;2;) |
| 54 | + (instance |
| 55 | + (type (;0;) (func (param "msg" string))) |
| 56 | + (export (;0;) "log" (func (type 0))) |
| 57 | + ) |
| 58 | + ) |
| 59 | + (import "foo:foo/logger" (instance (;2;) (type 2))) |
| 60 | + ) |
| 61 | + ) |
| 62 | + (export (;0;) "foo:foo/multi-import" (component (type 0))) |
| 63 | + ) |
| 64 | + ) |
| 65 | + (export (;5;) "multi-import" (type 4)) |
| 66 | + (type (;6;) |
| 67 | + (component |
| 68 | + (type (;0;) |
| 69 | + (component |
| 70 | + (type (;0;) |
| 71 | + (instance |
| 72 | + (type (;0;) (option string)) |
| 73 | + (type (;1;) (func (param "key" string) (result 0))) |
| 74 | + (export (;0;) "get" (func (type 1))) |
| 75 | + (type (;2;) (func (param "key" string) (param "value" string))) |
| 76 | + (export (;1;) "set" (func (type 2))) |
| 77 | + ) |
| 78 | + ) |
| 79 | + (export (;0;) "[implements=<foo:foo/store>]primary" (instance (type 0))) |
| 80 | + (type (;1;) |
| 81 | + (instance |
| 82 | + (type (;0;) (option string)) |
| 83 | + (type (;1;) (func (param "key" string) (result 0))) |
| 84 | + (export (;0;) "get" (func (type 1))) |
| 85 | + (type (;2;) (func (param "key" string) (param "value" string))) |
| 86 | + (export (;1;) "set" (func (type 2))) |
| 87 | + ) |
| 88 | + ) |
| 89 | + (export (;1;) "[implements=<foo:foo/store>]backup" (instance (type 1))) |
| 90 | + ) |
| 91 | + ) |
| 92 | + (export (;0;) "foo:foo/multi-export" (component (type 0))) |
| 93 | + ) |
| 94 | + ) |
| 95 | + (export (;7;) "multi-export" (type 6)) |
| 96 | + (type (;8;) |
| 97 | + (component |
| 98 | + (type (;0;) |
| 99 | + (component |
| 100 | + (type (;0;) |
| 101 | + (instance |
| 102 | + (type (;0;) (option string)) |
| 103 | + (type (;1;) (func (param "key" string) (result 0))) |
| 104 | + (export (;0;) "get" (func (type 1))) |
| 105 | + (type (;2;) (func (param "key" string) (param "value" string))) |
| 106 | + (export (;1;) "set" (func (type 2))) |
| 107 | + ) |
| 108 | + ) |
| 109 | + (import "foo:foo/store" (instance (;0;) (type 0))) |
| 110 | + (type (;1;) |
| 111 | + (instance |
| 112 | + (type (;0;) (option string)) |
| 113 | + (type (;1;) (func (param "key" string) (result 0))) |
| 114 | + (export (;0;) "get" (func (type 1))) |
| 115 | + (type (;2;) (func (param "key" string) (param "value" string))) |
| 116 | + (export (;1;) "set" (func (type 2))) |
| 117 | + ) |
| 118 | + ) |
| 119 | + (import "[implements=<foo:foo/store>]cache" (instance (;1;) (type 1))) |
| 120 | + ) |
| 121 | + ) |
| 122 | + (export (;0;) "foo:foo/mixed" (component (type 0))) |
| 123 | + ) |
| 124 | + ) |
| 125 | + (export (;9;) "mixed" (type 8)) |
| 126 | + (@custom "package-docs" "\01{\22worlds\22:{\22multi-import\22:{\22docs\22:\22A world that imports the same interface multiple times under different\5cnplain names using the `implements` syntax.\22},\22multi-export\22:{\22docs\22:\22A world that exports the same interface multiple times.\22},\22mixed\22:{\22docs\22:\22A world with both implements imports and a normal interface import,\5cntesting that elaboration adds the dependency correctly.\22}}}") |
| 127 | + (@producers |
| 128 | + (processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 129 | + ) |
| 130 | +) |
0 commit comments