use {anyhow::bail, std::process::Command}; pub fn main() -> anyhow::Result<()> { if !std::fs::exists("compile-shaders")? { return Ok(()); } let code = Command::new("cargo") .args([ "run", "--manifest-path", "compile-shaders/Cargo.toml", "-p", "compile-shaders-build-rs", ]) .status()?; if !code.success() { bail!("compile-shaders failed"); } Ok(()) }