1#![warn(missing_docs)]
20
21macro_rules! code_name { () => { "git-shell" }}
26macro_rules! version { () => { "0.3.1" }}
27
28pub const NAME: &str = "git-shell";
30
31pub const CODE_NAME: &str = code_name!();
33
34pub const ID: &str = concat!(
36 "26068246-35a6c23a-8104a29a-3c68e7ed-537f5455-9311c74a-bcc9ef2c-7d670226-",
37 "d9e88afe-1561b91b-0ec6fdde-44b1c97c-77945bcc-b527a7f1-2675ae5a-dc322f86",
38);
39
40pub const VERSION: &str = version!();
42
43pub const RELEASE_DATE: (u16, u8, u8) = (2022, 7, 8);
45
46pub const TAG: &str = concat!(code_name!(), "::26068246::", version!());
48
49macro_rules! __ {
55 ($($arg: tt)+) => {
56 format!("[{tag}][{module_path}-{line}] {msg}", tag=crate::TAG, module_path=module_path!(), line=line!(), msg=format!($($arg)+))
57 };
58 () => {
59 format!("[{tag}][{module_path}-{line}] (internal error)", tag=crate::TAG, module_path=module_path!(), line=line!())
60 };
61}
62
63pub mod version_info;
64
65mod git;
66
67pub use self::git::*;
68
69pub type Result<T> = core::result::Result<T, std::io::Error>;
71
72#[test]
73fn test_crate_version() {
74 assert_eq!(VERSION, env!("CARGO_PKG_VERSION"));
75}