automoduse 1.0.1

Pull in every source file in a directory as a module and optionally re-export their contents.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// This example demonstrates using the automoduse macro to collect together a
// directory of test cases. Each source file in the 'regression' directory can
// be dedicated to testing an individual numbered issue. As files are added in
// that directory, they automatically become part of the crate without needing
// to be added explicitly to some handwritten list.
//
// To see the tests running:
//
//    cargo test --example tests

mod regression {
    automoduse::dir!(pub "examples/regression" use);
}

fn main() {}