Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
49 lines (41 loc) · 1.67 KB
/
Copy pathCargo.toml
File metadata and controls
49 lines (41 loc) · 1.67 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
[package]
name = "byebyecode"
version = "1.1.28"
edition = "2021"
description = "byebyecode - Claude Code Wrapper with Translation, Usage Tracking and Enhanced Features"
authors = ["byebyecode Team"]
license = "MIT"
repository = "https://github.com/byebyecode/byebyecode"
readme = "README.md"
keywords = ["claude", "statusline", "translation", "byebyecode", "claude-code"]
categories = ["command-line-utilities", "development-tools"]
[[bin]]
name = "byebyecode"
path = "src/main.rs"
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
clap = { version = "4.0", features = ["derive"] }
toml = "0.8"
ratatui = { version = "0.29", optional = true }
crossterm = { version = "0.28", optional = true }
ansi_term = { version = "0.12", optional = true }
ansi-to-tui = { version = "7.0", optional = true }
ureq = { version = "2.10", features = ["json"], optional = true }
semver = { version = "1.0", optional = true }
chrono = { version = "0.4", features = ["serde"], optional = true }
dirs = { version = "5.0", optional = true }
regex = "1.0"
reqwest = { version = "0.11", default-features = false, features = ["json", "blocking", "rustls-tls", "gzip"] }
base64 = "0.21"
which = "6.0"
[features]
default = ["tui", "self-update", "dirs"]
tui = ["ratatui", "crossterm", "ansi_term", "ansi-to-tui", "chrono"]
self-update = ["ureq", "semver", "chrono", "dirs"]
[profile.release]
strip = true # 移除调试符号,能减少约 2-3MB
lto = true # 链接时优化,减少重复代码
codegen-units = 1 # 更好的优化,略微增加编译时间
opt-level = "z" # 优化文件大小(或用 "s")
panic = "abort" # 移除 panic 展开代码