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 native-client feature #265

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

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.

None yet

2 participants