lightmotif-py 0.1.0

PyO3 bindings and Python interface to the lightmotif crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate built;
extern crate project_root;

fn main() {
    let src = project_root::get_project_root().unwrap();
    let dst = std::path::Path::new(&std::env::var("OUT_DIR").unwrap()).join("built.rs");
    let mut opts = built::Options::default();

    opts.set_dependencies(true);
    // opts.set_compiler(true);
    opts.set_env(true);
    built::write_built_file_with_opts(&opts, std::path::Path::new(&src), &dst)
        .expect("Failed to acquire build-time information");
    // built::write_built_file()
    //     .expect("Failed to acquire build-time information");
}