Hey, I'm pretty new to wasip2 and WIT.
Trying to create a WIT file for Rust library.
The problem is that failable constructor doesn't work with wit-bindgen:
resource mystruct {
constructor(a: u32) -> result<mystruct, my-error>;
}
Any standard way to express it in WIT?
Another one: option<T> is not allowed in constructors?
Last updated: Dec 06 2025 at 05:03 UTC