diff options
Diffstat (limited to 'src/main.zig')
-rw-r--r-- | src/main.zig | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig new file mode 100644 index 0000000..063c191 --- /dev/null +++ b/src/main.zig @@ -0,0 +1,26 @@ +pub fn main() !void { + var gpa = std.heap.GeneralPurposeAllocator(.{}){}; + const allocator = gpa.allocator(); + + // initialize a logging pool + try logz.setup(allocator, .{ + .level = .Info, + .pool_size = 100, + .buffer_size = 4096, + .large_buffer_count = 8, + .large_buffer_size = 16384, + .output = .stdout, + .encoding = .logfmt, + }); + + defer logz.deinit(); + + var app = try App.init(allocator); + defer app.deinit(); + + try @import("web/web.zig").start(&app); +} + +const logz = @import("logz"); +const std = @import("std"); +const App = @import("App.zig"); |