Skip to content

Implement @since and @unstable attributes #94

Open

Description

@peterhuene

See WebAssembly/component-model#332

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

Activity

  1. ctaggart commented on Nov 30, 2024

    @ctaggart

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions