-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCargo.toml
More file actions
75 lines (61 loc) · 1.83 KB
/
Copy pathCargo.toml
File metadata and controls
75 lines (61 loc) · 1.83 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
[workspace]
resolver = "2"
members = [
"chisel-ng-common",
"chisel-ng-server",
"chisel-ng-client",
]
[workspace.package]
version = "0.1.0"
edition = "2021"
authors = ["chisel-ng"]
license = "MIT"
[workspace.dependencies]
# Async runtime
tokio = { version = "1", features = ["full"] }
# SSH - using russh 0.56 with ring backend (avoids cmake/nasm deps)
russh = { version = "0.56", default-features = false, features = ["ring", "flate2"] }
# WebSocket
tokio-tungstenite = { version = "0.24", default-features = false, features = ["handshake"] }
tungstenite = "0.24"
# TLS (using ring backend to avoid cmake/nasm dependencies)
tokio-rustls = { version = "0.26", default-features = false, features = ["ring", "tls12"] }
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
rustls-pemfile = "2"
rcgen = { version = "0.13", default-features = false, features = ["ring"] }
webpki-roots = "0.26"
# Crypto
rand = "0.8"
sha2 = "0.10"
hex = "0.4"
# CLI
clap = { version = "4", features = ["derive", "env"] }
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Error handling
thiserror = "2"
anyhow = "1"
# HTTP for WebSocket upgrade
hyper = { version = "1", features = ["full"] }
hyper-util = { version = "0.1", features = ["full"] }
http-body-util = "0.1"
# Utilities
bytes = "1"
futures = "0.3"
futures-util = "0.3"
async-trait = "0.1"
pin-project-lite = "0.2"
# CLI
rustyline = "15"
chrono = "0.4"
# Release profile optimizations for smaller client binary
[profile.release]
opt-level = "z" # Optimize for size
lto = true # Link-time optimization
strip = true # Strip symbols
panic = "abort" # No unwinding, smaller binary
codegen-units = 1 # Better optimization