rust/README.md
Shared Rust crates that power OpenCut across platforms (web via WASM, desktop natively).
rust/crates/bridge as a dependency#[export]#[export] worksuse bridge::export;
#[export]
pub fn round_to_frame(time: f64, fps: f64) -> f64 {
(time * fps).round() / fps
}
Without the wasm feature, the macro is a no-op. With --features wasm, it expands to:
#[wasm_bindgen(js_name = "roundToFrame")]
pub fn round_to_frame(time: f64, fps: f64) -> f64 { ... }
Desktop uses the crates directly as Cargo dependencies.
cargo test -p <crate>