add command line parameter to print the version

The version is defined in build.zig. We use git describe to the
the build version. For release versions we enforce that the version
in build.zig and build.zig.zon must be equal to the output of
git describe.
This commit is contained in:
2025-03-08 19:19:52 +01:00
parent dd32db056e
commit 21a4c231a3
3 changed files with 66 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
.name = "zig-totp",
// This is a [Semantic Version](https://semver.org/).
// In a future version of Zig it will be used for package deduplication.
.version = "0.0.0",
.version = "0.1.0-dev",
// This field is optional.
// This is currently advisory only; Zig does not yet do anything