1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Embed the `ClipAsm` typed video compiler and renderer.
//!
//! `ClipAsm` separates authoring from execution. Parse a native `.clipasm`
//! [`source::SourcePackage`] through [`language`],
//! compile it into a pure [`compiler::CompiledProgram`], resolve media and
//! tools into a [`preflight::PreparedPlan`], then execute that plan with
//! [`render::render`].
//!
//! Compilation performs no media or external-tool I/O. [`preflight::preflight`]
//! is the first phase allowed to inspect assets, `FFmpeg`, or `FFprobe`.
//!
//! # Example
//!
//! ```no_run
//! use std::path::Path;
//!
//! let program = clipasm::language::parse_file(Path::new("program.clipasm"))?;
//! let compiled = clipasm::compiler::compile(&program)?;
//! let prepared = clipasm::preflight::preflight(&compiled)?;
//! let report = clipasm::render::render(&prepared)?;
//! println!("{}", report.output.display());
//! # Ok::<(), clipasm::diagnostic::Diagnostic>(())
//! ```
//!
//! The native language, programs, and stack behavior are
//! documented in the project guide rather than duplicated in this Rust API
//! reference.
pub
pub
pub
pub
pub