Stream: general

Topic: WIT Bindgen and using your own type defs


view this post on Zulip Damian Reeves (Apr 05 2024 at 15:13):

Is it possible to use some of your own types along with the types generated by wit-bindgen. In Rust for example I have a library that already has the shape of my types, is it possible to configure wit-bindgen to sue those types, or do I need to pay the cost of conversion?

view this post on Zulip Ramon Klass (Apr 05 2024 at 15:15):

here's an example from wasi-http https://github.com/bytecodealliance/wasmtime/blob/main/crates/wasi-http/src/lib.rs#L23-L40

A fast and secure runtime for WebAssembly. Contribute to bytecodealliance/wasmtime development by creating an account on GitHub.

view this post on Zulip Damian Reeves (Apr 05 2024 at 15:16):

Awesome... thanks!


Last updated: Oct 23 2024 at 20:03 UTC