diff options
Diffstat (limited to 'third_party/rust/lucet-wasi-wasmsbx/src/bindings.rs')
-rw-r--r-- | third_party/rust/lucet-wasi-wasmsbx/src/bindings.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/third_party/rust/lucet-wasi-wasmsbx/src/bindings.rs b/third_party/rust/lucet-wasi-wasmsbx/src/bindings.rs new file mode 100644 index 0000000000..0d454a1f04 --- /dev/null +++ b/third_party/rust/lucet-wasi-wasmsbx/src/bindings.rs @@ -0,0 +1,11 @@ +use lucet_module::bindings::Bindings; + +pub fn bindings() -> Bindings { + Bindings::from_str(include_str!("../bindings.json")).expect("lucet-wasi bindings.json is valid") +} + +#[cfg(test)] +#[test] +fn test_bindings_parses() { + let _ = bindings(); +} |