Skip to content

Sample using wasi dependencies #98

@cataggar

Description

@cataggar

I have not been able to get a sample working that uses a wasi dependency such as wasi:cli or wasi:http. After adding the dependency, I run wkg wit fetch it fetches the dependencies correctly. However, wit-bindgen fails to find them.

C:\Users\cataggar.nuget\packages\bytecodealliance.componentize.dotnet.witbindgen\0.7.0-preview00207\build..\tools\win-x64\wit-bindgen.exe c-sharp calculator.wit --runtime native-aot --out-dir generated

If I pass in just wit instead of calculator.wit, witgen works. However, without a Wit items in my msbuild, something prevents the export from being added to the published wasm.

Is there a way to disable wit-bindgen, but still get the exports added to the wasm?

A sample would be amazing!

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