nject-macro 0.4.1

Zero cost dependency injection macros
Documentation
1
2
3
4
5
6
7
fn main() {
    let out_dir = std::env::var("NJECT_OUT_DIR").unwrap_or_else(|_| {
        std::env::var("OUT_DIR").unwrap_or_else(|_| String::from("./target/.nject"))
    });
    // Expose the out directory to macros.
    println!("cargo:rustc-env=NJECT_OUT_DIR={}", out_dir)
}