| 1 |
package wasmtime:[email protected]; |
| 2 |
|
| 3 |
interface unknown-stability-interface { |
| 4 |
resource unknown-stability-resource { |
| 5 |
} |
| 6 |
stable-func: func(); |
| 7 |
} |
| 8 |
|
| 9 |
@unstable(feature = active) |
| 10 |
interface unstable-interface { |
| 11 |
@unstable(feature = active) |
| 12 |
resource unstable-resource { |
| 13 |
} |
| 14 |
@unstable(feature = active) |
| 15 |
unstable-func: func(); |
| 16 |
} |
| 17 |
|
| 18 |
@since(version = 0.1.0) |
| 19 |
interface stable-interface { |
| 20 |
@since(version = 0.1.0) |
| 21 |
resource stable-resource { |
| 22 |
} |
| 23 |
@since(version = 0.1.0) |
| 24 |
stable-func: func(); |
| 25 |
} |
| 26 |
|
| 27 |
world unknown-stability { |
| 28 |
import unknown-stability-interface; |
| 29 |
} |
| 30 |
|
| 31 |
world unstable { |
| 32 |
@unstable(feature = active) |
| 33 |
import unstable-interface; |
| 34 |
} |
| 35 |
|
| 36 |
world stable{ |
| 37 |
@since(version = 0.1.0) |
| 38 |
import stable-interface; |
| 39 |
} |
| 40 |
|
| 41 |
world simple-include { |
| 42 |
include unstable; |
| 43 |
include stable; |
| 44 |
include unknown-stability; |
| 45 |
} |
| 46 |
|
| 47 |
world unstable-include-in-package |
| 48 |
{ |
| 49 |
include unstable; |
| 50 |
} |
| 51 |
|
| 52 |
world dup-include-in-package { |
| 53 |
include simple-include; |
| 54 |
include unstable-include-in-package; |
| 55 |
} |
| 56 |
|
| 57 |
world dup-use-package { |
| 58 |
@unstable(feature = active) |
| 59 |
use stable-interface.{stable-resource}; |
| 60 |
include simple-include; |
| 61 |
} |
| 62 |
|
| 63 |
world dup-use-package-ordered { |
| 64 |
include simple-include; |
| 65 |
@unstable(feature = active) |
| 66 |
use stable-interface.{stable-resource}; |
| 67 |
} |