containeryard 0.3.5

Container Yard is a declarative, reproducible, and reusable decentralized approach for defining containers. Think Nix flakes meets Containerfiles (aka Dockerfiles).
1
2
3
4
5
6
7
8
9
10
use std::{env, sync::LazyLock};

pub fn is_debug() -> bool {
    static IS_DEBUG: LazyLock<bool> = LazyLock::new(|| {
        env::var("CONTAINERYARD_DEBUG")
            .map(|v| v != "0")
            .unwrap_or(false)
    });
    IS_DEBUG.clone()
}