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
This commit is contained in:
Trevor Elliott
2023-04-13 15:02:56 -07:00
committed by GitHub
parent 7b5819b55a
commit 9425a252bb
4 changed files with 23 additions and 26 deletions

View File

@@ -639,15 +639,10 @@ mod with_remapping {
mod interfaces {
wasmtime::component::bindgen!({
inline: "
default world result-playground {
import imports: interface {
empty-error: func(a: float64) -> result<float64>
}
export empty-error: func(a: float64) -> result<float64>
interfaces: "
import imports: interface {
empty-error: func(a: float64) -> result<float64>
}",
only_interfaces: true,
});
}