Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/crates/component-macro/tests/codegen_no_std.rs
1692 views
1
// The output of `bindgen!` should be compatible with `no_std` by default, so
2
// test that here with a no_std crate.
3
4
#![no_std]
5
6
extern crate std;
7
8
macro_rules! gentest {
9
($id:ident $name:tt $path:tt) => {
10
mod $id {
11
wasmtime::component::bindgen!(in $path);
12
}
13
};
14
}
15
16
component_macro_test_helpers::foreach!(gentest);
17
18