mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
improvement: replace reqwest with attohttpc (#999)
This commit is contained in:
+8
-4
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user