feat: Created a theme validation macro to verify theme configurations before allowing the TUI to start

This commit is contained in:
2025-03-05 14:37:34 -07:00
parent fd14a8152c
commit 72c922b311
6 changed files with 151 additions and 44 deletions
+13 -4
View File
@@ -13,6 +13,9 @@ license = "MIT"
rust-version = "1.82.0"
exclude = [".github", "CONTRIBUTING.md", "*.log", "tags"]
[workspace]
members = ["proc_macros/validate_theme_derive"]
[dependencies]
anyhow = "1.0.68"
backtrace = "0.3.74"
@@ -41,11 +44,16 @@ ratatui = { version = "0.29.0", features = [
"unstable-widget-ref",
] }
urlencoding = "2.1.2"
clap = { version = "4.5.20", features = ["derive", "cargo", "env", "wrap_help"] }
clap = { version = "4.5.20", features = [
"derive",
"cargo",
"env",
"wrap_help",
] }
clap_complete = "4.5.33"
itertools = "0.13.0"
itertools = "0.14.0"
ctrlc = "3.4.5"
colored = "2.1.0"
colored = "3.0.0"
async-trait = "0.1.83"
dirs-next = "2.0.0"
managarr-tree-widget = "0.24.0"
@@ -55,13 +63,14 @@ deunicode = "1.6.0"
paste = "1.0.15"
openssl = { version = "0.10.70", features = ["vendored"] }
veil = "0.2.0"
validate_theme_derive = { path = "proc_macros/validate_theme_derive" }
[dev-dependencies]
assert_cmd = "2.0.16"
mockall = "0.13.0"
mockito = "1.0.0"
pretty_assertions = "1.3.0"
rstest = "0.23.0"
rstest = "0.25.0"
serial_test = "3.2.0"
[dev-dependencies.cargo-husky]