# 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"
name = "energy-bench"
version = "0.2.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Methods for benchmarking the energy consumption of programs."
readme = "README.md"
keywords = [
    "benchmarking",
    "energy",
    "sustainability",
]
categories = ["development-tools::profiling"]
license = "GPL-3.0"
repository = "https://gitlab.com/software-energy-lab/energy-benchmarking"

[features]
default = ["software-energy-lab"]
software-energy-lab = [
    "dep:libmedium",
    "dep:nvml-wrapper",
    "dep:reqwest",
    "dep:serde",
]

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

[[bin]]
name = "energy-bench"
path = "src/bin.rs"

[dependencies.chrono]
version = "0.4.43"

[dependencies.clap]
version = "4.5.57"
features = ["derive"]

[dependencies.csv]
version = "1.4.0"

[dependencies.file-backed-value]
version = "0.1.0"

[dependencies.gethostname]
version = "1.1.0"

[dependencies.humantime]
version = "2.3.0"

[dependencies.indexmap]
version = "2.13.0"
features = ["serde"]

[dependencies.libmedium]
version = "0.13.4"
optional = true

[dependencies.log]
version = "0.4.29"

[dependencies.nvml-wrapper]
version = "0.11.0"
optional = true

[dependencies.rapl-energy]
version = "0.1.24"

[dependencies.reqwest]
version = "0.13.1"
features = [
    "blocking",
    "json",
]
optional = true

[dependencies.sanitize-filename]
version = "0.6.0"

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

[dependencies.statistical]
version = "1.0.0"
