pub const APP_NAME: &str = env!("CARGO_PKG_NAME");
pub const DEFAULT_LINE_COUNT: u8 = 3;
pub const DEFAULT_LANGUAGE: &str = "english";
pub const DEFAULT_THEME: &str = "tokyonight";
pub const DEFAULT_ASCII_ART: &str = "Termitype";
pub const DEFAULT_RESULTS_VARIANT: &str = "graph";
pub const WPS_TARGET: usize = 6;
pub const MIN_CUSTOM_TIME: usize = 1;
pub const MAX_CUSTOM_TIME: usize = 300; pub const DEFAULT_TIME_MODE_DURATION_IN_SECS: usize = 30;
pub const MIN_CUSTOM_WORD_COUNT: usize = 1;
pub const MAX_CUSTOM_WORD_COUNT: usize = 5_000;
pub const DEFAULT_WORD_MODE_COUNT: usize = 50;
pub const MIN_CUSTOM_LINE_COUNT: usize = 1;
pub const MAX_CUSTOM_LINE_COUNT: usize = 10;
pub const MAX_EXTRA_WRONG_CHARS: usize = 19;
pub const STATE_FILE: &str = "state";
pub fn logger_file() -> &'static str {
#[cfg(debug_assertions)]
{
".log-dev"
}
#[cfg(not(debug_assertions))]
{
".log"
}
}
pub fn db_file() -> &'static str {
#[cfg(debug_assertions)]
{
".termitype-dev.db"
}
#[cfg(not(debug_assertions))]
{
".termitype.db"
}
}