Expand description

This crate provides a #[dynpath()] macro that can be placed on a mod statement, and which points the module to a dynamic path.

The primary purpose of this crate is to include bindgen-generated bindings without an include!() statement. This allows for code completion and cross-references.

The macro takes a single parameter which is the name of an environment variable to read the path from, and it appends the module name and .rs extension onto the contents of the variable.


// Turns into `#[path = "whatever/is/in/OUT_DIR/bindings.rs"]`.
mod bindings;

Attribute Macros

See the crate documentation for how to use the #[dynpath()] macro.