liboliphaunt-native-linux-x64-gnu-part-003 0.1.0

Cargo payload part 003 for the linux-x64-gnu liboliphaunt native runtime.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::env;
use std::path::PathBuf;

fn main() {
    let manifest_dir =
        PathBuf::from(env::var_os("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR is set"));
    let root = manifest_dir.join("payload");
    println!("cargo::rerun-if-changed={}", root.display());
    if !root.is_dir() {
        if env::var_os("OLIPHAUNT_ARTIFACT_CRATE_REQUIRE_PAYLOAD").is_some() {
            panic!("missing packaged Oliphaunt artifact payload under {}", root.display());
        }
        return;
    }
    println!("cargo::metadata=root={}", root.display());
}