lios 0.1.69

A gorgeous GTK4/VTE Linux terminal with live themes, glass backgrounds, session prompt profiles, Sixel images, and safe GPU controls.
use std::process::Command;

fn main() {
    if std::env::var_os("CARGO_FEATURE_NATIVE").is_none() {
        return;
    }

    require_library("gtk4", "4.0", "GTK4 4.0 or newer");
    require_library(
        "vte-2.91-gtk4",
        "0.68",
        "VTE for GTK4 0.68 or newer (upstream stable 0.70+)",
    );
}

fn require_library(package: &str, version: &str, description: &str) {
    let available = Command::new("pkg-config")
        .args(["--atleast-version", version, package])
        .status()
        .is_ok_and(|status| status.success());
    assert!(
        available,
        "Lios native build requires {description}. Install with the default crates.io bootstrap: cargo install lios && lios"
    );
}