-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
143 lines (122 loc) · 3.66 KB
/
Cargo.toml
File metadata and controls
143 lines (122 loc) · 3.66 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# SPDX-FileCopyrightText: 2026 Sephyi <me@sephy.io>
#
# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
[package]
name = "commitbee"
version = "0.6.0"
edition = "2024"
rust-version = "1.94"
description = "AI-powered commit message generator using tree-sitter semantic analysis and local LLMs"
license = "AGPL-3.0-only OR LicenseRef-Commercial"
repository = "https://github.com/Sephyi/commitbee"
readme = "README.md"
keywords = [
"git",
"commit-message",
"conventional-commits",
"tree-sitter",
"llm",
]
categories = ["development-tools", "command-line-utilities"]
exclude = [".github/", "tests/snapshots/"]
[dependencies]
# CLI
clap = { version = "4.5", features = ["derive", "env"] }
clap_complete = "4.5"
# Async runtime
tokio = { version = "1.50", features = [
"rt-multi-thread",
"macros",
"signal",
"sync",
"process",
] }
tokio-stream = "0.1"
tokio-util = "0.7"
# Parallelism (CPU-bound work: tree-sitter parsing)
rayon = "1.11"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "1.1"
# Config & paths
directories = "6.0"
figment = { version = "0.10", features = ["toml", "env"] }
# HTTP client
reqwest = { version = "0.13", features = ["json", "stream"] }
# Git (pure Rust) - minimal features
gix = { version = "0.80", default-features = false, features = ["revision"] }
# Code analysis
tree-sitter = "0.26"
# Language grammars (all optional, all enabled by default)
tree-sitter-rust = { version = "0.24", optional = true }
tree-sitter-typescript = { version = "0.23", optional = true }
tree-sitter-python = { version = "0.25", optional = true }
tree-sitter-go = { version = "0.25", optional = true }
tree-sitter-javascript = { version = "0.25", optional = true }
tree-sitter-java = { version = "0.23", optional = true }
tree-sitter-c = { version = "0.24", optional = true }
tree-sitter-cpp = { version = "0.23", optional = true }
tree-sitter-ruby = { version = "0.23", optional = true }
tree-sitter-c-sharp = { version = "0.23", optional = true }
# Error handling
thiserror = "2.0"
miette = { version = "7.6", features = ["fancy"] }
# Terminal UI
dialoguer = "0.12"
console = "0.16"
indicatif = "0.18"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Secret management
secrecy = { version = "0.10", features = ["serde"] }
# Utilities
regex = "1.12"
globset = "0.4"
arboard = "3.4"
# Secure storage (optional, platform-native keychain backends)
[target.'cfg(target_os = "macos")'.dependencies]
keyring = { version = "3", optional = true, features = ["apple-native"] }
[target.'cfg(target_os = "windows")'.dependencies]
keyring = { version = "3", optional = true, features = ["windows-native"] }
[target.'cfg(target_os = "linux")'.dependencies]
keyring = { version = "3", optional = true, features = ["linux-native"] }
[features]
default = ["secure-storage", "all-languages"]
secure-storage = ["keyring"]
eval = []
lang-rust = ["tree-sitter-rust"]
lang-typescript = ["tree-sitter-typescript"]
lang-javascript = ["tree-sitter-javascript"]
lang-python = ["tree-sitter-python"]
lang-go = ["tree-sitter-go"]
lang-java = ["tree-sitter-java"]
lang-c = ["tree-sitter-c"]
lang-cpp = ["tree-sitter-cpp"]
lang-ruby = ["tree-sitter-ruby"]
lang-csharp = ["tree-sitter-c-sharp"]
all-languages = [
"lang-rust",
"lang-typescript",
"lang-javascript",
"lang-python",
"lang-go",
"lang-java",
"lang-c",
"lang-cpp",
"lang-ruby",
"lang-csharp",
]
[profile.release]
lto = "fat"
strip = "symbols"
codegen-units = 1
overflow-checks = true
[dev-dependencies]
tempfile = "3.26"
assert_cmd = "2.0"
predicates = "3.1"
wiremock = "0.6"
insta = { version = "1.42", features = ["yaml"] }
proptest = "1.6"