mod: bump zterm dependency; add zlog dependency
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m22s

`zlog` is used to log messages to the log file that is also used by
`serve` by default, making it a single source for all the log messages.
This commit is contained in:
2025-11-01 00:18:44 +01:00
parent 8602db4d43
commit 8ac6c16289
3 changed files with 17 additions and 2 deletions

View File

@@ -4,6 +4,14 @@ pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const zlog = b.dependency("zlog", .{
.target = target,
.optimize = optimize,
.timestamp = false,
.stderr = false,
.file = "log",
});
const zterm = b.dependency("zterm", .{
.target = target,
.optimize = optimize,
@@ -17,6 +25,7 @@ pub fn build(b: *std.Build) void {
.optimize = optimize,
.imports = &.{
.{ .name = "zterm", .module = zterm.module("zterm") },
.{ .name = "zlog", .module = zlog.module("zlog") },
.{
.name = "about",
.module = b.createModule(.{