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:
@@ -27,7 +27,7 @@ pub fn generate(config: Config) -> TokenStream {
|
|||||||
let modtrait = define_module_trait(&names, &module);
|
let modtrait = define_module_trait(&names, &module);
|
||||||
let ctx_type = names.ctx_type();
|
let ctx_type = names.ctx_type();
|
||||||
quote!(
|
quote!(
|
||||||
mod #modname {
|
pub mod #modname {
|
||||||
use super::#ctx_type;
|
use super::#ctx_type;
|
||||||
use super::types::*;
|
use super::types::*;
|
||||||
#(#fs)*
|
#(#fs)*
|
||||||
@@ -38,7 +38,7 @@ pub fn generate(config: Config) -> TokenStream {
|
|||||||
});
|
});
|
||||||
|
|
||||||
quote!(
|
quote!(
|
||||||
mod types {
|
pub mod types {
|
||||||
#(#types)*
|
#(#types)*
|
||||||
}
|
}
|
||||||
#(#modules)*
|
#(#modules)*
|
||||||
|
|||||||
Reference in New Issue
Block a user