git-gemini-forge 0.6.0

A simple Gemini server that serves a read-only view of public repositories from a Git forge.
use const_str::replace;
use regex_static::lazy_regex;

type Lazy<T> = regex_static::once_cell::sync::Lazy<T>;
pub type Regex = Lazy<regex::Regex>;

/// Regex that matches at least one whitespace character (`\s+`)
pub const WHITESPACE: Regex = lazy_regex!(r"\s+");

/// The name of the project.
pub const PROJECT_NAME: &'static str = env!("CARGO_PKG_NAME");

/// The version of the project.
pub const PROJECT_VERSION: &'static str = env!("CARGO_PKG_VERSION");

/// The HTTP URL of the project's git forge.
pub const REPO_HTTP: &'static str = env!("CARGO_PKG_REPOSITORY");

/// The Gemini URL of the project's git forge.
pub const REPO_GMI: &'static str = replace!(REPO_HTTP, "https", "gemini");