mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
feat: migrate time utilities from typescript to rust WASM
This commit is contained in:
@@ -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"] }
|
||||
@@ -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.
|
||||
@@ -0,0 +1 @@
|
||||
pub use time::*;
|
||||
Reference in New Issue
Block a user