Unify use of the surf crate (#3855)

This brings the features used by the `nu_plugin_fetch` and
`nu_plugin_post` in line and drops the default-features, reducing
the number of pulled-in dependencies and avoiding a second round of
compilations.

Retry of #3777 but with different features, post and fetch plugin tested

Signed-off-by: Daniel Egger <daniel@eggers-club.de>
This commit is contained in:
Daniel Egger
2021-07-29 09:26:38 +02:00
committed by GitHub
parent b190051e15
commit 7f7af2bbaa
3 changed files with 121 additions and 371 deletions

View File

@ -16,7 +16,7 @@ nu-errors = { path="../nu-errors", version = "0.34.1" }
nu-plugin = { path="../nu-plugin", version = "0.34.1" }
nu-protocol = { path="../nu-protocol", version = "0.34.1" }
nu-source = { path="../nu-source", version = "0.34.1" }
surf = { version="2.2.0", features=["hyper-client"] }
surf = { version="2.2.0", default-features = false, features=["h1-client"] }
url = "2.2.1"
mime = "0.3.16"

View File

@ -19,7 +19,7 @@ nu-protocol = { path="../nu-protocol", version = "0.34.1" }
nu-source = { path="../nu-source", version = "0.34.1" }
num-traits = "0.2.12"
serde_json = "1.0.57"
surf = "2.2.0"
surf = { version="2.2.0", default-features = false, features=["h1-client"] }
url = "2.1.1"
[features]