Skip to content

wkg@0.14.0 fails to parse wasi:http dependency #186

@tbrockman

Description

@tbrockman
theo@theo-desktop-ubuntu:~/$ wkg wit fetch
Error: failed to decode content of dependency `wasi:http`

Caused by:
    export name `[async]handle` is not a valid extern name
    `[async]handle` is not in kebab case (at offset 0xe8d)

For something like the following:

package test:plugin@0.0.1;

interface capabilities {
    use wasi:http/types@0.3.0-rc-2026-01-06.{request, response};
// ...
}

Downgrading to 0.13.0 seems to fix the issue:

theo@theo-desktop-ubuntu:~/$ cargo install wkg@0.13.0
# ...
theo@theo-desktop-ubuntu:~/$ wkg wit fetch
theo@theo-desktop-ubuntu:~/$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions