kellnr-settings 6.6.0

Kellnr is a self-hosted registry for Rust crates with support for rustdocs and crates.io caching.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Environment variable based compile time configuration
// These can be set at compile time to change default paths and version info
// If not set, default values are used.
// Some of the values here can be overridden at runtime via configuration files or environment
// variables. Have a look at the documentation for more information.

pub const KELLNR_COMPTIME__DATA_DIR: Option<&str> = option_env!("KELLNR_COMPTIME__DATA_DIR");

pub const KELLNR_COMPTIME__CONFIG_FILE: Option<&str> = option_env!("KELLNR_COMPTIME__CONFIG_FILE");

pub const KELLNR_COMPTIME__VERSION: &str = match option_env!("KELLNR_COMPTIME__VERSION") {
    Some(v) => v,
    None => "0.0.0-unknown",
};