wit-bindgen icon indicating copy to clipboard operation
wit-bindgen copied to clipboard

Rust: generated bindings include `mod _rt`, should just use `wit-bindgen::rt`

Open pchickey opened this issue 6 months ago • 0 comments

The generated mod _rt {...} is from when we thought we could get away with not having wit-bindgen runtime in Rust, but that design changed a while ago. We should put all of the things that end up in the generated mod _rt into crates/guest-rust/src/rt/mod.rs, and change the generator to refer to them there.

pchickey avatar Sep 05 '25 23:09 pchickey