subplotlib 0.12.0

Utility functions and types for `subplot codegen` generated Rust based test suites. Relies on `subplotlib-derive` for associated macros.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Build script for subplotlib.
//
// All we want is to check if we're inside subplot's source.  If we are
// then we can test everything, otherwise just subplotlib.subplot.

fn main() {
    // Because we cannot generate tests if we're not fully inside the main subplot tree
    // we only generate them if we can see ../subplot.subplot which is a good indicator.
    println!("cargo::rustc-check-cfg=cfg(inside_subplot, values(\"yes\"))");
    if std::fs::metadata("../subplot.subplot").is_ok() {
        println!("cargo::rustc-cfg=inside_subplot=\"yes\"");
    }
}