apply_pub 0.0.2

A Rust syntax extension for applying the `pub` visibility modifer to many items at once.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![feature(phase)]

#[phase(plugin)]
extern crate apply_pub;

#[apply_pub]
mod foo {
    fn bar() {}
    mod baz {
        fn qux() {}
    }
}

#[test]
fn main() {
    foo::bar();
    foo::baz::qux();
}