speccoder-runtime 0.5.2

Application services of speccoder: the only crate that executes anything.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! The sample is bundled when its recording exists: `just
//! record-sample` writes it to `assets/sample/`. A build without it
//! answers `SAMPLE-MISSING` instead of an empty playback.

use std::path::Path;

fn main() {
    println!("cargo::rustc-check-cfg=cfg(speccoder_sample)");
    println!("cargo::rerun-if-changed=assets/sample");
    let dir = Path::new("assets/sample");
    if ["sample.bundle", "journal.redb.gz", "manifest.toml"]
        .iter()
        .all(|f| dir.join(f).is_file())
    {
        println!("cargo::rustc-cfg=speccoder_sample");
    }
}