-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
108 lines (95 loc) · 2.77 KB
/
Cargo.toml
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
[package]
name = "chromacat"
version = "0.1.0"
edition = "2021"
authors = ["Stefanie Jane <stef@hyperbliss.tech>"]
description = "A versatile command-line tool for applying color gradients to text output"
license = "Apache-2.0"
readme = "README.md"
homepage = "https://github.com/hyperb1iss/chromacat"
repository = "https://github.com/hyperb1iss/chromacat"
keywords = ["cli", "color", "terminal", "gradient", "text"]
categories = ["command-line-utilities"]
default-run = "chromacat"
[profile.release]
lto = true # Enable Link Time Optimization
codegen-units = 1 # Optimize for size rather than compile time
opt-level = 3 # Maximum optimization
panic = "abort" # Remove panic unwinding to reduce binary size
strip = true # Strip symbols from the binary
debug = false # No debug info
[dependencies]
anstyle = "1.0.9"
atty = "0.2"
anyhow = "1.0"
clap = { version = "4.1", features = ["derive"] }
colorgrad = "0.7.0"
crossterm = "0.28.1"
env_logger = { version = "0.11.5", default-features = false }
lazy_static = "1.5.0"
log = { version = "0.4", features = ["release_max_level_info"] }
paste = "1.0.15"
rand = "0.8.5"
regex = "1.11.1"
serde = { version = "1.0", features = ["derive"], default-features = false }
serde_yaml = "0.9"
thiserror = "1.0"
unicode-segmentation = "1.10"
unicode-width = "0.2.0"
dirs = "5.0.1"
[lib]
name = "chromacat"
path = "src/lib.rs"
[[bin]]
name = "chromacat"
path = "src/main.rs"
# Only include tools when specifically building them
[[bin]]
name = "theme-preview-generator"
path = "tools/theme-preview-generator.rs"
required-features = ["build-tools"]
[[bin]]
name = "webp-generator"
path = "tools/webp-generator.rs"
required-features = ["build-tools"]
# Optional dependencies for tools
[features]
default = []
build-tools = [
"image",
"webp-animation",
"rayon",
]
# Development dependencies
[dev-dependencies]
tempfile = "3.6.0"
timeout = "0.1.0"
# Optional tool dependencies
[dependencies.image]
version = "0.25.4"
optional = true
[dependencies.webp-animation]
version = "0.9"
optional = true
[dependencies.rayon]
version = "1.10.0"
optional = true
[package.metadata.deb]
maintainer = "Stefanie Jane <stef@hyperbliss.tech>"
copyright = "2024, chromacat Contributors <https://github.com/hyperb1iss/chromacat>"
license-file = ["LICENSE", "4"]
extended-description = """
ChromaCat is a turbocharged terminal colorizer written in Rust
"""
depends = "$auto"
section = "utility"
priority = "optional"
assets = [
["target/release/chromacat", "usr/bin/", "755"],
["README.md", "usr/share/doc/chromacat/README", "644"],
]
[package.metadata.generate-rpm]
assets = [
{ source = "target/release/chromacat", dest = "/usr/bin/chromacat", mode = "755" },
{ source = "README.md", dest = "/usr/share/doc/chromacat/README", mode = "644" },
]