goldboot 0.0.9

A command-line application for building goldboot images
Documentation
1
2
3
4
5
6
7
8
9
10
use std::{env, path::PathBuf};

fn main() {
    if built::write_built_file().is_err() {
        let dest =
            std::path::Path::new(&env::var("OUT_DIR").expect("OUT_DIR not set")).join("built.rs");
        built::write_built_file_with_opts(Some(&PathBuf::from("..")), &dest)
            .expect("Failed to acquire build-time information");
    }
}