feat: Add optional Request::basic_auth utility function
This function adds a dependency on `base64` and is thus gated behind the (enabled by default) `basic_auth` feature.
This commit is contained in:
parent
bd726c7d4c
commit
de16d9698d
3 changed files with 29 additions and 1 deletions
|
|
@ -4,10 +4,12 @@ version = "0.1.0"
|
|||
authors = ["Vincent Ambo <mail@tazj.in>"]
|
||||
|
||||
[features]
|
||||
default = [ "json" ]
|
||||
default = [ "json", "basic_auth" ]
|
||||
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 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue