[package]
edition = "2021"
rust-version = "1.85"
name = "gitway-lib"
version = "0.3.1"
authors = ["Mohamed Hammad <MJ@S3cure.me>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core SSH transport library for Git hosting services (GitHub, GitLab, Codeberg, and self-hosted)."
documentation = "https://docs.rs/gitway-lib"
readme = "README.md"
keywords = [
"ssh",
"git",
"gitlab",
"codeberg",
"transport",
]
categories = [
"network-programming",
"authentication",
]
license = "GPL-3.0-or-later"
repository = "https://github.com/steelbore/gitway"
[lib]
name = "gitway_lib"
path = "src/lib.rs"
[[test]]
name = "test_clone"
path = "tests/test_clone.rs"
[[test]]
name = "test_connection"
path = "tests/test_connection.rs"
[[bench]]
name = "throughput"
path = "benches/throughput.rs"
harness = false
[dependencies.dirs]
version = "6"
[dependencies.log]
version = "0.4"
[dependencies.russh]
version = "0.59"
features = [
"flate2",
"aws-lc-rs",
"rsa",
]
default-features = false
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"io-util",
"io-std",
"rt-multi-thread",
"net",
"sync",
"macros",
]
[dependencies.zeroize]
version = "1.7"
[dev-dependencies.criterion]
version = "0.5"
features = ["async_tokio"]
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"io-util",
"io-std",
"rt-multi-thread",
"net",
"sync",
"macros",
]
[lints.clippy]
allow_attributes_without_reason = "warn"
assertions_on_result_states = "warn"
cargo_common_metadata = "allow"
clone_on_ref_ptr = "warn"
deref_by_slicing = "warn"
empty_drop = "warn"
empty_structs_with_brackets = "warn"
fn_to_numeric_cast_any = "warn"
literal_string_with_formatting_args = "allow"
map_err_ignore = "warn"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
redundant_type_annotations = "warn"
result_large_err = "allow"
semicolon_outside_block = "warn"
string_to_string = "warn"
undocumented_unsafe_blocks = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unused_result_ok = "warn"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[lints.rust]
ambiguous_negative_literals = "warn"
missing_debug_implementations = "warn"
redundant_imports = "warn"
redundant_lifetimes = "warn"
trivial_numeric_casts = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_lifetimes = "warn"