Unify use of the surf crate (#3777)

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.

Signed-off-by: Daniel Egger <daniel@eggers-club.de>
This commit is contained in:
Daniel Egger
2021-07-14 15:47:49 +02:00
committed by GitHub
parent bb218b824e
commit 37612345f2
3 changed files with 2 additions and 113 deletions

View File

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

View File

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