[package]
edition = "2021"
rust-version = "1.85.0"
name = "ssh-cli"
version = "0.5.2"
authors = ["Danilo Aguiar <daniloaguiarbr@proton.me>"]
build = "build.rs"
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/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
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"
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",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/danilo-aguiar-br/ssh-cli"
[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"
[features]
default = [
"ssh-real",
"tls",
]
i18n-cjk = []
i18n-europe = []
i18n-full = [
"i18n-cjk",
"i18n-rtl",
"i18n-europe",
]
i18n-rtl = []
musl-allocator = ["dep:mimalloc"]
ssh-real = [
"dep:russh",
"dep:russh-sftp",
]
tls = [
"dep:rustls",
"dep:tokio-rustls",
"dep:webpki-roots",
"dep:rustls-pki-types",
"dep:instant-acme",
]
[lib]
name = "ssh_cli"
path = "src/lib.rs"
[[bin]]
name = "ssh-cli"
path = "src/main.rs"
[[test]]
name = "e2e_cli"
path = "tests/e2e_cli.rs"
[[test]]
name = "gaps_v035_integration"
path = "tests/gaps_v035_integration.rs"
[[test]]
name = "gaps_v037_integration"
path = "tests/gaps_v037_integration.rs"
[[test]]
name = "gaps_v038_integration"
path = "tests/gaps_v038_integration.rs"
[[test]]
name = "gaps_v039_integration"
path = "tests/gaps_v039_integration.rs"
[[test]]
name = "gaps_v040_integration"
path = "tests/gaps_v040_integration.rs"
[[test]]
name = "gaps_v041_integration"
path = "tests/gaps_v041_integration.rs"
[[test]]
name = "gaps_v042_integration"
path = "tests/gaps_v042_integration.rs"
[[test]]
name = "gaps_v051_integration"
path = "tests/gaps_v051_integration.rs"
[[test]]
name = "gaps_v052_tls_policy"
path = "tests/gaps_v052_tls_policy.rs"
[[test]]
name = "gaps_v053_domain_types"
path = "tests/gaps_v053_domain_types.rs"
[[test]]
name = "gaps_v054_error_handling"
path = "tests/gaps_v054_error_handling.rs"
[[test]]
name = "gaps_v055_unsafe_ffi"
path = "tests/gaps_v055_unsafe_ffi.rs"
[[test]]
name = "gaps_v056_ssh"
path = "tests/gaps_v056_ssh.rs"
[[test]]
name = "gaps_v057_sftp"
path = "tests/gaps_v057_sftp.rs"
[[test]]
name = "gaps_v058_e2e_residual"
path = "tests/gaps_v058_e2e_residual.rs"
[[test]]
name = "i18n_integration"
path = "tests/i18n_integration.rs"
[[test]]
name = "proptest_tests"
path = "tests/proptest_tests.rs"
[[test]]
name = "scp_integration"
path = "tests/scp_integration.rs"
[[test]]
name = "snapshot_tests"
path = "tests/snapshot_tests.rs"
[[test]]
name = "storage_integration"
path = "tests/storage_integration.rs"
[[test]]
name = "tunnel_integration"
path = "tests/tunnel_integration.rs"
[[bench]]
name = "ssh_operations"
path = "benches/ssh_operations.rs"
harness = false
[dependencies.anyhow]
version = "1.0"
[dependencies.async-trait]
version = "0.1"
[dependencies.base64]
version = "0.22"
[dependencies.chacha20poly1305]
version = "0.10"
[dependencies.chrono]
version = "0.4.45"
features = [
"serde",
"clock",
]
[dependencies.clap]
version = "4.5"
features = [
"derive",
"unicode",
"wrap_help",
"color",
"suggestions",
]
[dependencies.clap_complete]
version = "4.5"
[dependencies.clap_mangen]
version = "0.2"
[dependencies.ctrlc]
version = "3.4"
[dependencies.directories]
version = "6"
[dependencies.fluent-langneg]
version = "0.13"
[dependencies.fs2]
version = "0.4"
[dependencies.getrandom]
version = "0.2"
[dependencies.human-panic]
version = "2"
[dependencies.instant-acme]
version = "0.8"
features = [
"aws-lc-rs",
"hyper-rustls",
]
optional = true
default-features = false
[dependencies.keyring]
version = "3"
[dependencies.log]
version = "0.4"
[dependencies.mimalloc]
version = "0.1"
optional = true
[dependencies.russh]
version = "0.62"
features = ["aws-lc-rs"]
optional = true
default-features = false
[dependencies.russh-sftp]
version = "2.3"
optional = true
[dependencies.rust_decimal]
version = "1.42"
features = [
"std",
"serde-with-str",
"macros",
]
default-features = false
[dependencies.rustls]
version = "0.23.25"
features = [
"std",
"tls12",
"logging",
"aws_lc_rs",
"prefer-post-quantum",
]
optional = true
default-features = false
[dependencies.rustls-pki-types]
version = "1.12"
features = [
"std",
"alloc",
]
optional = true
[dependencies.secrecy]
version = "0.10"
features = ["serde"]
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_ignored]
version = "0.1"
[dependencies.serde_json]
version = "1"
[dependencies.serde_path_to_error]
version = "0.1"
[dependencies.serde_with]
version = "3"
features = ["macros"]
[dependencies.socket2]
version = "0.6"
[dependencies.sys-locale]
version = "0.3"
[dependencies.tempfile]
version = "3.13"
[dependencies.termcolor]
version = "1.4"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.40"
features = [
"rt-multi-thread",
"io-util",
"io-std",
"time",
"sync",
"macros",
"fs",
"net",
]
[dependencies.tokio-rustls]
version = "0.26"
features = [
"tls12",
"logging",
"aws_lc_rs",
]
optional = true
default-features = false
[dependencies.toml]
version = "0.8"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-error]
version = "0.2"
[dependencies.tracing-log]
version = "0.2"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"std",
"fmt",
"ansi",
"env-filter",
"registry",
"tracing-log",
]
default-features = false
[dependencies.unic-langid]
version = "0.9"
[dependencies.unicode-normalization]
version = "0.1"
[dependencies.url]
version = "2.5"
features = ["serde"]
[dependencies.uuid]
version = "1.24"
features = [
"v4",
"v7",
"serde",
]
[dependencies.validator]
version = "0.20"
features = ["derive"]
[dependencies.webpki-roots]
version = "1"
optional = true
[dependencies.zeroize]
version = "1.8"
features = ["derive"]
[dev-dependencies.assert_cmd]
version = "2.0"
[dev-dependencies.async-trait]
version = "0.1"
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.insta]
version = "1.39"
features = [
"json",
"redactions",
]
[dev-dependencies.mockall]
version = "0.13"
[dev-dependencies.predicates]
version = "3.1"
[dev-dependencies.proptest]
version = "1.5"
[dev-dependencies.serial_test]
version = "3.1"
[dev-dependencies.tempfile]
version = "3.13"
[target."cfg(unix)".dependencies.signal-hook]
version = "0.3"
[target."cfg(windows)".dependencies.windows-sys]
version = "0.59"
features = [
"Win32_System_Console",
"Win32_Foundation",
]
[profile.bench]
opt-level = 3
debug = 0
inherits = "release"
[profile.dev]
opt-level = 0
debug = 2
panic = "unwind"
[profile.dev.package."*"]
opt-level = 2
[profile.release]
opt-level = "z"
lto = "fat"
codegen-units = 1
panic = "abort"
overflow-checks = true
strip = "symbols"
[profile.release.build-override]
opt-level = 3
codegen-units = 16
[profile.release-fast]
opt-level = 3
inherits = "release"
[profile.release-lto]
inherits = "release-fast"