Cargo Features

[dependencies]
bottom = { version = "0.10.2", default-features = false, features = ["battery", "nvidia", "gpu", "zfs", "deploy", "logging", "generate_schema"] }
default = deploy

The deploy feature is set by default whenever bottom is added without default-features = false somewhere in the dependency tree.

battery deploy = starship-battery

Affects data_farmer::DataCollection.battery_harvest, data_collection::batteries, data_collection::Data.list_of_batteries, data_conversion::convert_battery_harvest, args::BottomArgs.battery, args::BatteryArgs

nvidia gpu? = nvml-wrapper

Affects data_collection::nvidia

gpu deploy = nvidia

Affects data_farmer::TimedData.gpu_data, data_farmer::DataCollection.gpu_harvest, processes::ProcessHarvest.gpu_mem, processes::ProcessHarvest.gpu_mem_percent, processes::ProcessHarvest.gpu_util, data_collection::Data.gpu, data_conversion::ConvertedData.gpu_data, data_conversion::ConvertedGpuData, data_conversion::convert_gpu_data, args::BottomArgs.gpu, args::GpuArgs, proc_widget_data::ProcWidgetData.gpu_mem_usage, proc_widget_data::ProcWidgetData.gpu_usage

zfs deploy

Affects data_farmer::TimedData.arc_data, data_farmer::DataCollection.arc_harvest, memory::arc, data_collection::Data.arc, data_conversion::ConvertedData.arc_labels, data_conversion::ConvertedData.arc_data, data_conversion::convert_arc_data_points

deploy default = battery, gpu, zfs
logging = fern, log, time

Affects logging::OFFSET, logging::init_logger

generate_schema = schemars, serde_json, strum

Affects args::OtherArgs.generate_schema

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

nvml-wrapper nvidia?
starship-battery battery?

Enables starship-battery ^0.9.1

fern logging?

Enables fern ^0.6.2

Used for logging.

log logging?
time logging?
schemars generate_schema?

Enables schemars

These are just used for JSON schema generation.

serde_json generate_schema?
strum generate_schema?