From 5777a555f60b780b7db430fa7bfa66a3bcb2623f Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Sun, 29 Mar 2026 14:25:25 +0200 Subject: feat: add shared Rust crates for cross-platform time utilities Introduce `bridge` proc-macro crate with `#[export]` attribute that conditionally applies `wasm_bindgen` for WASM builds, and `time` crate porting all timecode/frame utilities from TypeScript to Rust. --- rust/crates/bridge/Cargo.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 rust/crates/bridge/Cargo.toml (limited to 'rust/crates/bridge/Cargo.toml') diff --git a/rust/crates/bridge/Cargo.toml b/rust/crates/bridge/Cargo.toml new file mode 100644 index 00000000..3b1f0254 --- /dev/null +++ b/rust/crates/bridge/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "bridge" +version = "0.1.0" +edition = "2024" + +[lib] +path = "src/bridge.rs" +proc-macro = true + +[dependencies] +quote = "1.0.45" +syn = { version = "2.0.117", features = ["full"] } -- cgit v1.3.1