feat: migrate time utilities from typescript to rust WASM

This commit is contained in:
Maze Winther
2026-03-31 04:03:52 +02:00
parent 5cc6abc3a4
commit dcf54c1250
29 changed files with 2008 additions and 2025 deletions
+14
View File
@@ -0,0 +1,14 @@
[package]
name = "opencut-wasm"
version = "0.1.2"
edition = "2024"
description = "Shared video editor logic compiled to WebAssembly"
repository = "https://github.com/opencut/opencut"
license = "MIT"
[lib]
path = "src/wasm.rs"
crate-type = ["cdylib", "rlib"]
[dependencies]
time = { version = "0.1.0", path = "../crates/time", features = ["wasm"] }
+21
View File
@@ -0,0 +1,21 @@
# opencut-wasm
Shared video editor logic compiled to WebAssembly. Used by the [OpenCut](https://github.com/opencut/opencut) web app.
## Install
```bash
npm install opencut-wasm
```
## Usage
```ts
import { formatTimeCode } from "opencut-wasm";
```
All exports are documented in the [TypeScript definitions](./opencut_wasm.d.ts).
## Source
Functions are implemented in Rust under [`rust/crates/`](../crates/). This package is the compiled WebAssembly output — do not edit it directly.
+1
View File
@@ -0,0 +1 @@
pub use time::*;