[go: up one dir, main page]

sysinfo 0.37.2

Library to get system information such as processes, CPUs, disks, components and networks
Documentation
[[bench]]
name = "basic"
path = "benches/basic.rs"

[dependencies.memchr]
optional = true
version = "2.5"

[dependencies.rayon]
optional = true
version = "^1.8"

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

[dev-dependencies.bstr]
version = "1.9.0"

[dev-dependencies.itertools]
version = "0.14.0"

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

[dev-dependencies.tempfile]
version = "3.9"

[[example]]
doc-scrape-examples = true
name = "simple"
path = "examples/simple.rs"
required-features = ["default"]

[features]
apple-app-store = ["apple-sandbox"]
apple-sandbox = []
c-interface = ["default"]
component = ["windows/Win32_Foundation", "windows/Win32_Security", "windows/Win32_System_Com", "windows/Win32_System_Ole", "windows/Win32_System_Rpc", "windows/Win32_System_Variant", "windows/Win32_System_Wmi", "objc2-core-foundation/CFArray", "objc2-core-foundation/CFBase", "objc2-core-foundation/CFDictionary", "objc2-core-foundation/CFNumber", "objc2-core-foundation/CFString", "objc2-io-kit", "objc2-io-kit/hidsystem"]
debug = ["libc/extra_traits"]
default = ["component", "disk", "network", "system", "user"]
disk = ["windows/Win32_Foundation", "windows/Win32_Storage_FileSystem", "windows/Win32_Security", "windows/Win32_System_IO", "windows/Win32_System_Ioctl", "windows/Win32_System_SystemServices", "windows/Win32_System_WindowsProgramming", "objc2-core-foundation/CFArray", "objc2-core-foundation/CFBase", "objc2-core-foundation/CFDictionary", "objc2-core-foundation/CFError", "objc2-core-foundation/CFNumber", "objc2-core-foundation/CFString", "objc2-core-foundation/CFURL", "objc2-io-kit"]
linux-netdevs = []
linux-tmpfs = []
multithread = ["dep:rayon"]
network = ["windows/Win32_Foundation", "windows/Win32_NetworkManagement_IpHelper", "windows/Win32_NetworkManagement_Ndis", "windows/Win32_Networking_WinSock"]
system = ["windows/Win32_Foundation", "windows/Win32_System_Diagnostics_ToolHelp", "windows/Wdk_System_SystemInformation", "windows/Wdk_System_SystemServices", "windows/Wdk_System_Threading", "windows/Win32_Security_Authorization", "windows/Win32_System_Diagnostics_Debug", "windows/Win32_System_Kernel", "windows/Win32_System_Memory", "windows/Win32_System_Performance", "windows/Win32_System_Power", "windows/Win32_System_ProcessStatus", "windows/Win32_System_Registry", "windows/Win32_System_RemoteDesktop", "windows/Win32_System_SystemInformation", "windows/Win32_System_SystemServices", "windows/Win32_System_Threading", "windows/Win32_UI_Shell", "dep:ntapi", "dep:memchr", "objc2-core-foundation/CFBase", "objc2-core-foundation/CFData", "objc2-core-foundation/CFDictionary", "objc2-core-foundation/CFString", "objc2-io-kit"]
unknown-ci = []
user = ["windows/Win32_Foundation", "windows/Win32_NetworkManagement_NetManagement", "windows/Win32_Security", "windows/Win32_Security_Authentication_Identity", "windows/Win32_Security_Authorization"]

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

[package]
authors = ["Guillaume Gomez <guillaume1.gomez@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
description = "Library to get system information such as processes, CPUs, disks, components and networks"
edition = "2024"
exclude = ["/test-unknown"]
keywords = ["system-information", "disk", "process", "network", "cpu"]
license = "MIT"
name = "sysinfo"
readme = "README.md"
repository = "https://github.com/GuillaumeGomez/sysinfo"
rust-version = "1.88"
version = "0.37.2"

[package.metadata.docs.rs]
cargo-args = ["-Zbuild-std"]
default-target = "x86_64-unknown-linux-gnu"
features = ["serde"]
rustdoc-args = ["--generate-link-to-definition"]
targets = ["i686-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-pc-windows-msvc", "i686-pc-windows-msvc", "x86_64-unknown-freebsd"]

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.objc2-core-foundation]
default-features = false
features = ["std"]
optional = true
version = "0.3.1"

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.objc2-io-kit]
default-features = false
features = ["std", "libc"]
optional = true
version = "0.3.1"

[target.'cfg(not(any(target_os = "unknown", target_arch = "wasm32")))'.dependencies.libc]
version = "^0.2.173"

[target."cfg(windows)".dependencies.ntapi]
optional = true
version = "0.4"

[target."cfg(windows)".dependencies.windows]
optional = true
version = ">=0.59, <0.62"

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

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

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

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

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

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

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

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

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