[package]
edition = "2021"
rust-version = "1.91"
name = "koh"
version = "0.4.4"
authors = ["koh authors"]
build = false
exclude = [
"docs/",
"testing/",
"tests/",
"examples/",
"SECURITY_AUDIT_v0.3.1.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "koh — a resilient peer-to-peer remote shell: mosh, rewritten in Rust over iroh"
readme = "README.md"
keywords = [
"mosh",
"shell",
"terminal",
"iroh",
"p2p",
]
categories = [
"command-line-utilities",
"network-programming",
]
license = "GPL-3.0-or-later"
repository = "https://github.com/gold-silver-copper/koh"
[lib]
name = "koh"
path = "src/lib.rs"
[[bin]]
name = "koh"
path = "src/main.rs"
[dependencies.anyhow]
version = "1"
[dependencies.argon2]
version = "0.5"
[dependencies.blake3]
version = "1"
[dependencies.bytes]
version = "1"
[dependencies.clap]
version = "4"
features = [
"derive",
"env",
]
[dependencies.constant_time_eq]
version = "0.5"
[dependencies.data-encoding]
version = "2"
[dependencies.directories]
version = "5"
[dependencies.iroh]
version = "=1.0.0"
[dependencies.miniz_oxide]
version = "0.8"
[dependencies.nix]
version = "0.28"
features = ["signal"]
default-features = false
[dependencies.portable-pty]
version = "=0.9.0"
[dependencies.postcard]
version = "=1.1.3"
features = ["use-std"]
default-features = false
[dependencies.qrcode]
version = "=0.14.1"
default-features = false
[dependencies.rand]
version = "0.8"
[dependencies.secrecy]
version = "0.10"
[dependencies.serde]
version = "=1.0.228"
features = ["derive"]
[dependencies.spake2]
version = "=0.4.0"
[dependencies.termina]
version = "0.3.3"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tokio-util]
version = "0.7"
features = ["rt"]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[dependencies.unicode-width]
version = "0.2"
[dependencies.vt100]
version = "=0.16.2"
[dependencies.zeroize]
version = "1"
[dev-dependencies.proptest]
version = "1"
[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
cognitive_complexity = "allow"
doc_markdown = "allow"
duration_suboptimal_units = "allow"
exit = "deny"
expect_fun_call = "deny"
expect_used = "deny"
float_cmp_const = "deny"
get_unwrap = "deny"
ignored_unit_patterns = "allow"
indexing_slicing = "deny"
lossy_float_literal = "deny"
mem_forget = "deny"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
option_if_let_else = "allow"
panic = "deny"
panic_in_result_fn = "deny"
rc_buffer = "deny"
rest_pat_in_fully_bound_structs = "deny"
significant_drop_tightening = "allow"
similar_names = "allow"
string_slice = "deny"
struct_excessive_bools = "allow"
todo = "deny"
too_many_lines = "allow"
unimplemented = "deny"
unreachable = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "forbid"
[profile.release]
opt-level = 3
lto = "thin"