diff options
| author | Maze Winther <mazewinther@gmail.com> | 2026-03-29 14:25:25 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2026-03-29 15:58:46 +0200 |
| commit | 5777a555f60b780b7db430fa7bfa66a3bcb2623f (patch) | |
| tree | ef8878dc0cbacc4b164efed8a8bf685561302a46 /rust/crates/time/Cargo.toml | |
| parent | 220ec757d42b54f498d031436e5b4b03931b165c (diff) | |
| download | opencut-5777a555f60b780b7db430fa7bfa66a3bcb2623f.tar.gz | |
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.
Diffstat (limited to 'rust/crates/time/Cargo.toml')
| -rw-r--r-- | rust/crates/time/Cargo.toml | 15 |
1 files changed, 15 insertions, 0 deletions
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 |
