improvement: replace reqwest with attohttpc (#999)

This commit is contained in:
David Knaack
2020-03-15 02:07:34 +01:00
committed by GitHub
parent 8479e72b3e
commit fef8cc8bbd
4 changed files with 92 additions and 667 deletions
+8 -4
View File
@@ -22,7 +22,10 @@ maintenance = { status = "actively-developed" }
[features]
default = ["battery", "http"]
http = ["reqwest"]
http = ["attohttpc"]
# Vendor OpenSSL, use this if you have trouble cross-compiling starship
tls-vendored = ["native-tls/vendored"]
[dependencies]
clap = "2.33.0"
@@ -51,13 +54,14 @@ regex = "1.3.5"
os_info = "2.0.1"
urlencoding = "1.0.0"
open = "1.4.0"
# OpenSSL causes problems when building a MUSL release. Opting to use native SSL implementation
# see: https://github.com/richfelker/musl-cross-make/issues/65#issuecomment-509790889
reqwest = { version = "0.10.4", default-features = false, optional = true, features = ["blocking", "rustls-tls"] }
unicode-width = "0.1.7"
textwrap = "0.11.0"
term_size = "0.3.1"
# Optional/http:
attohttpc = { version = "0.12.0", optional = true, default-features = false, features = ["tls", "form"] }
native-tls = { version = "0.2", optional = true }
[dev-dependencies]
tempfile = "3.1.0"