wac icon indicating copy to clipboard operation
wac copied to clipboard

Implement `@since` and `@unstable` attributes

Open peterhuene opened this issue 1 year ago • 1 comments

See https://github.com/WebAssembly/component-model/pull/332

We need to integrate this into the supported WIT subset of WAC.

peterhuene avatar Apr 19 '24 18:04 peterhuene

A lot of the standard WIT definitions have @since added, so wac targets does not currently work with them.

They have been added for at least 6 months: https://github.com/WebAssembly/wasi-cli/blame/main/wit/command.wit

example error:

~/ms/StarlingMonkey15/typescript> wac targets --world typescript-system --wit wit ../typescript-system/target/wasm32-wasip1/debug/typescript_system.wasm
error: failed to parse dependency directory: wit/deps

Caused by:
    0: failed to parse package: wit/deps/wasi-cli-0.2.2
    1: expected `world`, `interface` or `use`, found `@`
            --> wit/deps/wasi-cli-0.2.2/package.wit:3:1
             |
           3 | @since(version = 0.2.0)
             | ^

ctaggart avatar Nov 30 '24 19:11 ctaggart