Stream: wit-bindgen

Topic: ✔ Help


view this post on Zulip Jens Gåsemyr Magnus (Jul 08 2022 at 08:26):

Hey, I'm trying to use wit-bindgen to create a module that will be used in both node and python, but currently I an error thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', crates/c-api/src/linker.rs:105:80 when I try to call any function in the generated bindings. I hope we can use this as a tool until wasm-bindgen gets back into wasmtime-py

view this post on Zulip Jens Gåsemyr Magnus (Jul 08 2022 at 14:36):

@bjorn3 answered the underlying issue here, was context needs to be set.

https://bytecodealliance.zulipchat.com/#narrow/stream/217126-wasmtime/topic/wasmtime-py.20canonical_abi_realloc.20failure/near/288922974

view this post on Zulip Notification Bot (Jul 08 2022 at 17:54):

Jens Gåsemyr Magnus has marked this topic as resolved.

view this post on Zulip Brian (Jul 12 2022 at 21:45):

I was looking at the wit-parser crate and noticed the InterfaceToken/AST. Is this still a thing or a future thing?

view this post on Zulip Dan Gohman (Jul 12 2022 at 22:01):

At the moment, they're a potential future thing.

view this post on Zulip Cole Roberts (Nov 10 2022 at 16:10):

Hey everyone, love the project! I am looking to implement rust plugins where the guests and host would be written in rust. The idea is to have an indexer (server listening to blockhain events) that can use plugins that handle writing to different data stores. This would be an open source project for anyone to run their own indexers, so I want to confirm the rust APIs are stable enough to use for this purpose. For a little more information on the application, I essentially just need a single function for interfacing but it would need to transfer a large nested complex type consisting of Options, Vectors, Strings, [u8]'s, Enums, and a bunch of primitives. Thanks

view this post on Zulip Dan Gohman (Nov 14 2022 at 18:41):

Options, Strings, [u8]s, Enums, and primitive values are all usable at this point. Whether the APIs are stable enough probably depends on your specific needs.


Last updated: Dec 23 2024 at 13:07 UTC