Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/holger

holger-front/build.rs

//! A Git LFS-tracked picture that is still a pointer: `include_bytes!` would compile the
//! pointer text in as the picture. A dev build or test says so; a MEDIUM build (every medium
//! is built for musl, `x86_64-unknown-linux-musl`) refuses (lane D13, 2026-10-20: test3.holger.rs
//! served holger.webp as a 131-byte pointer).

fn main() {
    let medium = std::env::var("TARGET").is_ok_and(|t| t.contains("musl"));
    for asset in ["assets/holger.webp", "assets/ignalina.png"] {
        println!("cargo:rerun-if-changed={asset}");
        let head = std::fs::read(asset).unwrap_or_default();
        if head.starts_with(b"version https://git-lfs.github.com/spec/") {
            let words = format!("holger-front/{asset} is a Git LFS pointer, not the picture. Run: git lfs install --local && git lfs pull");
            if medium {
                eprintln!("[holger-front-lfs-pointer] {words} (a medium never ships the pointer)");
                std::process::exit(1);
            }
            println!("cargo:warning={words}");
        }
    }
}