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

Mitigate linker error from Rust compiler #123

Merged
merged 11 commits into from
Jun 25, 2023
Merged

Mitigate linker error from Rust compiler #123

merged 11 commits into from
Jun 25, 2023

Conversation

futursolo
Copy link
Owner

Fix #120

Fix #121

This pull request implements mitigates rust-lang/rust#111888 by implementing a temporary feature gate on stylist-core to disable JsValue.

@futursolo futursolo changed the title Test workaround Mitigate linker error from Rust compiler Jun 6, 2023
Copy link
Collaborator

@WorldSEnder WorldSEnder left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Initially, I found confusing info about the feature unification of dependencies of proc-macros, but it seems to me now that features of dependencies of proc macros and features of normal dependencies are not unified, So the proc macro, targeting not(target_arch = "wasm32"), should correctly activate __proc_macro_workaround, while the rest of rest of the crate depends on stylist-core without that feature as usual.

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.

Importing JsValue in a proc_macro causes a compilation error on recent nightly's
3 participants