1*81a89169SAlex Crichton // The output of `bindgen!` should be compatible with `no_std` by default, so
2*81a89169SAlex Crichton // test that here with a no_std crate.
3*81a89169SAlex Crichton 
4*81a89169SAlex Crichton #![no_std]
5*81a89169SAlex Crichton 
6*81a89169SAlex Crichton extern crate std;
7*81a89169SAlex Crichton 
8*81a89169SAlex Crichton macro_rules! gentest {
9*81a89169SAlex Crichton     ($id:ident $name:tt $path:tt) => {
10*81a89169SAlex Crichton         mod $id {
11*81a89169SAlex Crichton             wasmtime::component::bindgen!(in $path);
12*81a89169SAlex Crichton         }
13*81a89169SAlex Crichton     };
14*81a89169SAlex Crichton }
15*81a89169SAlex Crichton 
16*81a89169SAlex Crichton component_macro_test_helpers::foreach!(gentest);
17