File: inline-clap-cargo.patch

package info (click to toggle)
rust-tokei 13.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 524 kB
  • sloc: makefile: 10
file content (15 lines) | stat: -rw-r--r-- 927 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Inline the 1 styling used from clap-cargo
Forwarded: not-needed
Last-Update: 2025-11-25
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -94,2 +94,2 @@
-[dependencies.clap-cargo]
-version = "0.13.0"
+[dependencies.anstyle] # was clap-cargo
+version = "1" # was clap-cargo 0.13
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -62 +62 @@
-            .styles(clap_cargo::style::CLAP_STYLING)
+            .styles({ use anstyle::{AnsiColor, Effects}; clap::builder::styling::Styles::styled().header(AnsiColor::BrightGreen.on_default().effects(Effects::BOLD)).usage(AnsiColor::BrightGreen.on_default().effects(Effects::BOLD)).literal(AnsiColor::BrightCyan.on_default().effects(Effects::BOLD)).placeholder(AnsiColor::Cyan.on_default()).error(AnsiColor::BrightRed.on_default().effects(Effects::BOLD)).valid(AnsiColor::BrightCyan.on_default().effects(Effects::BOLD)).invalid(AnsiColor::Yellow.on_default())}/*clap_cargo::style::CLAP_STYLING*/)