pree 1.0.0

Cross-platform network diagnostics and monitoring for Rust applications
Documentation
# 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"
name = "pree"
version = "1.0.0"
authors = ["Chad Nehemiah <chad.nehemiah94@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform network diagnostics and monitoring for Rust applications"
readme = "README.md"
keywords = [
    "network",
    "monitoring",
    "sockets",
    "diagnostics",
    "cross-platform",
]
categories = [
    "network-programming",
    "os",
    "development-tools::debugging",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/maschad/pree"

[features]
async = [
    "tokio",
    "async-trait",
]
default = []
dns-cache = []
linux-procfs = ["procfs"]
nat-detection = []
serde-support = ["serde"]
socket-tracking = []

[lib]
name = "pree"
path = "src/lib.rs"

[[example]]
name = "bandwidth_monitor"
path = "examples/bandwidth_monitor.rs"
required-features = []

[[example]]
name = "dns_config"
path = "examples/dns_config.rs"
required-features = ["dns-cache"]

[[example]]
name = "interface_stats"
path = "examples/interface_stats.rs"
required-features = []

[[example]]
name = "port_checker"
path = "examples/port_checker.rs"
required-features = ["socket-tracking"]

[[example]]
name = "routing_table"
path = "examples/routing_table.rs"
required-features = []

[[example]]
name = "socket_analysis"
path = "examples/socket_analysis.rs"

[[example]]
name = "socket_info_libproc"
path = "examples/socket_info_libproc.rs"
required-features = ["socket-tracking"]

[[example]]
name = "socket_monitor"
path = "examples/socket_monitor.rs"
required-features = ["socket-tracking"]

[[test]]
name = "linux_tests"
path = "tests/linux_tests.rs"

[[test]]
name = "macos_tests"
path = "tests/macos_tests.rs"

[[test]]
name = "socket_discovery"
path = "tests/socket_discovery.rs"

[[bench]]
name = "socket_performance"
path = "benches/socket_performance.rs"
harness = false

[dependencies.bytesize]
version = "2.0.1"

[dependencies.env_logger]
version = "0.11.8"

[dependencies.hickory-resolver]
version = "0.24"

[dependencies.libc]
version = "0.2.172"

[dependencies.libproc]
version = "0.14.10"

[dependencies.log]
version = "0.4.27"

[dependencies.nix]
version = "0.30.1"
features = [
    "net",
    "socket",
]

[dependencies.procfs]
version = "0.18.0"
optional = true

[dependencies.serde]
version = "1.0.219"
features = ["derive"]
optional = true

[dependencies.thiserror]
version = "2.0.12"

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.mockall]
version = "0.13.1"

[dev-dependencies.tokio-test]
version = "0.4.4"

[target.'cfg(target_os = "windows")'.dependencies.async-trait]
version = "0.1"
optional = true

[target.'cfg(target_os = "windows")'.dependencies.tokio]
version = "1.0"
features = ["full"]
optional = true

[target.'cfg(target_os = "windows")'.dependencies.winapi]
version = "0.3"
features = [
    "ws2def",
    "ws2ipdef",
    "netioapi",
    "iphlpapi",
    "iptypes",
    "ntdef",
    "winerror",
    "processthreadsapi",
    "handleapi",
]