Inline modules at macro expansion time!
Currently, even if you are on nighly and can use an attribute macro on a non-inlined module, you will not accomplish anything because the items get inlined after macro expansion. This macro inlines the module for you, so you can use macros on non-inlined (even nested) modules.
```rust // main.rs use inlinemod::inlinemod;
inlinemod! { #[myattr] #[path = "src/foo.rs"] mod foo; }
// foo.rs struct Bar(i32);
pub mod baz;
// foo/baz/mod.rs pub struct Hi; ```
Will get expanded to
```rust
mod foo { struct Bar(i32);
pub mod baz {
pub struct Hi;
}
} ```
All before my_attr
gets executed.