Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
168 lines (150 loc) · 4.73 KB
/
Copy pathCargo.toml
File metadata and controls
168 lines (150 loc) · 4.73 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
[workspace]
resolver = "2"
members = [
"crates/alacritty_terminal",
"crates/gpui_common",
"crates/gpui_dock",
"crates/gpui_sftp",
"crates/gpui_term",
"crates/gpui_transfer",
"crates/termua_zeroclaw",
"crates/wezterm-ssh",
"crates/menubar",
"termua",
]
[workspace.package]
edition = "2024"
version = "0.1.6"
license = "AGPL-3"
authors = ["iamazy <iamazy.me@outlook.com>"]
documentation = "https://github.com/iamazy/termua"
homepage = "https://github.com/iamazy/termua"
repository = "https://github.com/iamazy/termua"
categories = ["terminal", "gpui"]
keywords = ["terminal", "gpui"]
[workspace.dependencies]
anyhow = "1"
async-tungstenite = "0.34"
atomic-write-file = "0.3"
base64 = "0.22"
bitflags = "2"
camino = "1"
core-text = "=22.0.0"
dirs-next = "2.0"
embed-resource = "3"
env_logger = "0.11"
filenamegen = "0.2.6"
futures = "0.3"
gethostname = "1.1"
hex = { version = "0.4", features = ["std"] }
home = "0.5"
itertools = "0.14"
libc = "0.2"
libssh-rs = "0.3.6"
log = "0.4"
miow = "0.6"
notify-rust = "4"
parking_lot = "0.12"
passfd = "0.1.6"
piper = "0.2"
polling = "3"
rand = "0.10"
regex = "1"
regex-automata = "0.4"
rusqlite = { version = "0.37", features = ["bundled"] }
rust-i18n = "4.0.0"
rust-embed = "8"
rustix = { version = "1", default-features = false }
rustix-openpty = "0.2"
schemars = "1"
serde = "1"
serde_json = "1"
serde_json_lenient = "0.2"
semver = "1"
serial2 = "0.2.33"
sha2 = "0.11"
signal-hook = "0.4"
socket2 = "0.6"
secret-service = "5"
ssh2 = { version = "0.9.5", features = ["openssl-on-win32"] }
smallvec = "1"
smol = "2"
sysinfo = "0.39"
time = "0.3"
thiserror = "2"
unicode-width = "0.2"
url = "2"
urlencoding = "2"
ureq = { version = "2.12", default-features = true, features = ["tls", "json"] }
unicode-segmentation = "1.12.0"
vte = { version = "0.15", default-features = false }
windows = "0.62"
windows-sys = "0.62"
# gpui dependencies
gpui = { git = "https://github.com/zed-industries/zed" }
gpui_platform = { git = "https://github.com/zed-industries/zed" }
gpui-base = { git = "https://github.com/longbridge/gpui-component.git" }
gpui-component = { git = "https://github.com/longbridge/gpui-component.git" }
gpui-component-assets = { git = "https://github.com/longbridge/gpui-component.git" }
# termua dependencies
alacritty_terminal = { path = "crates/alacritty_terminal" }
gpui_common = { path = "crates/gpui_common" }
termua_zeroclaw = { path = "crates/termua_zeroclaw" }
gpui_dock = { path = "crates/gpui_dock" }
gpui_term = { path = "crates/gpui_term" }
gpui_sftp = { path = "crates/gpui_sftp" }
gpui_transfer = { path = "crates/gpui_transfer" }
menubar = { path = "crates/menubar" }
# wezterm dependencies
async_ossl = { git = "https://github.com/wezterm/wezterm.git" }
filedescriptor = { git = "https://github.com/wezterm/wezterm.git" }
portable-pty = { git = "https://github.com/wezterm/wezterm.git" }
wezterm-ssh = { path = "crates/wezterm-ssh" }
wezterm-surface = { git = "https://github.com/wezterm/wezterm.git" }
wezterm-term = { git = "https://github.com/wezterm/wezterm.git" }
wezterm-uds = { git = "https://github.com/wezterm/wezterm.git" }
[patch.crates-io]
gpui-component-macros = { git = "https://github.com/longbridge/gpui-component.git" }
[profile.release]
strip = true
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
[profile.release-fast]
inherits = "release"
debug = "full"
lto = false
codegen-units = 16
[workspace.lints.rust]
unexpected_cfgs = { level = "allow" }
[workspace.lints.clippy]
dbg_macro = "deny"
todo = "deny"
# This is not a style lint, see https://github.com/rust-lang/rust-clippy/pull/15454
# Remove when the lint gets promoted to `suspicious`.
declare_interior_mutable_const = "deny"
redundant_clone = "deny"
disallowed_methods = "deny"
# We currently do not restrict any style rules
# to keep iteration fast during development.
#
# If CI enforces additional style rules later, we can tighten this block.
#
# In the future we could improve this by either making sure
# the app can surface clippy errors in diagnostics (in addition to
# rust-analyzer), or by having CI fix style nits automatically.
style = { level = "allow", priority = -1 }
# Individual rules that have violations in the codebase:
type_complexity = "allow"
let_underscore_future = "allow"
# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
# warning on this rule produces a lot of noise.
single_range_in_vec_init = "allow"
# in Rust it can be very tedious to reduce argument count without
# running afoul of the borrow checker.
too_many_arguments = "allow"
# We often have large enum variants yet we rarely actually bother with splitting them up.
large_enum_variant = "allow"
# Boolean expressions can be hard to read, requiring only the minimal form gets in the way
nonminimal_bool = "allow"