基于 russh-sftp 实现多通道并行文件传输,支持 upload/download, 默认 4 通道并行,可通过 -c 参数动态调整并发数。 传输失败时自动清理不完整的远程/本地文件。
24 lines
629 B
TOML
24 lines
629 B
TOML
[package]
|
|
name = "ssh-proxy"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "SSH HTTP proxy with session pooling"
|
|
|
|
[dependencies]
|
|
russh = { version = "0.50", features = ["legacy-ed25519-pkcs8-parser"] }
|
|
russh-keys = "0.50.0-beta.7"
|
|
tokio = { version = "1", features = ["full"] }
|
|
axum = "0.7"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
toml = "0.8"
|
|
anyhow = "1"
|
|
clap = { version = "4", features = ["derive"] }
|
|
ureq = "2" # CLI HTTP client (2.x has simpler API)
|
|
time = { version = "0.3", features = ["formatting", "macros"] }
|
|
russh-sftp = "2.0.8"
|
|
|
|
[profile.release]
|
|
opt-level = "z"
|
|
lto = true
|
|
strip = true |