Skip to content

Conversation

@lukaslueg
Copy link
Contributor

@lukaslueg lukaslueg commented Aug 10, 2018

This causes the proc-macro feature to be ignored for wasm-targets where proc-macro is not available. Currently, if a crate is to be built that depends on proc-macro2, the proc-macro feature from an actual proc-macro leaks into the build-environment of proc-macro2 even if default-features = [], causing the build to fail.

This patch enables me to build (and run) my crate on wasm-targets.

I don't know if the patch is actually fully correct or not. If it is, it would be nice to be pushed into a 0.4.10-release. stdweb has recently bumped its dependencies in order to wait for this patch in 0.4. There are also patches like this waiting for quote and syn.

@alexcrichton alexcrichton merged commit 5130ca9 into dtolnay:master Aug 12, 2018
@alexcrichton
Copy link
Contributor

Awesome, thanks!

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