forked from Eugeny/russh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
164 lines (156 loc) · 5.37 KB
/
Copy pathCargo.toml
File metadata and controls
164 lines (156 loc) · 5.37 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
[package]
authors = ["Pierre-Étienne Meunier <pe@pijul.org>"]
description = "A client and server SSH library."
documentation = "https://docs.rs/russh"
edition = "2024"
homepage = "https://github.com/warp-tech/russh"
keywords = ["ssh"]
license = "Apache-2.0"
name = "russh"
readme = "../README.md"
repository = "https://github.com/warp-tech/russh"
version = "0.60.3"
rust-version = "1.85"
[features]
default = ["flate2", "aws-lc-rs", "rsa"]
# Crypto backends: enable at least one of `aws-lc-rs` or `ring`.
aws-lc-rs = ["dep:aws-lc-rs"] # Default crypto backend.
async-trait = ["dep:async-trait"]
legacy-ed25519-pkcs8-parser = ["yasna"]
# Danger: 3DES cipher is insecure.
des = ["dep:des"]
# Danger: DSA algorithm is insecure.
dsa = ["ssh-key/dsa"]
ring = ["dep:ring"] # Alternative crypto backend.
rsa = ["dep:rsa", "dep:pkcs1", "ssh-key/rsa", "ssh-key/rsa-sha1"]
serde = ["ssh-key/serde"]
_bench = ["dep:criterion"]
[dependencies]
# Compatibility floor pins for cargo-minimal-versions. These are otherwise
# transitive members of the RustCrypto prerelease stack; some are renamed to
# coexist with older direct dependency lines.
aead_0_6 = { package = "aead", version = "=0.6.0-rc.10" }
aes.workspace = true
aes_0_9 = { package = "aes", version = "0.9.0" }
aes_gcm_0_11 = { package = "aes-gcm", version = "=0.11.0-rc.3" }
async-trait = { workspace = true, optional = true }
aws-lc-rs = { version = "1.16.2", optional = true }
bitflags = "2.0"
block-padding = { version = "0.3", features = ["std"] }
byteorder.workspace = true
bytes.workspace = true
cbc = { version = "0.1" }
cbc_0_2 = { package = "cbc", version = "0.2.0" }
cipher = "0.5.1" # only pinned due to a cargo-minimal-versions failure in 0.5.0
ctr = "0.9"
ctr_0_10 = { package = "ctr", version = "0.10.0" }
curve25519-dalek = "=5.0.0-pre.6"
crypto-bigint = { version = "0.7.3", features = ["alloc"] }
data-encoding = "2.3"
delegate.workspace = true
digest.workspace = true
der = "0.8"
des = { version = "0.8.1", optional = true }
ecdsa = "=0.17.0-rc.18"
ed25519-dalek = { version = "=3.0.0-pre.7", features = ["alloc", "rand_core", "pkcs8"] }
elliptic-curve = { version = "=0.14.0-rc.32", features = ["ecdh"] }
enum_dispatch = "0.3.13"
flate2 = { version = "1.0.15", optional = true }
futures.workspace = true
generic-array = { version = "1.3.3", features = ["compat-0_14"] }
getrandom = { version = "0.2.15", features = ["js"] }
ghash = "0.6.0" # only pinned due to a cargo-minimal-versions failure in 0.6.0-rc.3
hex-literal = "1"
hkdf = "0.13.0"
hmac.workspace = true
hmac_0_13 = { package = "hmac", version = "0.13.0" }
inout = { version = "0.1", features = ["std"] }
keccak = "0.2.0"
log.workspace = true
md5 = "0.7"
ml-kem = "0.3"
module-lattice = "0.2"
# num-bigint 0.4.x only supports rand 0.8. PR #338 adds rand 0.10 support
# via the `rand_0_10` feature flag. Replace with upstream once a release with
# rand 0.10 support is published. https://github.com/rust-num/num-bigint/pull/338
num-bigint = { package = "internal-russh-num-bigint", version = "=0.5.0", features = ["rand_0_10"] }
num_bigint_0_4 = { package = "num-bigint", version = "0.4.6" }
# num-integer = "0.1"
p256 = { version = "=0.14.0-rc.9", features = ["ecdh"] }
p384 = { version = "=0.14.0-rc.9", features = ["ecdh"] }
p521 = { version = "=0.14.0-rc.9", features = ["ecdh"] }
pbkdf2 = "0.12"
pbkdf2_0_13 = { package = "pbkdf2", version = "0.13.0" }
pkcs1 = { version = "=0.8.0-rc.4", optional = true }
pkcs5 = "0.8"
pkcs8 = { version = "0.11", features = ["encryption", "std"] }
polyval = "0.7.1" # only pinned due to a cargo-minimal-versions failure in 0.7.0
rand_core = { version = "0.10.0" }
rand.workspace = true
ring = { version = "0.17.14", optional = true }
rsa = { version = "=0.10.0-rc.18", optional = true }
russh-cryptovec = { version = "0.60.3", path = "../cryptovec", features = [
"ssh-encoding",
] }
russh-util = { version = "0.52.0", path = "../russh-util" }
salsa20 = "0.11.0"
scrypt = "0.12.0"
sec1 = { version = "0.8", features = ["der"] }
sha1.workspace = true
sha1_0_11 = { package = "sha1", version = "0.11.0" }
sha2.workspace = true
sha2_0_11 = { package = "sha2", version = "0.11.0" }
sha3 = "0.11.0"
signature.workspace = true
spki = "0.8"
ssh-encoding.workspace = true
ssh-key.workspace = true
subtle = "2.4"
thiserror.workspace = true
tokio = { workspace = true, features = ["io-util", "sync", "time"] }
typenum = "1.17"
universal-hash = "0.6.1" # only pinned due to a cargo-minimal-versions failure in 0.6.0
yasna = { version = "0.5.0", features = [
"bit-vec",
"num-bigint",
], optional = true }
zeroize = "1.7"
criterion = { version = "0.7", optional = true, features = ["html_reports"] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio = { workspace = true, features = [
"io-util",
"rt-multi-thread",
"time",
"net",
] }
[target.'cfg(windows)'.dependencies]
pageant = { version = "0.2", path = "../pageant" }
[dev-dependencies]
anyhow = "1.0.4"
env_logger.workspace = true
clap = { version = "4", features = ["derive"] }
tokio = { workspace = true, features = [
"io-std",
"io-util",
"rt-multi-thread",
"time",
"net",
"sync",
"macros",
"process",
] }
rand.workspace = true
shell-escape = "0.1"
tokio-fd = "0.3"
termion = "4"
ratatui = "0.30"
tempfile = "3.14.0"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
russh-sftp = "2.1.0"
tokio.workspace = true
tokio-stream.workspace = true
[package.metadata.docs.rs]
all-features = true
[[bench]]
name = "ciphers"
harness = false