Skip to content

Commit ffc5726

Browse files
authored
Remove unused dependencies (#488)
I ran cargo-udeps on this workspace (on a Linux machine) and looked at the results. - pageant is an empty crate on non-Windows, so all of its dependencies are Windows-only - russh uses tokio-stream only in a doc-test. For this, dev-dependencies suffices. I do not see why this is "not wasm32", but it already was this way before, so I leave it there. - russh-util does not seem to use futures-executor or static_assertions and apparently never did (??). These were added in commit d03df31. In this commit, I am dropping them. - russh-util uses chrono only on wasm Signed-off-by: Uli Schlachter <[email protected]>
1 parent 77bf308 commit ffc5726

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

pageant/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@ repository = "https://github.com/warp-tech/russh"
99
version = "0.0.2"
1010
rust-version = "1.75"
1111

12-
[dependencies]
12+
[target.'cfg(windows)'.dependencies]
1313
futures.workspace = true
1414
thiserror.workspace = true
1515
rand.workspace = true
1616
log.workspace = true
1717
tokio = { workspace = true, features = ["io-util", "rt"] }
1818
bytes.workspace = true
1919
delegate.workspace = true
20-
21-
[target.'cfg(windows)'.dependencies]
2220
windows = { version = "0.58", features = [
2321
"Win32_UI_WindowsAndMessaging",
2422
"Win32_System_Memory",

russh-util/Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,10 @@ license = "Apache-2.0"
1010
repository = "https://github.com/warp-tech/russh"
1111

1212
[dependencies]
13-
chrono = "0.4.38"
1413
tokio = { workspace = true, features = ["sync", "macros"] }
1514

16-
[dev-dependencies]
17-
futures-executor = "0.3.13"
18-
static_assertions = "1.1.0"
19-
2015
[target.'cfg(target_arch = "wasm32")'.dependencies]
16+
chrono = "0.4.38"
2117
wasm-bindgen = "0.2"
2218
wasm-bindgen-futures = "0.4.43"
2319

russh/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ tokio = { workspace = true, features = [
9393
"time",
9494
"net",
9595
] }
96-
tokio-stream.workspace = true
9796
home.workspace = true
9897

9998
[target.'cfg(windows)'.dependencies]
@@ -122,6 +121,7 @@ tempfile = "3.14.0"
122121
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
123122
russh-sftp = "2.0.5"
124123
tokio.workspace = true
124+
tokio-stream.workspace = true
125125

126126
[[example]]
127127
name = "sftp_server"

0 commit comments

Comments
 (0)