[package]
edition = "2021"
name = "denet"
version = "0.6.1"
authors = ["ben <ben.uzh@proton.me>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "a simple process monitor"
homepage = "https://github.com/btraven00/denet"
documentation = "https://docs.rs/denet"
readme = "README.md"
keywords = [
"profiling",
"monitor",
"cpu",
"resources",
]
license = "GPL-3.0-or-later"
repository = "https://github.com/btraven00/denet"
[features]
default = []
ebpf = [
"dep:aya",
"dep:aya-log",
"dep:bytes",
]
gpu = ["dep:nvml-wrapper"]
python = ["dep:pyo3"]
[lib]
name = "denet"
crate-type = [
"rlib",
"cdylib",
]
path = "src/lib.rs"
[[bin]]
name = "denet"
path = "src/bin/denet.rs"
[[bin]]
name = "ebpf_diag"
path = "src/bin/ebpf_diag.rs"
required-features = ["ebpf"]
[[bin]]
name = "test_nvml"
path = "src/bin/test_nvml.rs"
[[example]]
name = "offcpu_basic"
path = "examples/offcpu_basic.rs"
required-features = ["ebpf"]
[[test]]
name = "cli_tests"
path = "tests/cli_tests.rs"
[[test]]
name = "config_tests"
path = "tests/config_tests.rs"
[[test]]
name = "constants_tests"
path = "tests/constants_tests.rs"
[[test]]
name = "cpu_sampler_tests"
path = "tests/cpu_sampler_tests.rs"
[[test]]
name = "cpu_stress_test"
path = "tests/cpu_stress_test.rs"
[[test]]
name = "disk_io_test"
path = "tests/disk_io_test.rs"
[[test]]
name = "error_handling_tests"
path = "tests/error_handling_tests.rs"
[[test]]
name = "error_tests"
path = "tests/error_tests.rs"
[[test]]
name = "lib_tests"
path = "tests/lib_tests.rs"
[[test]]
name = "metadata_tests"
path = "tests/metadata_tests.rs"
[[test]]
name = "monitoring_integration_tests"
path = "tests/monitoring_integration_tests.rs"
[[test]]
name = "thread_aggregation_regression"
path = "tests/thread_aggregation_regression.rs"
[dependencies.clap]
version = "4.5"
features = ["derive"]
[dependencies.colored]
version = "2.1"
[dependencies.crossterm]
version = "0.29"
[dependencies.ctrlc]
version = "3.4"
[dependencies.log]
version = "0.4"
[dependencies.pyo3]
version = "0.21"
features = [
"extension-module",
"auto-initialize",
]
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.sysinfo]
version = "0.35.2"
[dependencies.tabled]
version = "0.16"
[dependencies.tokio]
version = "1"
features = ["full"]
optional = true
[dev-dependencies.once_cell]
version = "1.21"
[dev-dependencies.tempfile]
version = "3.0"
[target.'cfg(target_os = "linux")'.dependencies.aya]
version = "0.13.1"
optional = true
[target.'cfg(target_os = "linux")'.dependencies.aya-log]
version = "0.2"
optional = true
[target.'cfg(target_os = "linux")'.dependencies.bytes]
version = "1.4"
optional = true
[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2"
[target.'cfg(target_os = "linux")'.dependencies.nvml-wrapper]
version = "0.10.0"
optional = true
[target.'cfg(target_os = "linux")'.dependencies.procfs]
version = "0.17"