Cargo Features

[dependencies]
jail_exporter = { version = "0.17.0", default-features = false, features = ["auth", "bcrypt_cmd", "rc_script"] }
default = auth, bcrypt_cmd, rc_script

These default features are set whenever jail_exporter is added without default-features = false somewhere in the dependency tree.

auth default = base64, bcrypt, serde, serde_yaml

Enables HTTP basic authentication

Affects validator::is_valid_basic_auth_config_path, httpd::auth

bcrypt_cmd default = bcrypt, dialoguer, rand

Provides a bcrypt subcommand to assist with hashing passwords for authentication

Affects validator::is_valid_bcrypt_cost, validator::is_valid_length, validator::is_valid_password

rc_script default

Adds a CLI option to dump out an rc(8) script, useful for users who install via cargo install.

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.

base64 auth
dialoguer bcrypt_cmd
rand bcrypt_cmd
serde auth
serde_yaml auth
bcrypt auth bcrypt_cmd

Enables bcrypt ^0.15.0