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/time/Cargo.toml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 rust/crates/time/Cargo.toml (limited to 'rust/crates/time/Cargo.toml') diff --git a/rust/crates/time/Cargo.toml b/rust/crates/time/Cargo.toml new file mode 100644 index 00000000..08a93224 --- /dev/null +++ b/rust/crates/time/Cargo.toml @@ -0,0 +1,15 @@ +[package] +name = "time" +version = "0.1.0" +edition = "2024" + +[lib] +path = "src/time.rs" +crate-type = ["rlib", "cdylib"] + +[dependencies] +bridge = { version = "0.1.0", path = "../bridge" } +wasm-bindgen = { version = "0.2.115", optional = true } + +[features] +wasm = ["dep:wasm-bindgen"] \ No newline at end of file -- cgit v1.3.1