mirror of
https://github.com/enso-org/enso.git
synced 2024-12-19 05:11:34 +03:00
6a56ceb147
This PR disables the wasm-opt optimization in the crates that can be used as WASM entry points. Unfortunately, wasm-pack does not allow for disabling wasm-opt through a command line flag, so we have to disable it by setting an appropriate flag in each Cargo.toml.
27 lines
857 B
TOML
27 lines
857 B
TOML
[package]
|
|
name = "enso-span-tree-example"
|
|
version = "0.1.0"
|
|
authors = ["Enso Team <contact@enso.org>"]
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
ast = { path = "../../ast/impl" }
|
|
enso-text = { path = "../../../../../lib/rust/text" }
|
|
span-tree = { path = "../../span-tree" }
|
|
enso-web = { path = "../../../../../lib/rust/web" }
|
|
enso-prelude = { path = "../../../../../lib/rust/prelude" }
|
|
enso-logger = { path = "../../../../../lib/rust/logger" }
|
|
wasm-bindgen = { version = "0.2.78", features = ["nightly", "serde-serialize"] }
|
|
uuid = { version = "0.8", features = ["serde", "v4", "wasm-bindgen"] }
|
|
|
|
[dependencies.web-sys]
|
|
version = "0.3.4"
|
|
features = []
|
|
|
|
# Stop wasm-pack from running wasm-opt, because we run it from our build scripts in order to customize options.
|
|
[package.metadata.wasm-pack.profile.release]
|
|
wasm-opt = false
|