loro/crates/loro-wasm/Cargo.toml
Zixuan Chen ddafb7e899
feat: diff, revertTo, and applyDiff (#610)
* feat: expose diff, apply_diff, revert_to, to rust crate

* fix: revert to

* refactor: simplify TextDiff data structure

* fix: make diff and apply_diff actually work

* step 0

* feat(wasm): add diff, applyDiff, revertTo

* test: add a more complicated revert test

* chore: fix clippy warnings

* feat: add order to diff events batch

* fix: DiffBatch invariants maintain

* docs: refine docs a bit

* chore: fix warnings

* chore: add changeset
2025-01-09 12:39:03 +08:00

34 lines
836 B
TOML

[package]
name = "loro-wasm"
version = "0.1.0"
edition = "2021"
publish = false
repository = "https://github.com/loro-dev/loro/"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
js-sys = "0.3.60"
loro-internal = { path = "../loro-internal", features = [
"wasm",
"counter",
"jsonpath",
] }
loro-common = { path = "../loro-common" }
loro-delta = { path = "../delta" }
wasm-bindgen = "=0.2.92"
serde-wasm-bindgen = { version = "^0.6.5" }
wasm-bindgen-derive = "0.2.1"
console_error_panic_hook = { version = "0.1.6" }
getrandom = { version = "0.2.15", features = ["js"] }
serde = { workspace = true }
rle = { path = "../rle", package = "loro-rle" }
tracing-wasm = "0.2.1"
tracing = { version = "0.1", features = ["release_max_level_warn"] }
serde_json = "1"
smallvec = "1.11.2"
arrayvec = "0.7.4"
[features]
default = []