Skip to content

Conversation

MarcAntoine-Arnaud
Copy link

No description provided.

@Fishrock123
Copy link
Member

Why?

@MarcAntoine-Arnaud
Copy link
Author

MarcAntoine-Arnaud commented Feb 13, 2021

Why?

To select backend with the native-client for every target, and don't need to play with features for targets...
Without that I need to wrote:

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
surf = { version = "2.1.0", default-features = false, features = ["curl-client"] }

[target.'cfg(target_arch = "wasm32")'.dependencies]
surf = { version = "2.1.0", default-features = false, features = ["wasm-client"] }

With that we will be able to wrote:

surf = { version = "2.1.0", default-features = false, features = ["native-client"] }

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