Browse Source

Make generated modules public

While public might be an overkill, until we successfully merge
`wiggle` with `wasi-common` (and others), I suggest we just make
the modules fully public and work from there.
pull/1278/head
Jakub Konka 5 years ago
committed by Jakub Konka
parent
commit
16fe947e65
  1. 4
      crates/generate/src/lib.rs

4
crates/generate/src/lib.rs

@ -27,7 +27,7 @@ pub fn generate(config: Config) -> TokenStream {
let modtrait = define_module_trait(&names, &module);
let ctx_type = names.ctx_type();
quote!(
mod #modname {
pub mod #modname {
use super::#ctx_type;
use super::types::*;
#(#fs)*
@ -38,7 +38,7 @@ pub fn generate(config: Config) -> TokenStream {
});
quote!(
mod types {
pub mod types {
#(#types)*
}
#(#modules)*

Loading…
Cancel
Save