draftwright 0.2.15

Automated technical drawings from STEP B-rep: a Rust port of draftwright.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod build_support;

fn main() {
    let root = std::path::PathBuf::from(std::env::var_os("CARGO_MANIFEST_DIR").unwrap());
    let files = build_support::inputs(&root).expect("engine fingerprint inputs");
    // Directory watches also catch newly added and removed source/assets.
    for directory in ["src", "schemas", "fonts"] {
        println!("cargo:rerun-if-changed={directory}");
    }
    for path in &files {
        println!("cargo:rerun-if-changed={}", path.display());
    }
    println!(
        "cargo:rustc-env=DRAFTWRIGHT_ENGINE_VERSION={}",
        build_support::fingerprint(&root, &files).expect("engine fingerprint")
    );
}