pub fn build_script<P: AsRef<Path>>(source: P) -> Result<(), Error>
Expand description

Generates the source code for you from provided toml configuration file.

This function should be used from build script as it relies on cargo environment. It handles generating the name of the file (it’s called config.rs inside OUT_DIR) as well as notifying cargo of the source file.