#import #automatic #submodule

macro supermod

convenient automatic submodule import

2 unstable releases

0.2.0 May 13, 2019
0.1.0 May 12, 2019

#21 in #submodule

CC0 license

3KB

inspired by automod

supermod::supermod!("src/modname")

// →→→→→
// →→→→→
// →→→→→

mod modname {
	pub mod submod1;
	pub mod submod2;
	pub mod submod3;
	...
}
pub use modname::{
	submod1,
	submod2,
	submod3,
	...
};

Dependencies

~2MB
~45K SLoC