Crates.io | proc_use_inline |
lib.rs | proc_use_inline |
version | 0.1.1 |
source | src |
created_at | 2020-06-07 17:20:38.858343 |
updated_at | 2020-06-07 17:20:38.858343 |
description | A different syntax for mod and use |
homepage | |
repository | https://github.com/Shizcow/proc_use |
max_upload_size | |
id | 251037 |
size | 10,727 |
proc_use_inline
is a Rust crate offering an alternate syntax for mod
and use
statements. Take the following Rust code:
mod foo;
use foo::*;
use itertools::*;
#[path = "../other/ext.rs"]
mod ext;
This literally translates into:
proc_macro_inline::proc_macro_inline! {
#[mod]
use foo::*;
use itertools::*;
mod("../other/ext.rs");
}