sinf 0.1.0

Library for obtaining in-depth system information at both the hardware and software levels
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"
rust-version = "1.95"
name = "sinf"
version = "0.1.0"
authors = ["Xscriptor <x@xscriptor.com>"]
build = false
exclude = ["/fuzz"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Library for obtaining in-depth system information at both the hardware and software levels"
documentation = "https://docs.rs/sinf"
readme = "README.md"
keywords = [
    "disk",
    "system-information",
    "network",
    "cpu",
    "board",
]
categories = [
    "hardware-support",
    "os",
]
license = "GPL-3.0-or-later"
repository = "https://github.com/rscluster/sinf"

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

[features]
apple-sandbox = []
component = [
    "dep:windows",
    "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",
    "dep:objc2-core-foundation",
    "objc2-core-foundation/CFArray",
    "objc2-core-foundation/CFBase",
    "objc2-core-foundation/CFDictionary",
    "objc2-core-foundation/CFNumber",
    "objc2-core-foundation/CFString",
    "dep:objc2-io-kit",
    "objc2-io-kit/hidsystem",
]
debug = ["libc/extra_traits"]
default = [
    "component",
    "disk",
    "gpu",
    "network",
    "system",
    "user",
    "hardware",
]
disk = [
    "dep:windows",
    "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",
    "dep:objc2-core-foundation",
    "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",
    "dep:objc2-io-kit",
]
fuzzing = []
gpu = [
    "dep:windows",
    "windows/Wdk_Graphics",
    "windows/Wdk_Graphics_Direct3D",
    "windows/Win32_Devices_DeviceAndDriverInstallation",
    "windows/Win32_Foundation",
    "windows/Win32_Graphics",
    "windows/Win32_Graphics_Dxgi",
    "windows/Win32_System_Performance",
    "dep:objc2-core-foundation",
    "objc2-core-foundation/CFDictionary",
    "objc2-core-foundation/CFNumber",
    "objc2-core-foundation/CFString",
    "dep:objc2-io-kit",
]
hardware = []
linux-tmpfs = []
multithread = ["dep:rayon"]
network = [
    "dep:windows",
    "windows/Win32_Foundation",
    "windows/Win32_NetworkManagement_IpHelper",
    "windows/Win32_NetworkManagement_Ndis",
    "windows/Win32_Networking_WinSock",
]
serde = ["dep:serde"]
system = [
    "dep:windows",
    "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:objc2-core-foundation",
    "objc2-core-foundation/CFBase",
    "objc2-core-foundation/CFData",
    "objc2-core-foundation/CFDictionary",
    "objc2-core-foundation/CFString",
    "dep:objc2-io-kit",
]
user = [
    "dep:windows",
    "windows/Win32_Foundation",
    "windows/Win32_NetworkManagement_NetManagement",
    "windows/Win32_Security",
    "windows/Win32_Security_Authentication_Identity",
    "windows/Win32_Security_Authorization",
    "dep:objc2-core-foundation",
    "objc2-core-foundation/CFString",
    "dep:objc2-open-directory",
]

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.libc]
version = "^0.2.191"

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

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

[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"

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

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

[target.'cfg(target_os = "macos")'.dependencies.objc2-open-directory]
version = "0.3.2"
features = [
    "objc2-core-foundation",
    "std",
    "CFODNode",
    "CFODSession",
    "CFODQuery",
    "CFODRecord",
    "CFOpenDirectory",
    "CFOpenDirectoryConstants",
]
optional = true
default-features = false

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

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

[target."cfg(windows)".dev-dependencies.windows]
version = ">=0.62, <0.102"
features = ["Win32_System_Diagnostics_ProcessSnapshotting"]