stackql-deploy 2.0.4

Infrastructure-as-code framework for declarative cloud resource management using StackQL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::fs;
use std::path::Path;

fn main() {
    // contributors.csv is generated by the CI release pipeline (via stackql-exec)
    // and embedded into the binary at compile time via include_str! in info.rs.
    // For local builds and non-release CI jobs the file may not exist, so create
    // an empty placeholder to keep the build green.
    let csv_path = "contributors.csv";
    if !Path::new(csv_path).exists() {
        fs::write(csv_path, "").expect("Failed to create placeholder contributors.csv");
    }
    println!("cargo:rerun-if-changed=contributors.csv");
}