diff --git a/tests/components/do-everything/src/lib.rs b/tests/components/do-everything/src/lib.rs index c922a5d..c15fc65 100644 --- a/tests/components/do-everything/src/lib.rs +++ b/tests/components/do-everything/src/lib.rs @@ -8,9 +8,6 @@ extern crate rand; wit_bindgen::generate!({ path: "../../../wit", world: "virt-test", - exports: { - world: VirtTestComponent - }, }); struct VirtTestComponent; @@ -34,3 +31,5 @@ impl Guest for VirtTestComponent { unimplemented!(); } } + +export!(VirtTestComponent); diff --git a/tests/components/file-read/src/lib.rs b/tests/components/file-read/src/lib.rs index 6a64c64..c33cdd8 100644 --- a/tests/components/file-read/src/lib.rs +++ b/tests/components/file-read/src/lib.rs @@ -3,9 +3,6 @@ use std::{fs, io::ErrorKind}; wit_bindgen::generate!({ path: "../../../wit", world: "virt-test", - exports: { - world: VirtTestComponent -}, }); struct VirtTestComponent; @@ -67,3 +64,5 @@ impl Guest for VirtTestComponent { unimplemented!(); } } + +export!(VirtTestComponent); diff --git a/tests/components/get-env/src/lib.rs b/tests/components/get-env/src/lib.rs index 116016e..6cb0de0 100644 --- a/tests/components/get-env/src/lib.rs +++ b/tests/components/get-env/src/lib.rs @@ -3,9 +3,6 @@ use std::env; wit_bindgen::generate!({ path: "../../../wit", world: "virt-test", - exports: { - world: VirtTestComponent - }, }); struct VirtTestComponent; @@ -21,3 +18,5 @@ impl Guest for VirtTestComponent { unimplemented!(); } } + +export!(VirtTestComponent); diff --git a/tests/components/stdio/src/lib.rs b/tests/components/stdio/src/lib.rs index 942c54c..7425d0f 100644 --- a/tests/components/stdio/src/lib.rs +++ b/tests/components/stdio/src/lib.rs @@ -3,9 +3,6 @@ use std::env; wit_bindgen::generate!({ path: "../../../wit", world: "virt-test", - exports: { - world: VirtTestComponent - }, }); struct VirtTestComponent; @@ -21,3 +18,5 @@ impl Guest for VirtTestComponent { println!("Hello world"); } } + +export!(VirtTestComponent);