![github]![crates-io]![docs-rs]
Build Status

retrieve

mod x and use x::* pattern syntax sugar of the proc-macro attribute.

I am tired of writing the "xxx" pattern over and over again for structured beatiful source code!😝 And I like the stylish attribute proc-macro style syntax sugars.💖

Example: examples/modpubuse/

  1. main.rs:

```rust use retrieve::*;

[modpubuse(x)] // <-- here!; it's the same as mod x; pub use x::*;

fn main() { // X from x::X let x = X { a: 1, b: 2 };

// And it from '2. x.rs'; .a() from the trait of x::a::A and .b() from the trait of x::b::B println!("{:?}", x.a() + x.b()); } ```

  1. x.rs:

```rust use retrieve::*;

[modpubuse(a, b)] // <-- here!; it's the same as mod a; pub use a::*; and mod b; pub use b::*;

pub struct X { pub a: i32, pub b: i32 } ```

LICENSE

Author