Crate proc_use

Source
Expand description

§proc_use

proc_use is a library for semi-dynamically importing creates/modules.

§About

The proc_use library leverages the builder patterns. For more information about the builder pattern find it at Rust Builder Pattern.

See the proc_use website for additional documentation and usage examples.

§Quick Example

project_root/src/main.rs

include!(concat!(env!("OUT_DIR"), "/proc_use.rs"));
fn main() {
    foo();
}

project_roo/external/foo.rs

pub fn foo() {
    println!("Hello from foo!");
}

Structs§

UseBuilder
The struct to represent the builder for proc_use.