https://github.com/bytecodealliance/wit-bindgen/issues/769
tldr: fn write(&self, contents: &[u8]) ... by default instead of Vec<u8>
I think that makes sense yeah, and while the logic for figuring out what ownership is pretty hairy already this is pretty targeted and I think will fit well
Should string params get the same treatment (String -> &str)?
Last updated: Dec 06 2025 at 06:05 UTC