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: correct wasm target condition #1018

Merged
merged 1 commit into from
May 9, 2024
Merged

fix: correct wasm target condition #1018

merged 1 commit into from
May 9, 2024

Conversation

itsjunetime
Copy link
Contributor

As of this blog post, rust nightly checks cfg annotations to make sure they are valid and actually refer to a real cfg. Using one of the recent versions of nightly, I started to get warnings that cfg(wasm) isn't a real cfg, so this config prevents compilation of that block in all instances.

In this PR, I fixed it to actually only compile under wasm, as per the reference on conditional compilation

Copy link
Owner

@sxyazi sxyazi left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@sxyazi sxyazi changed the title Fix cfg(wasm) to correctly target wasm fix: correct wasm target condition May 9, 2024
@sxyazi sxyazi merged commit 6ff42c1 into sxyazi:main May 9, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants