refactor: 将 lazy_static 和 atty 替换为标准库实现以减少依赖

This commit is contained in:
2026-08-18 13:45:13 +08:00
parent a0ea03fd90
commit e6b8b344aa
4 changed files with 36 additions and 35 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "quicommit"
version = "0.6.0"
version = "0.6.1"
edition = "2024"
authors = ["Sidney Zhang <zly@lyzhang.me>"]
description = "A powerful Git assistant tool with AI-powered commit/tag/changelog generation"
@@ -19,11 +19,9 @@ path = "src/main.rs"
clap = { version = "4.5", features = ["derive", "env", "wrap_help"] }
clap_complete = "4.5"
dialoguer = "0.11"
console = "0.15"
indicatif = "0.17"
# Configuration management
config = "0.14"
serde = { version = "1.0", features = ["derive"] }
toml = "0.8"
dirs = "5.0"
@@ -32,7 +30,7 @@ dirs = "5.0"
git2 = "0.20.3"
which = "6.0"
tokio = { version = "1.35", features = ["full", "macros", "rt-multi-thread"] }
tokio = { version = "1.35", features = ["macros", "rt-multi-thread"] }
# Error handling
thiserror = "1.0"
@@ -44,20 +42,16 @@ tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }
# Utilities
chrono = { version = "0.4", features = ["serde"] }
regex = "1.10"
regex = { version = "1.10", default-features = false, features = ["std", "perf"] }
roxmltree = "0.20"
lazy_static = "1.4"
colored = "2.1"
handlebars = "5.1"
semver = "1.0"
walkdir = "2.4"
tempfile = "3.9"
sha2 = "0.10"
hex = "0.4"
textwrap = "0.16"
futures-util = "0.3"
serde_json = "1.0"
atty = "0.2"
# Encryption for sensitive data (SSH keys, GPG, etc.)
aes-gcm = "0.10"
@@ -71,8 +65,6 @@ keyring = { version = "3.6.3", features = ["apple-native", "windows-native", "sy
# Interactive editor
edit = "0.1"
# Shell completion generation
shell-words = "1.1"
# LLM integration (rig-core only: HTTP backend + rustls; no agent/derive)
rig-core = { version = "0.41", default-features = false, features = ["reqwest", "rustls"] }