Function configure_me_codegen::build_script
source · pub fn build_script<P: AsRef<Path>>(source: P) -> Result<(), Error>
👎Deprecated: Use build_script_auto and put the path into Cargo.toml to expose it to external tools
Expand description
Generates the source code for you from provided toml
configuration file.
This function is deprecated because if you use it external tools will be unable to see the path
to specification. It’s much better to specify the path in Cargo.toml
so that your app can be
processed automatically. (E.g. to generate man page in packagers.)
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.