Skip to content

Commit 3eeb078

Browse files
fix: wasm-opt is broken by rust 1.87 (#761)
1 parent 0865ba0 commit 3eeb078

File tree

5 files changed

+69
-1
lines changed

5 files changed

+69
-1
lines changed

packages/compiler/Cargo.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,20 @@ no-content-hint = [
6969

7070
[lints]
7171
workspace = true
72+
73+
# https://github.com/trunk-rs/trunk/issues/991
74+
[package.metadata.wasm-pack.profile.profiling]
75+
wasm-opt = [
76+
'-O',
77+
'--enable-bulk-memory',
78+
'--enable-sign-ext',
79+
'--enable-nontrapping-float-to-int',
80+
]
81+
82+
[package.metadata.wasm-pack.profile.release]
83+
wasm-opt = [
84+
'-O',
85+
'--enable-bulk-memory',
86+
'--enable-sign-ext',
87+
'--enable-nontrapping-float-to-int',
88+
]

packages/ng/compiler/Cargo.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,20 @@ no-content-hint = [
7171

7272
[lints]
7373
workspace = true
74+
75+
# https://github.com/trunk-rs/trunk/issues/991
76+
[package.metadata.wasm-pack.profile.profiling]
77+
wasm-opt = [
78+
'-O',
79+
'--enable-bulk-memory',
80+
'--enable-sign-ext',
81+
'--enable-nontrapping-float-to-int',
82+
]
83+
84+
[package.metadata.wasm-pack.profile.release]
85+
wasm-opt = [
86+
'-O',
87+
'--enable-bulk-memory',
88+
'--enable-sign-ext',
89+
'--enable-nontrapping-float-to-int',
90+
]

packages/parser/Cargo.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,20 @@ default = ["full"]
4141

4242
[lints]
4343
workspace = true
44+
45+
# https://github.com/trunk-rs/trunk/issues/991
46+
[package.metadata.wasm-pack.profile.profiling]
47+
wasm-opt = [
48+
'-O',
49+
'--enable-bulk-memory',
50+
'--enable-sign-ext',
51+
'--enable-nontrapping-float-to-int',
52+
]
53+
54+
[package.metadata.wasm-pack.profile.release]
55+
wasm-opt = [
56+
'-O',
57+
'--enable-bulk-memory',
58+
'--enable-sign-ext',
59+
'--enable-nontrapping-float-to-int',
60+
]

packages/renderer/Cargo.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,20 @@ no-content-hint = [
104104

105105
[lints]
106106
workspace = true
107+
108+
# https://github.com/trunk-rs/trunk/issues/991
109+
[package.metadata.wasm-pack.profile.profiling]
110+
wasm-opt = [
111+
'-O',
112+
'--enable-bulk-memory',
113+
'--enable-sign-ext',
114+
'--enable-nontrapping-float-to-int',
115+
]
116+
117+
[package.metadata.wasm-pack.profile.release]
118+
wasm-opt = [
119+
'-O',
120+
'--enable-bulk-memory',
121+
'--enable-sign-ext',
122+
'--enable-nontrapping-float-to-int',
123+
]

packages/typst.ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,4 +345,4 @@
345345
"resolve.exports": "2.0.3",
346346
"tslib": "2.5.2"
347347
}
348-
}
348+
}

0 commit comments

Comments
 (0)