mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
feat: make reqwest an optional dependency (#979)
This commit is contained in:
+3
-2
@@ -21,7 +21,8 @@ is-it-maintained-open-issues = { repository = "starship/starship" }
|
||||
maintenance = { status = "actively-developed" }
|
||||
|
||||
[features]
|
||||
default = ["battery"]
|
||||
default = ["battery", "http"]
|
||||
http = ["reqwest"]
|
||||
|
||||
[dependencies]
|
||||
clap = "2.33.0"
|
||||
@@ -52,7 +53,7 @@ urlencoding = "1.0.0"
|
||||
open = "1.3.4"
|
||||
# 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, features = ["blocking", "rustls-tls"] }
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user