aboutsummaryrefslogtreecommitdiffstats
path: root/src/consts.rs
diff options
context:
space:
mode:
authorJonas Maier <jonas@x77.dev>2026-05-09 18:00:35 +0200
committerJonas Maier <jonas@x77.dev>2026-05-09 18:00:35 +0200
commit8d020342f0c555c7d6f98179b8165fae246c6da6 (patch)
tree10506f3edc06c5f91de241ea5f914f5a4796e19b /src/consts.rs
parentcc1bf55b9996d556080c4104e211f24508b29cd8 (diff)
downloadpish-8d020342f0c555c7d6f98179b8165fae246c6da6.tar.gz
more builtin variables
Diffstat (limited to 'src/consts.rs')
-rw-r--r--src/consts.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/consts.rs b/src/consts.rs
new file mode 100644
index 0000000..7e5d0fd
--- /dev/null
+++ b/src/consts.rs
@@ -0,0 +1,3 @@
+pub const PISH_VERSION: &str = env!("CARGO_PKG_VERSION");
+pub const PISH_COMMIT: &str = env!("GIT_HASH_SHORT");
+pub const PISH_DIRTY: bool = option_env!("GIT_DIRTY").is_some();