diff options
| -rw-r--r-- | build.zig | 2 | ||||
| -rw-r--r-- | build.zig.zon | 2 | ||||
| -rw-r--r-- | src/bin/main.zig | 3 | ||||
| -rw-r--r-- | src/lib/reply.zig | 1 |
4 files changed, 5 insertions, 3 deletions
@@ -2,7 +2,7 @@ const std = @import("std"); pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); - const optimize = b.standardOptimizeOption(.{}); + const optimize = b.standardOptimizeOption(.{ .preferred_optimize_mode = .safe }); const mod = b.addModule("nvlope", .{ .root_source_file = b.path("src/lib/root.zig"), diff --git a/build.zig.zon b/build.zig.zon index ba36c27..314e590 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,6 +1,6 @@ .{ .name = .nvlope, - .version = "0.2.0", + .version = "1.0.0", .fingerprint = 0xd532f2614d0039f7, .minimum_zig_version = "0.17.0", .dependencies = .{}, diff --git a/src/bin/main.zig b/src/bin/main.zig index db41f36..76504ef 100644 --- a/src/bin/main.zig +++ b/src/bin/main.zig @@ -96,6 +96,7 @@ fn session(alloc: std.mem.Allocator, io: Io, stream: *Io.net.Stream) !void { else => |e| return e, }; _ = arena.reset(.retain_capacity); + std.debug.print("C: {s}", .{line}); if (in_data) { if (std.mem.eql(u8, line, ".\r\n")) { @@ -107,7 +108,7 @@ fn session(alloc: std.mem.Allocator, io: Io, stream: *Io.net.Stream) !void { }; try nv.Reply.single(.ok, "Queued").send(w); try w.flush(); - std.debug.print("App {{\n\t body: {s}\n\tsender: {s}\n\trecipients: {any}\n}}\n", .{ app.body.items, app.sender.?, app.recipients.items }); + // std.debug.print("App {{\n\t body: {s}\n\tsender: {s}\n\trecipients: {any}\n}}\n", .{ app.body.items, app.sender.?, app.recipients.items }); } else { const status = try app.appendBodyLine(line); switch (status) { diff --git a/src/lib/reply.zig b/src/lib/reply.zig index 5b20b9c..866f6b4 100644 --- a/src/lib/reply.zig +++ b/src/lib/reply.zig @@ -38,6 +38,7 @@ pub const Reply = struct { for (self.lines, 0..) |line, i| { const sep: u8 = if (i == self.lines.len - 1) ' ' else '-'; try w.print("{d}{c}{s}\r\n", .{ code, sep, line }); + std.debug.print("S: {d}{c}{s}\r\n", .{ code, sep, line }); } } }; |
