[package]
edition = "2021"
name = "ip-tools"
version = "0.2.0"
authors = ["Mystic"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A CLI tool and library to retrieve the local IP address and list network interfaces"
readme = "README.md"
keywords = [
"ip",
"network",
"interface",
"ip-address",
"cli",
]
categories = [
"command-line-utilities",
"network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/pplmx/ip-tools"
[lib]
name = "ip_tools"
path = "src/lib.rs"
[[bin]]
name = "ip-tools"
path = "src/main.rs"
[[example]]
name = "ip_info"
path = "examples/ip_info.rs"
[[test]]
name = "test_cli"
path = "tests/test_cli.rs"
[[test]]
name = "test_ip"
path = "tests/test_ip.rs"
[[bench]]
name = "benchmark"
path = "benches/benchmark.rs"
[dependencies.clap]
version = "~4.6.0"
features = ["cargo"]
[dependencies.local-ip-address]
version = "~0.6.0"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.predicates]
version = "3.1"
[build-dependencies.husky-rs]
version = "0.3"
[profile.bench]
lto = true
codegen-units = 1
[profile.test]
opt-level = 1