Skip to content

Enable nontrapping-fptoint feature while invoking wasm-opt#543

Merged
gbj merged 1 commit into
leptos-rs:mainfrom
godvino:fix-strip
Jul 16, 2025
Merged

Enable nontrapping-fptoint feature while invoking wasm-opt#543
gbj merged 1 commit into
leptos-rs:mainfrom
godvino:fix-strip

Conversation

@godvino

@godvino godvino commented Jul 10, 2025

Copy link
Copy Markdown
Contributor

Without enabling this feature, trying to build a Leptos project in release profile with strip enabled results in errors such as:

[wasm-validator error in function 27] unexpected false: all used features should be allowed, on 
(i32.trunc_sat_f64_u
 (local.get $8)
)
[wasm-validator error in function 27] unexpected false: all used features should be allowed, on 
(i32.trunc_sat_f64_u
 (local.get $9)
)
[wasm-validator error in function 207] unexpected false: all used features should be allowed, on 
(i32.trunc_sat_f64_u
 (local.get $4)
)
Fatal: error validating input

See rust-lang/rust#137322

@gbj gbj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you!

@gbj gbj merged commit bc1205e into leptos-rs:main Jul 16, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants