netsock 0.4.0

Cross-platform library for network sockets information
Documentation
[dependencies.bitflags]
version = "2.9"

[dependencies.log]
version = "0.4"

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

[dependencies.thiserror]
version = "2.0"

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

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

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

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

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

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

[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]
features = ["Win32_Foundation", "Win32_System_Diagnostics_ToolHelp"]
version = "0.59"