all!() { /* proc-macro */ }Expand description
Include all possible modules in the directory
§Parameters
The following parameter statements can be joined by semicolons.
default $vis [use]: All modules have$visvisibility by default, where$viscan be the standard visibilities likepub,pub(crate), etc. The specialprivkeyword can be used to indicate private visibility. If theusekeyword is added behind the visibility, modules will remain private, and$vis use module::*;statements would be appended. If this statement is not given,privis assumed for default.$vis [use] $name1, $name2, ...: The specified modules have$visvisibility, different from the default visibility. The format of$vis [use]is identical to that indefault.except $name1 $name2 ...: The specified modules are excluded.
For simplicity, there is no special syntax to add doc comments.
To document modules, either use the //! inner documentation
syntax within the module file, or use except to exclude
declaration and declare them separately from the macro call.
§Examples
ⓘ
all!();ⓘ
all!(default pub(crate); pub foo);ⓘ
all! {
default pub(super);
pub(crate) foo, bar;
pub qux, corge;
priv lorem;
except ipsum;
}