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

Add support for target_feature cfgs #142

Closed
wants to merge 1 commit into from

Conversation

kristoff3r
Copy link
Contributor

This PR adds support for target-feature cfgs, by allowing users to specify the target features manually. As the gotchas page notes this is potentially unsafe, so I'm very open to suggestions on more automated / safer ways to do this.

My use case is a project that depends on the sha crate, which runs fine when I supply [ "sha" "sse2" ] as targetFeatures.

This fixes #136.

@danieldk
Copy link
Contributor

Thank you! I have been using this in one of my projects where I hit the same issue as #136 and it works like a charm!

@kolloch
Copy link
Collaborator

kolloch commented Nov 28, 2020

merged

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.

Cannot compile 'wasm-bindgen-futures' due conditional dependency on target feature
3 participants