| 1 | [package] |
| 2 | name = "macltok-web" |
| 3 | version = "0.1.0" |
| 4 | edition = "2024" |
| 5 | publish = false |
| 6 | |
| 7 | [workspace] |
| 8 | |
| 9 | [lib] |
| 10 | crate-type = ["cdylib", "rlib"] |
| 11 | |
| 12 | [features] |
| 13 | default = ["store"] |
| 14 | # the flake reads the macltok store feature name from here |
| 15 | store = ["macltok/indexeddb"] |
| 16 | |
| 17 | [dependencies] |
| 18 | macltok = { path = "../.." } |
| 19 | wasm-bindgen = "0.2" |
| 20 | wasm-bindgen-futures = "0.4" |
| 21 | futures-channel = "0.3" |
| 22 | |
| 23 | [dev-dependencies] |
| 24 | js-sys = "0.3" |
| 25 | wasm-bindgen-test = "0.3" |
| 26 | web-sys = { version = "0.3", features = ["DedicatedWorkerGlobalScope"] } |
| 27 | |
| 28 | [profile.release] |
| 29 | opt-level = "z" |
| 30 | lto = true |
| 31 | codegen-units = 1 |
| 32 | panic = "abort" |
| 33 | strip = true |