Skip to content

Commit

Permalink
Make generated export Wasmtime bindings module public (#61)
Browse files Browse the repository at this point in the history
Signed-off-by: Radu M <root@radu.sh>
  • Loading branch information
radu-matei authored Aug 11, 2021
1 parent a67ab5d commit ab31638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/gen-wasmtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ impl Generator for Wasmtime {
self.in_import = dir == Direction::Import;
self.trait_name = iface.name.to_camel_case();
self.src
.push_str(&format!("mod {} {{\n", iface.name.to_snake_case()));
.push_str(&format!("pub mod {} {{\n", iface.name.to_snake_case()));
self.src
.push_str("#[allow(unused_imports)]\nuse witx_bindgen_wasmtime::{wasmtime, anyhow};\n");
self.sizes.fill(dir, iface);
Expand Down

0 comments on commit ab31638

Please sign in to comment.