liminal-cli 0.3.32

The liminal command: serve the network, maintain its stores, or serve its discovery MCP over stdio
Documentation
//! The console dist is built once by Vite and embedded without machine configuration (CON-022 R2).

use std::path::PathBuf;

#[path = "build/assets.rs"]
mod assets;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let manifest = PathBuf::from(
        std::env::var_os("CARGO_MANIFEST_DIR").ok_or("CARGO_MANIFEST_DIR is absent")?,
    );
    println!(
        "cargo:rerun-if-changed={}",
        manifest.join("console-dist").display()
    );
    println!(
        "cargo:rerun-if-changed={}",
        manifest.join("../../apps/liminal-console/dist").display()
    );
    let dist = assets::dist(&manifest)?;
    let (table, files) = assets::table(&dist)?;
    for path in files {
        println!("cargo:rerun-if-changed={}", path.display());
    }
    let out = PathBuf::from(std::env::var_os("OUT_DIR").ok_or("OUT_DIR is absent")?);
    std::fs::write(out.join("console_assets.rs"), table)?;
    Ok(())
}