Skip to content

Commit bc2bc6d

Browse files
committed
Actually try to minimize the size
1 parent 8d74e50 commit bc2bc6d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Diff for: Cargo.toml

+5
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ members = [
44
"dev-server",
55
"xtask",
66
]
7+
8+
[profile.release]
9+
lto = "fat"
10+
codegen-units = 1
11+
opt-level = 's'

Diff for: wasm-module/Cargo.toml

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@ crate-type = ["cdylib"]
1212
default = ["console_error_panic_hook"]
1313

1414
[dependencies]
15-
rhai = { version = "0.15", features = [ "only_i64" ] }
15+
rhai = { version = "0.15", features = [ "only_i64", "no_module", "no_optimize", "unchecked" ] }
1616
wasm-bindgen = "0.2"
1717
js-sys = "*"
1818

1919
console_error_panic_hook = { version = "0.1", optional = true }
20-
21-
[profile.release]
22-
opt-level = 's'

0 commit comments

Comments
 (0)