[package]
edition = "2024"
rust-version = "1.88.0"
name = "rustnet-host"
version = "0.2.0"
authors = ["domcyrus"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Per-connection process attribution for rustnet: eBPF/procfs on Linux, PKTAP/lsof on macOS, IP Helper on Windows, sockstat on FreeBSD, behind one ProcessLookup trait"
homepage = "https://github.com/domcyrus/rustnet"
documentation = "https://docs.rs/rustnet-host"
readme = "README.md"
keywords = [
"network",
"process",
"ebpf",
"procfs",
"lsof",
]
categories = [
"network-programming",
"os",
]
license = "Apache-2.0"
repository = "https://github.com/domcyrus/rustnet"
[features]
ebpf = [
"dep:libbpf-rs",
"dep:libbpf-cargo",
]
[lib]
name = "rustnet_host"
path = "src/lib.rs"
[dependencies.anyhow]
version = "1.0"
[dependencies.libc]
version = "0.2"
[dependencies.log]
version = "0.4"
[dependencies.rustnet-core]
version = "0.2.0"
[build-dependencies.anyhow]
version = "1.0"
[target.'cfg(target_os = "linux")'.dependencies.libbpf-rs]
version = "0.26"
optional = true
[target.'cfg(target_os = "linux")'.dependencies.procfs]
version = "0.18"
[target.'cfg(target_os = "linux")'.build-dependencies.libbpf-cargo]
version = "0.26"
optional = true
[target."cfg(windows)".dependencies.windows]
version = "0.62"
features = [
"Win32_Foundation",
"Win32_NetworkManagement_IpHelper",
"Win32_Networking_WinSock",
"Win32_System_Threading",
]