1pub const APP_NAME: &str = "GitKraft";
5pub const VERSION: &str = env!("CARGO_PKG_VERSION");
7pub const DESCRIPTION: &str =
9 "A modern Git IDE with a desktop GUI (Iced) and a terminal UI (Ratatui), \
10 sharing one Rust core.";
11pub const AUTHOR_NAME: &str = "Sorin Irimies";
13pub const AUTHOR_GITHUB: &str = "sorinirimies";
15pub const AUTHOR_URL: &str = "https://github.com/sorinirimies";
17pub const REPO_URL: &str = "https://github.com/sorinirimies/gitkraft";
19pub const LICENSE: &str = "MIT";
21
22pub fn version_label() -> String {
24 format!("v{VERSION}")
25}
26
27#[cfg(test)]
28mod tests {
29 use super::*;
30
31 #[test]
32 fn version_label_has_prefix() {
33 assert_eq!(version_label(), format!("v{}", VERSION));
34 assert!(!VERSION.is_empty());
35 }
36}