refactor: Use cURL's own basic auth implementation

Drops the dependency on the base64-crate, which it turns out isn't
necessary as cURL has this built-in.
This commit is contained in:
Vincent Ambo 2019-02-26 17:54:11 +01:00
parent de86cc551a
commit acc7e64a0d
3 changed files with 15 additions and 21 deletions

View file

@ -9,12 +9,10 @@ license = "GPL-3.0-or-later"
repository = "https://github.com/tazjin/crimp"
[features]
default = [ "json", "basic_auth" ]
default = [ "json" ]
json = [ "serde", "serde_json"]
basic_auth = [ "base64" ]
[dependencies]
curl = "0.4"
serde = { version = "1.0", optional = true }
serde_json = { version = "1.0", optional = true }
base64 = { version = "0.10", optional = true }