3 releases

0.1.2 Jan 13, 2021
0.1.1 Jan 11, 2021
0.1.0 Oct 23, 2020

#1556 in Procedural macros

24 downloads per month
Used in 3 crates

MIT/Apache

6KB

This crate offers a workaround for issue. The gist of it is that include! proc macro will include the content of lib.rs file stored inside OUT_DIR, presumably generated by cargo's build script.

Example

::codegen_includer_proc_macro::include!();
fn main() {
    helloWorld(); // This was included from $OUT_DIR/lib.rs
}

Dependencies

~98KB