forked from JohanChane/clashtui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
119 lines (100 loc) · 2.58 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
109
110
111
112
113
114
115
116
117
118
119
[package]
name = "clashtui"
version = "0.3.0"
edition = "2021"
authors = ["Johan Chane <johanchanex at gmail dot com>"]
description = "Mihomo TUI Client"
license = "MIT"
repository = "https://github.com/JohanChane/clashtui"
homepage = "https://github.com/JohanChane/clashtui"
documentation = "https://github.com/JohanChane/clashtui"
readme = "README.md"
exclude = [".github", ".gitignore", "PkgManagers"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
# [badges]
# maintenance = { status = "passively-maintained" }
[features]
tui = [
"dep:ratatui",
"dep:crossterm",
"dep:tokio",
"dep:futures-util",
"dep:derive_more",
]
customized-theme = ["tui", "ratatui/serde"]
template = []
connection-tab = ["tui", "ratatui/unstable-widget-ref"]
migration_v0_2_3 = []
default = ["tui", "connection-tab", "template", "migration_v0_2_3"]
[dependencies]
log = "0.4.22"
clap_complete = "4.5.26"
anyhow = "1.0.86"
is-root = { version = "0.1.4" }
serde = { version = "1.0.210", features = ["derive"] }
minreq = { version = "2.12.0", features = [
"proxy",
"https",
"json-using-serde",
] }
serde_json = "1.0.128"
serde_yml = "0.0.12"
futures-util = { version = "0.3.30", default-features = false, optional = true }
thiserror = "2"
[dependencies.derive_more]
version = "2"
optional = true
default-features = false
features = ["debug"]
[dependencies.tokio]
version = "1.40.0"
features = ["rt", "macros", "sync", "time"]
optional = true
[dependencies.crossterm]
version = "0.28.1"
default-features = false
features = ["events", "event-stream"]
optional = true
[dependencies.ratatui]
version = "0.29.0"
default-features = false
features = ["crossterm"]
optional = true
[dependencies.clap]
version = "4.5.17"
default-features = false
features = ["std", "derive", "help", "usage", "suggestions", "color"]
[dependencies.log4rs]
version = "1.3.0"
default-features = false
features = ["pattern_encoder", "file_appender"]
[target.'cfg(windows)'.dependencies]
encoding_rs = "0.8.34"
[patch.crates-io]
log4rs = { git = "https://github.com/Jackhr-arch/log4rs" }
is-root = { git = "https://github.com/Jackhr-arch/is-root" }
[profile.release]
lto = "fat"
opt-level = 's'
strip = true
[package.metadata.deb]
maintainer = 'Jackhr-arch <[email protected]>'
extended-description = """
A tool for mihomo
"""
depends = "$auto"
section = "utility"
priority = "optional"
assets = [
[
'target/release/clashtui',
'usr/bin/clashtui',
'755',
],
[
'README.md',
'usr/share/doc/clashtui/README.md',
'644',
],
]
maintainer-scripts = 'debian/'