Skip to content

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