netsock 0.6.0

Cross-platform library for network sockets information
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 = "2024"
name = "netsock"
version = "0.6.0"
authors = ["shellrow <shellrow@foctal.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform library for network sockets information"
readme = "README.md"
keywords = [
    "network",
    "socket",
]
categories = [
    "network-programming",
    "os",
]
license = "MIT"
repository = "https://github.com/shellrow/netsock"

[features]
serde = ["dep:serde"]

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

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

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

[dependencies.bitflags]
version = "2.9"

[dependencies.log]
version = "0.4"

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

[dependencies.thiserror]
version = "2.0"

[dev-dependencies.serde_json]
version = "1.0"

[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies.netlink-packet-core]
version = "0.7"

[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies.netlink-packet-sock-diag]
version = "0.4"

[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies.netlink-packet-utils]
version = "0.5"

[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies.netlink-sys]
version = "0.8"

[target.'cfg(target_os = "macos")'.dependencies.libproc]
version = "0.14"

[target.'cfg(target_os = "macos")'.dependencies.num-derive]
version = "0.4"

[target.'cfg(target_os = "macos")'.dependencies.num-traits]
version = "0.2"

[target."cfg(windows)".dependencies.windows-sys]
version = "0.59"
features = [
    "Win32_Foundation",
    "Win32_NetworkManagement_IpHelper",
    "Win32_Networking_WinSock",
    "Win32_System_Diagnostics_ToolHelp",
]