Files
wasmtime/crates/component-macro/tests/codegen.rs
Trevor Elliott 9425a252bb Rework only_interfaces to the interfaces field (#6210)
* Rework `only_interfaces` to the `interfaces` field

* Fix the docs

* Remove only_interfaces test from the component-macro package
2023-04-13 22:02:56 +00:00

31 lines
795 B
Rust

macro_rules! gentest {
($id:ident $name:tt $path:tt) => {
mod $id {
mod sugar {
wasmtime::component::bindgen!(in $path);
}
mod normal {
wasmtime::component::bindgen!($name in $path);
}
mod async_ {
wasmtime::component::bindgen!({
path: $path,
async: true,
});
}
mod tracing {
wasmtime::component::bindgen!({
path: $path,
world: $name,
tracing: true,
duplicate_if_necessary: true,
});
}
}
// ...
};
}
component_macro_test_helpers::foreach!(gentest);