2022-10-28 09:19:58 +00:00
|
|
|
[package]
|
|
|
|
name = "loro-wasm"
|
|
|
|
version = "0.1.0"
|
|
|
|
edition = "2021"
|
|
|
|
|
|
|
|
[lib]
|
|
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
js-sys = "0.3.60"
|
2022-11-01 09:51:17 +00:00
|
|
|
loro-core = { path = "../loro-core", features = ["wasm"] }
|
2022-10-28 09:19:58 +00:00
|
|
|
wasm-bindgen = "0.2.83"
|
2022-11-23 08:30:36 +00:00
|
|
|
serde-wasm-bindgen = { version = "0.4.5" }
|
2022-11-23 04:52:46 +00:00
|
|
|
console_error_panic_hook = { version = "0.1.6", optional = true }
|
|
|
|
|
|
|
|
[features]
|
|
|
|
default = ["console_error_panic_hook"]
|
2022-10-28 09:19:58 +00:00
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
# Tell `rustc` to optimize for small code size.
|
|
|
|
opt-level = "s"
|