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.
This commit is contained in:
Jakub Konka
2020-02-28 21:10:52 +01:00
committed by Jakub Konka
parent 5db335b7c7
commit 16fe947e65

View File

@@ -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)*