[package]
edition = "2024"
rust-version = "1.95"
name = "sysinfolinux"
version = "0.1.1"
authors = ["Guillaume Gomez <adityagupta@tutanota.de>"]
build = false
exclude = ["/test-unknown"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Library to get system information such as processes, CPUs, disks, components and networks on Linux"
readme = "README.md"
keywords = [
"system-information",
"disk",
"process",
"network",
"cpu",
]
license = "MIT"
repository = "https://github.com/aditya-gupta-dev/sysinfo-linux.git"
[package.metadata.docs.rs]
features = ["serde"]
default-target = "x86_64-unknown-linux-gnu"
targets = [
"i686-unknown-linux-gnu",
"x86_64-unknown-linux-gnu",
"aarch64-unknown-linux-gnu",
]
cargo-args = ["-Zbuild-std"]
rustdoc-args = ["--generate-link-to-definition"]
[features]
c-interface = ["default"]
component = []
debug = ["libc/extra_traits"]
default = [
"component",
"disk",
"gpu",
"network",
"system",
"user",
]
disk = []
gpu = []
linux-netdevs = []
linux-tmpfs = []
multithread = ["dep:rayon"]
network = []
serde = ["dep:serde"]
system = ["dep:memchr"]
user = []
[lib]
name = "sysinfolinux"
path = "src/lib.rs"
[[example]]
name = "simple"
path = "examples/simple.rs"
doc-scrape-examples = true
required-features = ["default"]
[[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"
[[bench]]
name = "basic"
path = "benches/basic.rs"
[dependencies.libc]
version = "^0.2.173"
[dependencies.memchr]
version = "2.5"
optional = true
[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"