irosh 0.2.0

SSH sessions over Iroh peer-to-peer transport
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85"
name = "irosh"
version = "0.2.0"
authors = ["Shedrack Godstime <shedrackgodstime@gmail.com>"]
build = false
exclude = ["cli/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SSH sessions over Iroh peer-to-peer transport"
readme = "src/README.md"
keywords = [
    "ssh",
    "iroh",
    "p2p",
    "remote",
    "shell",
]
categories = [
    "network-programming",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/shedrackgodstime/irosh"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
targets = [
    "x86_64-unknown-linux-gnu",
    "x86_64-apple-darwin",
    "x86_64-pc-windows-msvc",
]

[features]
client = [
    "transport",
    "storage",
    "dep:russh",
]
console = ["dep:console"]
default = [
    "server",
    "client",
]
server = [
    "transport",
    "storage",
    "dep:russh",
    "dep:portable-pty",
]
storage = [
    "dep:serde",
    "dep:serde_json",
]
transport = [
    "dep:iroh",
    "dep:iroh-gossip",
    "dep:iroh-tickets",
]

[lib]
name = "irosh"
path = "src/lib.rs"

[[test]]
name = "integration"
path = "tests/integration.rs"

[[test]]
name = "verify_exec"
path = "tests/verify_exec.rs"

[dependencies.argon2]
version = "0.5.3"

[dependencies.console]
version = "0.16.3"
optional = true

[dependencies.data-encoding]
version = "2.7"

[dependencies.dirs]
version = "6"

[dependencies.futures]
version = "0.3"

[dependencies.futures-lite]
version = "1.13"

[dependencies.hex]
version = "0.4"

[dependencies.iroh]
version = "0.96.0"
features = [
    "address-lookup-mdns",
    "address-lookup-pkarr-dht",
]
optional = true

[dependencies.iroh-gossip]
version = "0.96.0"
features = ["net"]
optional = true

[dependencies.iroh-tickets]
version = "0.3.0"
optional = true

[dependencies.pkarr]
version = "5.0.2"

[dependencies.portable-pty]
version = "0.9.0"
optional = true

[dependencies.postcard]
version = "1"
features = ["alloc"]

[dependencies.rand]
version = "0.9"

[dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls-webpki-roots",
    "json",
]
default-features = false

[dependencies.russh]
version = "0.55.0"
features = ["ring"]
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "io-util",
    "sync",
    "macros",
    "process",
    "net",
]

[dependencies.tokio-util]
version = "0.7"

[dependencies.tracing]
version = "0.1"

[dependencies.walkdir]
version = "2"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61.2"
features = [
    "Win32_System_Console",
    "Win32_Foundation",
    "Win32_Security",
    "Win32_System_Threading",
]

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true