Read-only mirror of github.com/ondeinference/ed.
Mirrored from https://github.com/ondeinference/ed.git
Synced Nov 23, 01:00 UTC
| 1 | [package] |
| 2 | name = "web-chat" |
| 3 | version = "0.1.0" |
| 4 | edition = "2021" |
| 5 | rust-version = "1.94" |
| 6 | description = "Ed running a model entirely in the browser, in a Web Worker." |
| 7 | license = "MIT OR Apache-2.0" |
| 8 | publish = false |
| 9 | |
| 10 | [lib] |
| 11 | crate-type = ["cdylib"] |
| 12 | |
| 13 | [dependencies] |
| 14 | ed-agent = { path = "../../crates/ed-agent" } |
| 15 | # Used only for web_store::download_model; ed-agent does not re-export it. The |
| 16 | # browser engine and web_store arrived in onde 1.5.0. |
| 17 | onde = "1.5.0" |
| 18 | wasm-bindgen = "0.2" |
| 19 | wasm-bindgen-futures = "0.4" |
| 20 | js-sys = "0.3" |
| 21 | serde = { version = "1", features = ["derive"] } |
| 22 | serde-wasm-bindgen = "0.6" |
| 23 | console_error_panic_hook = "0.1" |
| 24 | |
| 25 | [profile.release] |
| 26 | opt-level = 3 |
| 27 | lto = true |
| 28 | codegen-units = 1 |
| 29 | |
| 30 | [package.metadata.wasm-pack.profile.release] |
| 31 | # wasm-opt is downloaded at build time and needs SIMD flags to match the |
| 32 | # +simd128 build; skip it so the build has no network step beyond cargo. |
| 33 | wasm-opt = false |