Files
Docwell/Spikes/yrs-wasm/rust/Cargo.toml
T
tajniak81andClaude Opus 5.5 4cb313aa95 Spike yrs.wasm under wazero for Yjs compaction (ADR-3: go)
Compile yrs 0.28 to wasm32-wasip1 and run it in Go with wazero to compact
Yjs update logs and extract ProseMirror JSON and plain text. Fixtures come
from real Yjs, and y-prosemirror's output is the oracle.

- Output matches y-prosemirror on every fixture; Yjs loads yrs snapshots
- Snapshot + 200 updates compacts in 0.6-47 ms; WebAssembly costs at most 2x native
- merge_updates is quadratic, so the server must compact incrementally

Results and design rules are recorded in docs/adr/0003-yrs-wasm-wazero.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 23:29:27 +01:00

21 lines
294 B
TOML

[package]
name = "docwell_yrs"
version = "0.1.0"
edition = "2021"
license = "AGPL-3.0-or-later"
publish = false
[dependencies]
serde_json = "1.0.154"
yrs = "0.28"
[lib]
crate-type = ["cdylib", "rlib"]
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
strip = true