# 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 = "2021"
rust-version = "1.88.0"
name = "lsport"
version = "0.3.6"
authors = ["lsport Contributors"]
build = false
exclude = [
    ".github/",
    ".pre-commit-config.yaml",
    "scripts/",
    "tests/",
    "*.md",
    "!README.md",
    "vendor/",
    ".cargo/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A TUI for managing local and remote ports via SSH"
homepage = "https://github.com/subediparas5/lsport"
documentation = "https://github.com/subediparas5/lsport#readme"
readme = "README.md"
keywords = [
    "cli",
    "tui",
    "port",
    "process",
    "network",
]
categories = [
    "command-line-utilities",
    "development-tools",
    "network-programming",
]
license = "MIT"
repository = "https://github.com/subediparas5/lsport"

[package.metadata.deb]
maintainer = "Parash Subedi <subediparas5@gmail.com>"
copyright = "2024-2026, Parash Subedi"
license-file = [
    "LICENSE",
    "0",
]
extended-description = """
A fast, interactive TUI for managing local and remote ports via SSH.
Identify processes using ports and kill them with a keystroke.
Supports local and remote (SSH) monitoring."""
section = "utils"
priority = "optional"
assets = [[
    "target/release/lsport",
    "usr/bin/",
    "755",
]]

[[bin]]
name = "lsport"
path = "src/main.rs"

[dependencies.anyhow]
version = "1.0"

[dependencies.clap]
version = "4.4"
features = ["derive"]

[dependencies.crossterm]
version = "0.28"

[dependencies.dirs-next]
version = "2.0"

[dependencies.listeners]
version = "0.3"

[dependencies.openssl]
version = "0.10"
features = ["vendored"]

[dependencies.ratatui]
version = "0.30"

[dependencies.regex]
version = "1.10"

[dependencies.ssh2]
version = "0.9"

[dependencies.sysinfo]
version = "0.31"

[dev-dependencies]

[lints.clippy.all]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "forbid"

[profile.dev]
opt-level = 0
debug = 2

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

[profile.release-with-debug]
debug = 2
inherits = "release"
strip = false
