-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
92 lines (77 loc) · 2.11 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
[package]
name = "git-ai"
version = "0.2.60"
edition = "2021"
description = "Git AI: Automates commit messages using ChatGPT. Stage your files, and Git AI generates the messages."
license = "MIT"
repository = "https://github.com/oleander/git-ai"
# https://github.com/oleander/git-ai/actions/runs/11872246630/artifacts/2196924470
[package.metadata.binstall]
targets = ["x86_64-unknown-linux-gnu", "x86_64-apple-darwin"]
pkg-binaries = ["git-ai", "git-ai-hook"]
name = "git-ai"
[lib]
name = "ai"
test = true
[[bin]]
name = "git-ai"
path = "src/main.rs"
[[bin]]
name = "git-ai-hook"
path = "src/bin/hook.rs"
[dependencies]
# Core functionality
anyhow = { version = "1.0.95", features = ["backtrace"] }
thiserror = "2.0.11"
tokio = { version = "1.43", features = ["full"] }
futures = "0.3"
parking_lot = "0.12.3"
tracing = "0.1"
# CLI and UI
colored = "3.0.0"
console = { version = "0.15.10", default-features = false }
indicatif = { version = "0.17.11", default-features = false }
log = "0.4.25"
env_logger = { version = "0.11.6", default-features = false }
# Git integration
git2 = { version = "0.20.0", default-features = false }
# Configuration
config = { version = "0.15.7", default-features = false, features = ["ini"] }
dotenv = "0.15.0"
serde = { version = "1.0", features = ["derive"] }
serde_derive = "1.0.217"
serde_ini = "0.2.0"
serde_json = "1.0"
# OpenAI integration
async-openai = { version = "0.27.2", default-features = false }
tiktoken-rs = "0.6.0"
reqwest = { version = "0.12.12", default-features = true }
# System utilities
openssl-sys = { version = "0.9.105", features = ["vendored"] }
rayon = "1.10.0"
num_cpus = "1.16.0"
rand = "0.9"
ctrlc = "3.4.5"
lazy_static = "1.5.0"
home = "0.5.11"
dirs = "6.0"
# Syntax highlighting and markdown rendering
syntect = { version = "5.2", default-features = false, features = [
"default-fancy",
] }
pulldown-cmark = "0.12"
comrak = "0.35"
textwrap = "0.16"
structopt = "0.3.26"
mustache = "0.9.0"
maplit = "1.0.2"
[dev-dependencies]
tempfile = "3.16.0"
[profile.release]
codegen-units = 1
opt-level = 3
debug = true
lto = true
[profile.release.package."*"]
codegen-units = 1
opt-level = 3