Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(#3): add a workaround for stripped wasm symbols #4

Closed

Conversation

piotr-roslaniec
Copy link

No description provided.

@@ -17,6 +17,16 @@ env:
RUSTFLAGS: "-Dwarnings"

jobs:
build:
Copy link
Author

Choose a reason for hiding this comment

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

Just to document the fix

Copy link
Owner

Choose a reason for hiding this comment

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

I don't think it is necessary. The bug seems to be in wasm-bindgen, so we shouldn't add any regressions for it.

@@ -3,3 +3,6 @@ members=[
'wasm-bindgen-derive',
'tests'
]

[profile.release]
opt-level = 1
Copy link
Owner

Choose a reason for hiding this comment

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

Please add an explanation and a link to rustwasm/wasm-bindgen#3457 here.

I am still not quite sure how to reproduce the bug properly; when compiling wasm-bindgen-derive, it only occurs for a release build, but in my test above it happens in both release and debug builds (and in the failed nucypher-core CI it also happened in debug, namely during a clippy run)

@fjarri
Copy link
Owner

fjarri commented Jun 2, 2023

Small nitpick, you can just write "Fixes #3" in the PR description, that will link the issue, and close it automatically on merge.

Also, if I understand it correctly, adding profile.release only fixes the build of this crate, but not any dependent crates, right? So perhaps we should mention in the docs that the workaround is adding that opt-level in the release profile, and link the wasm-bindgen issue.

@codecov
Copy link

codecov bot commented Jun 2, 2023

Codecov Report

Merging #4 (d13475a) into master (955ed47) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master       #4   +/-   ##
=======================================
  Coverage   80.91%   80.91%           
=======================================
  Files           1        1           
  Lines         131      131           
=======================================
  Hits          106      106           
  Misses         25       25           

@fjarri
Copy link
Owner

fjarri commented Jun 3, 2023

Closing in favor of #5

@fjarri fjarri closed this Jun 3, 2023
@piotr-roslaniec piotr-roslaniec deleted the opt-workaround branch June 4, 2023 07:59
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