[package]
edition = "2024"
rust-version = "1.89"
name = "sys-lib"
version = "0.1.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "System facts for Rust services: OS, CPU, memory, disks, network, host, this process, virtualization, power, and device identity, container-aware by default, plus build info, instance info, and a process guard. No subprocesses, zero third-party dependencies."
homepage = "https://github.com/jamesgober/sys-lib"
documentation = "https://docs.rs/sys-lib"
readme = "README.md"
keywords = [
"system",
"hardware",
"cpu",
"memory",
"os",
]
categories = [
"os",
"hardware-support",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/sys-lib"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-pc-windows-msvc",
"aarch64-apple-darwin",
]
[features]
default = [
"instance",
"guard",
]
device-id = []
guard = []
instance = []
[lib]
name = "sys_lib"
path = "src/lib.rs"
[dependencies]
[dev-dependencies]
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"