Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
139 lines (122 loc) · 4.02 KB
/
Copy pathCargo.toml
File metadata and controls
139 lines (122 loc) · 4.02 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
[package]
name = "claude-code-rust"
version = "0.16.3"
edition = "2024"
rust-version = "1.88.0"
license = "Apache-2.0"
description = "A native Rust terminal interface for Claude Code"
repository = "https://github.com/srothgan/claude-code-rust"
keywords = ["cli", "tui", "claude", "ai", "terminal"]
categories = ["command-line-interface"]
default-run = "claude-rs"
[lib]
name = "claude_code_rust"
path = "src/lib.rs"
[[bin]]
name = "claude-rs"
path = "src/main.rs"
[dependencies]
jiff = "1.0.3"
pure-rust-locales = "0.8.2"
sys-locale = "0.3.2"
anyhow = "1.0.101"
arboard = { version = "3.6.1", features = ["image-data", "wayland-data-control"] }
base64 = { version = "0.23", default-features = false, features = ["std"] }
image = { version = "0.25", default-features = false, features = ["png"] }
clap = { version = "4.6.1", features = ["derive"] }
clap_complete = "4"
clap_mangen = "0.3"
# Level-triggered Unix polling preserves stdin readiness when SIGWINCH and
# keyboard input arrive together; the TUI owns a stoppable input reader.
crossterm = { version = "0.29.0", features = ["use-dev-tty"] }
dirs = "7.0.0"
fastrand = "2.4.1"
fs4 = { version = "1.1.0", default-features = false, features = ["sync"] }
futures = "0.3.31"
ignore = "0.4.25"
libc = "0.2"
notify = "8.2.0"
notify-rust = "4.17.0"
nucleo = "0.5.0"
pulldown-cmark = "0.13.4"
ratatui = { version = "0.30.1", features = ["unstable-rendered-line-info", "scrolling-regions"] }
reqwest = { version = "0.13.4", default-features = false, features = ["json", "rustls"] }
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.150"
similar = "3.1"
# Keep the regex backend aligned with two-face's syntax bundle. Oniguruma avoids
# the expensive TypeScript parsing seen with fancy-regex during reads and resume.
syntect = { version = "5.3.0", default-features = false, features = ["default-onig"] }
thiserror = "2.0.18"
tokio = { version = "1.52.3", features = [
"io-util",
"macros",
"process",
"rt-multi-thread",
"signal",
"sync",
"time",
] }
tracing = "0.1.44"
tracing-appender = "0.2.5"
tracing-subscriber = { version = "0.3.22", features = ["env-filter", "json"] }
time = { version = "0.3.47", features = ["formatting", "macros", "parsing"] }
two-face = { version = "0.5.1", default-features = false, features = ["syntect-onig"] }
tui-markdown = { version = "0.3.11", default-features = false }
tui-textarea-2 = "0.13.0"
unicode-segmentation = "1.13.3"
unicode-width = "0.2.2"
uuid = { version = "1.23.2", features = ["v4"] }
which = "8.0.2"
zip = { version = "9.0.4", default-features = false, features = ["deflate", "time"] }
[profile.dev]
debug = "line-tables-only"
incremental = false
[profile.dev.package."*"]
debug = false
[profile.dev.build-override]
debug = false
[profile.test]
debug = "line-tables-only"
incremental = false
[profile.test.package."*"]
debug = false
[profile.test.build-override]
debug = false
[dev-dependencies]
portable-pty = "0.9"
pretty_assertions = "1.4"
tempfile = "3.25.0"
tokio = { version = "1.52.3", features = ["test-util"] }
vt100 = "0.18"
[lints.clippy]
# Deny panic-prone operations in production code (tests exempted via clippy.toml)
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
# CLI tools legitimately print to stdout/stderr
print_stdout = "allow"
print_stderr = "allow"
# Pedantic with noisy exceptions disabled
pedantic = { level = "warn", priority = -1 }
module_name_repetitions = "allow"
must_use_candidate = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
# Lint categories
correctness = { level = "deny", priority = -1 }
suspicious = { level = "warn", priority = -1 }
perf = { level = "warn", priority = -1 }
complexity = { level = "warn", priority = -1 }
style = { level = "warn", priority = -1 }
# CLI-specific
exit = "deny"
shadow_same = "warn"
shadow_unrelated = "allow"
str_to_string = "warn"
[lints.rust]
unsafe_code = "warn"
# Local rendering fixes until upstream releases contain them.
[patch.crates-io]
tui-markdown = { path = "third-party/tui-markdown" }
tui-textarea-2 = { path = "third-party/tui-textarea" }