pub fn codegen<P>(filename: P) -> Result<(), SubplotError> where
    P: AsRef<Path> + Debug
Expand description

Generate code for one document, inside

The output files will be written to the directory specified in the OUT_DIR environment variable. That variable is set by Cargo, when a crate is built.

Also emit instructions for Cargo so it knows to re-run whenever the input subplot or any of the bindings or functions files it refers to changes. See for details.

use subplot_build::codegen;

codegen("").ok(); // ignoring error to keep example short