Skip to main content

renderbox_sdk/
lib.rs

1pub mod compile;
2pub mod graph;
3pub mod ops;
4pub mod expr;
5
6pub mod sorts;
7pub mod error;
8pub mod codec;
9
10pub use compile::{CompileError, compile, compile_json};
11
12pub use sorts::{Audio, Density, Depth, Detection, Pose, Scene, Segmentation, Text, Transcript, Video};
13pub use graph::{input, output, output_audio, output_encoded, output_video, PlanBuilder, Stream};
14pub use error::Error;
15pub use expr::{Expr, NumberOrExpr, Op, UnaryOp, Var};
16pub use renderbox_executor::execute::{ExecuteOpts, ExecuteResult};
17
18/// Convenience re-exports for the most common types.
19///
20/// ```rust
21/// use renderbox_sdk::prelude::*;
22/// ```
23///
24/// This imports [`Stream`], sort markers ([`Video`], [`Audio`]),
25/// graph entry/exit points ([`input`], [`output`], [`output_video`],
26/// [`output_audio`], [`output_encoded`]), and [`PlanBuilder`].
27///
28/// Individual operations live in [`crate::ops`] and are imported
29/// explicitly — the prelude intentionally stays small.
30pub mod prelude {
31    pub use crate::sorts::{Audio, Video};
32    pub use crate::graph::{
33        input, output, output_audio, output_encoded, output_video,
34        PlanBuilder, Stream,
35    };
36}