tawasuyu

tawasuyu/llimphi

Sovereign retained-mode GPU UI framework in Rust (wgpu+vello+taffy+parley), Elm loop, 40+ widgets.

Rust 229TOML 101Markdown 82Shell 24052 Definitions

⎇ main llimphi-voxel/examples/emitir_nacimiento.rs Rust · 23 lines · 743 B History Who touched what raw

chore: refresco desde el monorepo — 27 crates nuevos (anim, lottie, svg, mesh, image, layer, test, wire-view, widgets rag-sidebar/router/lazy-list/rive-button) y sync de los 95 existentes 93253cc22 · Sergio ·

1//! Emite la escena del NACIMIENTO a un archivo `.voxstudio.ron`, listo para
2//! abrir/combinar en el estudio. Es la herramienta que materializa un artefacto
3//! construido en código a un documento editable.
4//!
5//! ```sh
6//! cargo run -p llimphi-voxel --example emitir_nacimiento -- ruta/el-nacimiento.voxstudio.ron
7//! ```
8
9use llimphi_voxel::{Documento, Project};
10
11fn main() {
12    let path = std::env::args()
13        .nth(1)
14        .unwrap_or_else(|| "el-nacimiento.voxstudio.ron".to_string());
15    let doc = Documento::nuevo(Project::nacimiento());
16    match doc.guardar(&path) {
17        Ok(()) => println!("escrito: {path}"),
18        Err(e) => {
19            eprintln!("error: {e}");
20            std::process::exit(1);
21        }
22    }
23}