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

wit-bindgen grain does not support inline interfaces #1

Open
godotdot opened this issue May 16, 2024 · 0 comments
Open

wit-bindgen grain does not support inline interfaces #1

godotdot opened this issue May 16, 2024 · 0 comments

Comments

@godotdot
Copy link

Inline interfaces do not work.

For instance, trying to use wit-bindgen on the attached inline.wit:

wit-bindgen grain inline.wit 
thread 'main' panicked at crates/grain/src/lib.rs:145:18:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace`

However, it is possible to work around this by not using inline interfaces:

wit-bindgen grain workaround.wit 
Generating "convert.gr"

wit_files.zip

Version information:

git log -n 1
commit d152684804a35761de51bc541f7379bcdf330b9c (HEAD -> grain, origin/grain)
Author: Oscar Spencer <[email protected]>
Date:   Thu May 9 08:38:45 2024 -0500

    fix s32 bindgen

wit-bindgen --version            
wit-bindgen-cli 0.21.0 (a37b0c143 2024-04-05)
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

1 participant