cpclib-asm 0.7.0

cpclib libraries related to z80 assembling
Documentation
use std::env;
use std::path::Path;

fn build() {
    let src = env::var("CARGO_MANIFEST_DIR").unwrap();
    let dst = Path::new(&env::var("OUT_DIR").unwrap()).join("built.rs");

    built::write_built_file_with_opts(
        built::Options::default().set_time(true),
        Path::new(&src),
        &dst
    )
    .expect("Failed to acquire build-time information");
}

fn main() {
    build_deps::rerun_if_changed_paths("assets").unwrap();
    build_deps::rerun_if_changed_paths("assets/**").unwrap();
    build_deps::rerun_if_changed_paths("assets/*.*").unwrap();
    build_deps::rerun_if_changed_paths("assets/**/*.*").unwrap();

    if !env::var("CARGO_CFG_TARGET_ARCH")
        .unwrap()
        .contains("wasm32")
    {
        build();
    }
}