aboutsummaryrefslogtreecommitdiffstats
path: root/build.zig.zon
diff options
context:
space:
mode:
authorAlexander Leonhardt <equinox.salexander@gmail.com>
2026-06-27 02:29:17 +0200
committerAlexander Leonhardt <equinox.salexander@gmail.com>
2026-07-01 19:41:49 +0200
commitf3ab0bf0acbd287b45426bb535acea7633b79b2d (patch)
tree00277256e934078516d98b03e4bae7193ae94ce5 /build.zig.zon
downloadtotp-master.tar.gz
totp-master.tar.bz2
totp-master.zip
Added implementation of the time-based-one-time-password algorithm and on-device encryptionHEADmaster
Diffstat (limited to 'build.zig.zon')
-rw-r--r--build.zig.zon48
1 files changed, 48 insertions, 0 deletions
diff --git a/build.zig.zon b/build.zig.zon
new file mode 100644
index 0000000..bf86b3d
--- /dev/null
+++ b/build.zig.zon
@@ -0,0 +1,48 @@
+.{
+ // This is the default name used by packages depending on this one. For
+ // example, when a user runs `zig fetch --save <url>`, this field is used
+ // as the key in the `dependencies` table. Although the user can choose a
+ // different name, most users will stick with this provided value.
+ //
+ // It is redundant to include "zig" in this name because it is already
+ // within the Zig package namespace.
+ .name = .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",
+ // Together with name, this represents a globally unique package
+ // identifier. This field is generated by the Zig toolchain when the
+ // package is first created, and then *never changes*. This allows
+ // unambiguous detection of one package being an updated version of
+ // another.
+ //
+ // When forking a Zig project, this id should be regenerated (delete the
+ // field and run `zig build`) if the upstream project is still maintained.
+ // Otherwise, the fork is *hostile*, attempting to take control over the
+ // original project's identity. Thus it is recommended to leave the comment
+ // on the following line intact, so that it shows up in code reviews that
+ // modify the field.
+ .fingerprint = 0x9dc4a90460f7bfd5, // Changing this has security and trust implications.
+ // Tracks the earliest Zig version that the package considers to be a
+ // supported use case.
+ .minimum_zig_version = "0.16.0",
+ // This field is optional.
+ // Each dependency must either provide a `url` and `hash`, or a `path`.
+ // `zig build --fetch` can be used to fetch all dependencies of a package, recursively.
+ // Once all dependencies are fetched, `zig build` no longer requires
+ // internet connectivity.
+ .dependencies = .{
+ .hidapi = .{
+ .url = "git+https://github.com/libusb/hidapi.git#ee022f543807ebfa29e4759076cf1ea2ac7ec7ae",
+ .hash = "N-V-__8AALweHgDuiQeXchZ42doW1DBFoRQQShq7lX6tLYtI",
+ },
+ },
+ .paths = .{
+ "build.zig",
+ "build.zig.zon",
+ "src",
+ // For example...
+ //"LICENSE",
+ //"README.md",
+ },
+}