Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement @since and @unstable attributes #94

Open
peterhuene opened this issue Apr 19, 2024 · 1 comment
Open

Implement @since and @unstable attributes #94

peterhuene opened this issue Apr 19, 2024 · 1 comment

Comments

@peterhuene
Copy link
Member

See WebAssembly/component-model#332

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

@ctaggart
Copy link

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)
             | ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants