-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathCargo.toml
More file actions
222 lines (198 loc) · 7.75 KB
/
Copy pathCargo.toml
File metadata and controls
222 lines (198 loc) · 7.75 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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
[package]
name = "git-iris"
version = "2.1.0"
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.102"
arboard = "3.6"
async-trait = "0.1.89"
chrono = { version = "0.4.44", features = ["serde"] }
clap = { version = "4.6.1", features = ["derive", "cargo"] }
clap_complete = "4.6"
colored = "3.1"
crossterm = "0.29"
dirs = "6.0.0"
futures = "0.3.32"
git2 = "0.20.4"
ignore = "0.4"
indicatif = "0.18.4"
gh-token = "0.1.8"
notify = "8.2"
notify-debouncer-full = "0.7.0"
lru = "0.18.0"
octocrab = "0.49.9"
parking_lot = "0.12.5"
pulldown-cmark = "0.13"
rand = "0.10.1"
opaline = { version = "0.4.0", features = ["ratatui", "gradients", "global-state", "builtin-themes", "discovery", "cli"] }
ratatui = "0.30.0"
regex = "1.12"
reqwest = { version = "0.13.3", features = ["json"] }
rig = { package = "rig-core", version = "0.37.0", features = ["derive"] }
rustls = { version = "0.23", default-features = false, features = ["aws_lc_rs", "std"] }
schemars = "1.2"
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.149"
strum = "0.28.0"
strum_macros = "0.28.0"
syntect = { version = "5.3", default-features = false, features = ["default-syntaxes", "default-themes", "regex-onig"] }
tempfile = "3.27.0"
textwrap = "0.16.2"
thiserror = "2.0.18"
tokio = { version = "1.52.1", features = ["full"] }
tokio-util = { version = "0.7", default-features = false, features = ["rt"] }
toml = "1.1.2"
tracing = "0.1.44"
tracing-subscriber = { version = "0.3.23", features = ["env-filter", "fmt", "time", "json", "chrono"] }
ratatui-textarea = "0.9.1"
unicode-width = "0.2"
url = "2.5.8"
uuid = { version = "1.23.1", features = ["v4", "serde"] }
[dev-dependencies]
dotenvy = "0.15"
[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
# Panic / silent-failure / hygiene warnings (Schwartz-style restriction picks).
# Restriction lints are not in `clippy::all`, so these are additive.
# `await_holding_lock` / `await_holding_refcell_ref` are NOT listed — they
# live in `clippy::suspicious` and are already covered by `all = deny`.
panic = { level = "warn", priority = 31 }
unimplemented = { level = "warn", priority = 31 }
let_underscore_future = { level = "warn", priority = 31 }
unchecked_time_subtraction = { level = "warn", priority = 31 }
# Deferred — pending focused migration PRs:
# indexing_slicing many `vec[i]` sites; out_of_bounds_indexing
# already covers the compile-time bug class
# string_slice ~38 sites; many ASCII-safe by construction
# unreachable idiomatic for invariant assertions
# let_underscore_must_use each site needs review for intentional discard
# allow_attributes requires rewriting every #[allow] to #[expect(reason)]
# allow_attributes_without_reason same
indexing_slicing = { level = "allow", priority = 31 }
string_slice = { level = "allow", priority = 31 }
unreachable = { level = "allow", priority = 31 }
let_underscore_must_use = { level = "allow", priority = 31 }
allow_attributes = { level = "allow", priority = 31 }
allow_attributes_without_reason = { level = "allow", priority = 31 }
# 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" },
]