-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathCargo.toml
More file actions
197 lines (174 loc) · 6.21 KB
/
Cargo.toml
File metadata and controls
197 lines (174 loc) · 6.21 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
[package]
name = "git-iris"
version = "2.0.6"
edition = "2024"
authors = ["Stefanie Jane <stef@hyperbliss.tech>"]
description = "AI-powered Git workflow assistant for smart commits, code reviews, changelogs, and release notes"
readme = "README.md"
homepage = "https://github.com/hyperb1iss/git-iris"
repository = "https://github.com/hyperb1iss/git-iris"
license = "Apache-2.0"
keywords = ["git", "ai", "cli", "devtools", "productivity"]
categories = ["command-line-utilities", "development-tools"]
exclude = [
"docs/",
"docker/",
"homebrew/",
"aur/",
".github/",
"*.md",
"!README.md",
"CHANGELOG.md",
]
[lib]
name = "git_iris"
path = "src/lib.rs"
[[bin]]
name = "git-iris"
path = "src/main.rs"
[features]
integration = []
[dependencies]
anyhow = "1.0.86"
arboard = "3.4"
async-trait = "0.1.88"
chrono = { version = "0.4.38", features = ["serde"] }
clap = { version = "4.5.36", features = ["derive", "cargo"] }
clap_complete = "4.5"
colored = "3.0.0"
crossterm = "0.29"
dirs = "6.0.0"
futures = "0.3.30"
git2 = "0.20.1"
ignore = "0.4"
indicatif = "0.18.3"
log = "0.4.27"
notify = "8.0"
notify-debouncer-full = "0.6.0"
lru = "0.16.2"
parking_lot = "0.12.1"
pulldown-cmark = "0.13"
rand = "0.9.0"
opaline = { version = "0.2.0", features = ["ratatui", "gradients", "global-state", "builtin-themes", "discovery", "cli"] }
ratatui = "0.30.0"
regex = "1.10.6"
reqwest = { version = "0.12.15", features = ["json"] }
rig-core = { version = "0.27.0", features = ["derive"] }
schemars = "1.0"
serde = { version = "1.0.209", features = ["derive"] }
serde_json = "1.0.127"
strum = "0.27.1"
strum_macros = "0.27.1"
syntect = { version = "5.2", default-features = false, features = ["default-syntaxes", "default-themes", "regex-onig"] }
tempfile = "3.19.1"
textwrap = "0.16.1"
thiserror = "2.0.4"
tokio = { version = "1.44.2", features = ["full"] }
tokio-util = "0.7"
toml = "0.9.10"
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "fmt", "time", "json", "chrono"] }
ratatui-textarea = "0.8.0"
unicode-width = "0.2"
url = "2.5.0"
uuid = { version = "1.11.0", features = ["v4", "serde"] }
[dev-dependencies]
dotenv = "0.15.0"
[lints.rust]
unsafe_code = "forbid"
missing_docs = { level = "allow", priority = 1 }
[lints.clippy]
# Base lint groups
all = { level = "deny", priority = 0 }
style = { level = "warn", priority = 1 }
perf = { level = "deny", priority = 1 }
# Pedantic lints
pedantic = { level = "deny", priority = 10 }
# Documentation allowances
missing_errors_doc = { level = "allow", priority = 20 }
missing_panics_doc = { level = "allow", priority = 20 }
missing_safety_doc = { level = "allow", priority = 20 }
# Code style allowances - These remain allowed for pragmatic reasons
module_name_repetitions = { level = "allow", priority = 21 }
significant_drop_tightening = { level = "allow", priority = 21 }
must_use_candidate = { level = "allow", priority = 21 }
# Numeric casting and conversion warnings
cast_precision_loss = { level = "warn", priority = 22 }
cast_possible_truncation = { level = "warn", priority = 22 }
cast_sign_loss = { level = "warn", priority = 22 }
as_conversions = { level = "warn", priority = 22 }
# Safety-critical denials
out_of_bounds_indexing = { level = "deny", priority = 30 }
enum_glob_use = { level = "deny", priority = 30 }
unwrap_used = { level = "deny", priority = 30 }
undocumented_unsafe_blocks = { level = "deny", priority = 30 }
# Development/debugging lints
dbg_macro = { level = "warn", priority = 31 }
todo = { level = "warn", priority = 31 }
#print_stdout = { level = "warn", priority = 31 } # CLI should use proper output mechanisms
# Async-specific lints (important for tokio-heavy codebase)
future_not_send = { level = "warn", priority = 32 }
async_yields_async = { level = "warn", priority = 32 }
# String and collection efficiency
implicit_clone = { level = "warn", priority = 33 }
inefficient_to_string = { level = "warn", priority = 33 }
string_lit_as_bytes = { level = "warn", priority = 33 }
# Code complexity (helpful for maintainability)
too_many_lines = { level = "warn", priority = 34 }
cognitive_complexity = { level = "warn", priority = 34 }
# Error handling improvements
result_large_err = { level = "warn", priority = 35 }
# Modern Rust idioms
manual_let_else = { level = "warn", priority = 36 }
redundant_else = { level = "warn", priority = 36 }
semicolon_if_nothing_returned = { level = "warn", priority = 36 }
cloned_instead_of_copied = { level = "warn", priority = 36 }
flat_map_option = { level = "warn", priority = 36 }
from_iter_instead_of_collect = { level = "warn", priority = 36 }
needless_pass_by_value = { level = "warn", priority = 36 }
trivially_copy_pass_by_ref = { level = "warn", priority = 36 }
if_not_else = { level = "warn", priority = 36 }
match_same_arms = { level = "warn", priority = 36 }
needless_continue = { level = "warn", priority = 36 }
# Cargo manifest linting (multiple_crate_versions disabled - transitive deps)
multiple_crate_versions = { level = "allow", priority = 40 }
# Future considerations
#expect_used = { level = "deny", priority = 30 }
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[package.metadata.deb]
maintainer = "Stefanie Jane <stef@hyperbliss.tech>"
copyright = "2024, Git-Iris Contributors <https://github.com/hyperb1iss/git-iris>"
license-file = ["LICENSE", "4"]
extended-description = """
Git-Iris is an AI-powered tool designed to generate meaningful and context-aware Git commit messages.
"""
depends = "$auto"
section = "utility"
priority = "optional"
# Assets will be resolved relative to target directory by cargo-deb when using --target
assets = [
[
"target/release/git-iris",
"usr/bin/",
"755",
],
[
"README.md",
"usr/share/doc/git-iris/README",
"644",
],
[
"git-iris.1",
"usr/share/man/man1/git-iris.1",
"644",
],
]
[package.metadata.generate-rpm]
# Assets will be resolved relative to target directory by cargo-generate-rpm when using --target
assets = [
{ source = "target/release/git-iris", dest = "/usr/bin/git-iris", mode = "755" },
{ source = "README.md", dest = "/usr/share/doc/git-iris/README", mode = "644" },
{ source = "git-iris.1", dest = "/usr/share/man/man1/git-iris.1", mode = "644" },
]