[package]
name = "ssh-cli"
version = "0.5.2"
edition = "2021"
rust-version = "1.85.0"
default-run = "ssh-cli"
description = "Native Rust CLI that gives LLMs (Claude Code, Cursor, Windsurf) the ability to operate remote servers via SSH over stdin/stdout"
authors = ["Danilo Aguiar <daniloaguiarbr@proton.me>"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/danilo-aguiar-br/ssh-cli"
homepage = "https://github.com/danilo-aguiar-br/ssh-cli"
documentation = "https://docs.rs/ssh-cli"
readme = "README.md"
keywords = ["ssh", "cli", "llm", "automation", "devops"]
categories = ["command-line-utilities", "network-programming"]
exclude = [
".serena/",
".claude/",
".setting.cyber/",
".vscode/",
"logs/",
"memory/",
"/CLAUDE.md",
"/AGENTS.md",
"/MEMORY.md",
"docs_rules/",
"docs_prd/",
"/gaps.md",
"**/graphrag.sqlite",
"**/graphrag.sqlite-shm",
"**/graphrag.sqlite-wal",
"**/graphrag.sqlite-journal",
"**/.enrich-queue.sqlite",
"**/.enrich-queue.sqlite-shm",
"**/.enrich-queue.sqlite-wal",
"**/.enrich-queue.sqlite-journal",
"projeto_ssh-cli.md",
".github/",
"tests/fixtures/",
"ralph-loop.local.md",
"deny.toml",
"Cross.toml",
".env",
".env.*",
"*.profraw",
"*.profdata",
"coverage/",
]
[lib]
name = "ssh_cli"
path = "src/lib.rs"
[[bin]]
name = "ssh-cli"
path = "src/main.rs"
[dependencies]
tokio = { version = "1.40", features = ["rt-multi-thread", "io-util", "io-std", "time", "sync", "macros", "fs", "net"] }
clap = { version = "4.5", features = ["derive", "unicode", "wrap_help", "color", "suggestions"] }
clap_complete = "4.5"
clap_mangen = "0.2"
human-panic = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
validator = { version = "0.20", features = ["derive"] }
serde_with = { version = "3", features = ["macros"] }
serde_path_to_error = "0.1"
serde_ignored = "0.1"
toml = "0.8"
directories = "6"
tempfile = "3.13"
fs2 = "0.4"
socket2 = "0.6"
sys-locale = "0.3"
unic-langid = "0.9"
fluent-langneg = "0.13"
ctrlc = "3.4"
termcolor = "1.4"
unicode-normalization = "0.1"
mimalloc = { version = "0.1", optional = true }
zeroize = { version = "1.8", features = ["derive"] }
secrecy = { version = "0.10", features = ["serde"] }
chacha20poly1305 = "0.10"
base64 = "0.22"
getrandom = "0.2"
keyring = "3"
tracing = "0.1"
tracing-subscriber = { version = "0.3", default-features = false, features = [
"std",
"fmt",
"ansi",
"env-filter",
"registry",
"tracing-log",
] }
tracing-log = "0.2"
tracing-error = "0.2"
log = "0.4"
thiserror = "2.0"
anyhow = "1.0"
chrono = { version = "0.4.45", features = ["serde", "clock"] }
uuid = { version = "1.24", features = ["v4", "v7", "serde"] }
rust_decimal = { version = "1.42", default-features = false, features = [
"std",
"serde-with-str",
"macros",
] }
url = { version = "2.5", features = ["serde"] }
async-trait = "0.1"
russh = { version = "0.62", default-features = false, features = ["aws-lc-rs"], optional = true }
russh-sftp = { version = "2.3", optional = true }
rustls = { version = "0.23.25", default-features = false, features = [
"std",
"tls12",
"logging",
"aws_lc_rs",
"prefer-post-quantum",
], optional = true }
tokio-rustls = { version = "0.26", default-features = false, features = [
"tls12",
"logging",
"aws_lc_rs",
], optional = true }
webpki-roots = { version = "1", optional = true }
rustls-pki-types = { version = "1.12", optional = true, features = ["std", "alloc"] }
instant-acme = { version = "0.8", default-features = false, features = [
"aws-lc-rs",
"hyper-rustls",
], optional = true }
[target.'cfg(unix)'.dependencies]
signal-hook = "0.3"
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.59", features = ["Win32_System_Console", "Win32_Foundation"] }
[features]
default = ["ssh-real", "tls"]
ssh-real = ["dep:russh", "dep:russh-sftp"]
tls = [
"dep:rustls",
"dep:tokio-rustls",
"dep:webpki-roots",
"dep:rustls-pki-types",
"dep:instant-acme",
]
musl-allocator = ["dep:mimalloc"]
i18n-full = ["i18n-cjk", "i18n-rtl", "i18n-europe"]
i18n-cjk = []
i18n-rtl = []
i18n-europe = []
[dev-dependencies]
assert_cmd = "2.0"
predicates = "3.1"
tempfile = "3.13"
serial_test = "3.1"
mockall = "0.13"
async-trait = "0.1"
criterion = { version = "0.5", features = ["html_reports"] }
proptest = "1.5"
insta = { version = "1.39", features = ["json", "redactions"] }
[[bench]]
name = "ssh_operations"
harness = false
[profile.release]
opt-level = "z"
lto = "fat"
codegen-units = 1
strip = "symbols"
panic = "abort"
overflow-checks = true
[profile.release-fast]
inherits = "release"
opt-level = 3
[profile.release-lto]
inherits = "release-fast"
[profile.bench]
inherits = "release"
opt-level = 3
debug = false
[profile.release.build-override]
opt-level = 3
codegen-units = 16
[profile.dev]
opt-level = 0
debug = true
panic = "unwind"
[profile.dev.package."*"]
opt-level = 2
[package.metadata.docs.rs]
all-features = true
default-target = "x86_64-unknown-linux-gnu"
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-apple-darwin",
"aarch64-apple-darwin",
"x86_64-pc-windows-msvc",
"aarch64-unknown-linux-musl",
]
rustdoc-args = ["--cfg", "docsrs"]
[badges]
maintenance = { status = "actively-developed" }