We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9147d0b commit 5854505Copy full SHA for 5854505
crates/stackable-versioned-macros/src/codegen/module.rs
@@ -41,7 +41,10 @@ impl Module {
41
return quote! {};
42
}
43
44
- // TODO (@Techassi): Leave comment explaining this
+ // If the 'preserve_module' flag is provided by the user, we need to change the visibility
45
+ // of version modules (eg. 'v1alpha1') to be public, so that they are accessible inside the
46
+ // preserved (wrapping) module. Otherwise, we can inherit the visibility from the module
47
+ // which will be erased.
48
let version_module_vis = if self.preserve_module {
49
&Visibility::Public(Pub::default())
50
} else {
0 commit comments