Mirror default-owned change for guests in wit-bindgen (#6189)

This commit is a mirror of bytecodealliance/wit-bindgen#547 into the
`bindgen!` macro for Wasmtime. The new default is to generate only one
Rust type per WIT type input, regardless of if the representation can be
slightly more optimal in niche cases with more borrows. This should make
the macro easier to work with in the limit ideally.

Closes #6124
This commit is contained in:
Alex Crichton
2023-04-10 11:27:13 -05:00
committed by GitHub
parent 2d1dbb17af
commit 83a8ca77cd
4 changed files with 73 additions and 9 deletions

View File

@@ -18,6 +18,7 @@ macro_rules! gentest {
path: $path,
world: $name,
tracing: true,
duplicate_if_necessary: true,
});
}
}