[package]
name = "netscli-core"
version = "0.3.3"
description = "Core networking library: discovery, scanning, DNS, ARP, PCAP, and OUI resolution"
authors.workspace = true
license.workspace = true
repository.workspace = true
edition.workspace = true
rust-version.workspace = true
include = [
"src/**/*.rs",
"tests/**/*.rs",
"data/oui.min.json.gz",
"Cargo.toml",
"README.md",
]
[dependencies]
tokio.workspace = true
serde.workspace = true
serde_json.workspace = true
anyhow.workspace = true
thiserror.workspace = true
ipnet.workspace = true
pnet_packet = "0.35"
pnet_transport = "0.35"
ipnetwork = "0.20"
hickory-resolver = { version = "0.26", features = ["tokio"] }
sysinfo = "0.39"
mac_address = { version = "1.1", features = ["serde"] }
futures = "0.3"
once_cell = "1.21"
flate2 = "1.1"
tokio-rustls = { version = "0.26.4", default-features = false, features = ["ring", "tls12"] }
chrono = { workspace = true, optional = true }
sqlx = { version = "0.8", default-features = false, features = ["runtime-tokio-rustls", "sqlite", "chrono", "macros", "migrate"], optional = true }
pcap = { version = "2.4", optional = true }
mdns-sd = { version = "0.21", optional = true }
[target.'cfg(unix)'.dependencies]
pnet_sys = "0.35"
pnet_datalink = "0.35"
[target.'cfg(windows)'.dependencies]
ipconfig = "0.3"
windows-sys = { version = "0.61", features = ["Win32_Foundation", "Win32_NetworkManagement_IpHelper", "Win32_Networking_WinSock"] }
[features]
default = []
db = ["dep:sqlx", "dep:chrono"]
pcap = ["dep:pcap"]
mdns = ["dep:mdns-sd"]
[dev-dependencies]
tempfile = "3.27"
rcgen = "0.14.8"