diff --git a/Cargo.lock b/Cargo.lock index 10a55b05..f2f2e6f2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,6 +13,10 @@ name = "bpaf" version = "0.9.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3280efcf6d66bc77c2cf9b67dc8acee47a217d9be67dd590b3230dffe663724d" +dependencies = [ + "owo-colors", + "supports-color", +] [[package]] name = "cfg-if" @@ -62,6 +66,12 @@ dependencies = [ "hashbrown", ] +[[package]] +name = "is_ci" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7655c9839580ee829dfacba1d1278c2b7883e50a277ff7541299489d6bdfdc45" + [[package]] name = "lazy_static" version = "1.5.0" @@ -96,6 +106,12 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" +[[package]] +name = "owo-colors" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "caff54706df99d2a78a5a4e3455ff45448d81ef1bb63c22cd14052ca0e993a3f" + [[package]] name = "pin-project-lite" version = "0.2.14" @@ -175,6 +191,15 @@ dependencies = [ "syn", ] +[[package]] +name = "supports-color" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9829b314621dfc575df4e409e79f9d6a66a3bd707ab73f23cb4aa3a854ac854f" +dependencies = [ + "is_ci", +] + [[package]] name = "syn" version = "2.0.68" diff --git a/crates/hyfetch/Cargo.toml b/crates/hyfetch/Cargo.toml index 5309e6f3..5490ad66 100644 --- a/crates/hyfetch/Cargo.toml +++ b/crates/hyfetch/Cargo.toml @@ -21,5 +21,6 @@ tracing = { workspace = true, features = ["attributes", "std"] } tracing-subscriber = { workspace = true, features = ["ansi", "fmt", "smallvec", "std", "tracing-log"] } [features] -default = ["autocomplete"] +default = ["autocomplete", "color"] autocomplete = ["bpaf/autocomplete"] +color = ["bpaf/dull-color"]