From fe4ebca8e61baa238359db2a0f69235c0f7c74e1 Mon Sep 17 00:00:00 2001 From: ucpr Date: Tue, 24 Mar 2026 10:50:20 +0900 Subject: [PATCH] refactor: extract config literal parsers --- src/config.zig | 203 +++++----------------------------------- src/config_literals.zig | 180 +++++++++++++++++++++++++++++++++++ src/root.zig | 1 + 3 files changed, 205 insertions(+), 179 deletions(-) create mode 100644 src/config_literals.zig diff --git a/src/config.zig b/src/config.zig index 4526265..9726e66 100644 --- a/src/config.zig +++ b/src/config.zig @@ -1,5 +1,6 @@ const std = @import("std"); const lex = @import("config_lex.zig"); +const literals = @import("config_literals.zig"); const preprocess = @import("config_preprocess.zig"); const tables = @import("config_tables.zig"); const types = @import("config_types.zig"); @@ -361,7 +362,7 @@ const Parser = struct { return; } if (std.mem.eql(u8, key, "protocol")) { - self.scenario.protocol = try parseProtocol(value); + self.scenario.protocol = try literals.parseProtocol(value); return; } if (std.mem.eql(u8, key, "target")) { @@ -373,7 +374,7 @@ const Parser = struct { return; } if (std.mem.eql(u8, key, "wasm_backend")) { - self.scenario.wasm_backend = try parseWasmBackend(value); + self.scenario.wasm_backend = try literals.parseWasmBackend(value); return; } return error.UnknownScenarioField; @@ -381,19 +382,19 @@ const Parser = struct { fn parseExecutionField(self: *Parser, key: []const u8, value: []const u8) LoadError!void { if (std.mem.eql(u8, key, "mode")) { - self.execution.mode = try parseExecutionMode(value); + self.execution.mode = try literals.parseExecutionMode(value); return; } if (std.mem.eql(u8, key, "duration")) { - self.execution.duration = try parseDurationField(self.allocator, self.env_lookup, value); + self.execution.duration = try literals.parseDurationField(self.allocator, self.env_lookup, value); return; } if (std.mem.eql(u8, key, "warmup")) { - self.execution.warmup = try parseDurationField(self.allocator, self.env_lookup, value); + self.execution.warmup = try literals.parseDurationField(self.allocator, self.env_lookup, value); return; } if (std.mem.eql(u8, key, "script_timeout")) { - self.execution.script_timeout = try parseDurationField(self.allocator, self.env_lookup, value); + self.execution.script_timeout = try literals.parseDurationField(self.allocator, self.env_lookup, value); return; } if (std.mem.eql(u8, key, "vus")) { @@ -428,7 +429,7 @@ const Parser = struct { return; } if (std.mem.eql(u8, key, "method")) { - request.method = try parseMethod(value); + request.method = try literals.parseMethod(value); return; } if (std.mem.eql(u8, key, "path")) { @@ -464,7 +465,7 @@ const Parser = struct { return; } if (std.mem.eql(u8, key, "cookie_jar_scope")) { - self.http_defaults.cookie_jar_scope = try parseCookieJarScope(value); + self.http_defaults.cookie_jar_scope = try literals.parseCookieJarScope(value); return; } if (std.mem.eql(u8, key, "max_steps_per_iteration")) { @@ -527,7 +528,7 @@ const Parser = struct { return; } if (std.mem.eql(u8, key, "method")) { - request.method = try parseMethod(value); + request.method = try literals.parseMethod(value); return; } if (std.mem.eql(u8, key, "path")) { @@ -570,7 +571,7 @@ const Parser = struct { const threshold = &self.threshold_builders.items[threshold_index]; if (std.mem.eql(u8, key, "metric")) { - threshold.metric = try parseThresholdMetric(value); + threshold.metric = try literals.parseThresholdMetric(value); return; } if (std.mem.eql(u8, key, "scope")) { @@ -578,7 +579,7 @@ const Parser = struct { return; } if (std.mem.eql(u8, key, "op")) { - threshold.op = try parseThresholdOperator(value); + threshold.op = try literals.parseThresholdOperator(value); return; } if (std.mem.eql(u8, key, "value")) { @@ -773,7 +774,7 @@ const ThresholdBuilder = struct { .metric = metric, .scope = self.scope, .op = op, - .value = parseThresholdValue(metric, raw_value) catch return error.InvalidThresholdValue, + .value = literals.parseThresholdValue(metric, raw_value) catch return error.InvalidThresholdValue, .abort_on_fail = self.abort_on_fail, }; } @@ -866,162 +867,6 @@ pub fn errorCategory(err: anyerror) []const u8 { return "i/o error"; } -fn parseProtocol(raw: []const u8) SchemaError!Protocol { - const value = std.mem.trim(u8, raw, whitespace); - if (std.mem.eql(u8, value, "\"http\"")) return .http; - if (std.mem.eql(u8, value, "\"grpc\"")) return .grpc; - return error.UnsupportedProtocol; -} - -fn parseExecutionMode(raw: []const u8) SchemaError!Execution.Mode { - const value = std.mem.trim(u8, raw, whitespace); - if (std.mem.eql(u8, value, "\"constant-vus\"")) return .constant_vus; - if (std.mem.eql(u8, value, "\"constant-arrival-rate\"")) return .constant_arrival_rate; - return error.UnsupportedExecutionMode; -} - -fn parseWasmBackend(raw: []const u8) SchemaError!WasmBackend { - const value = std.mem.trim(u8, raw, whitespace); - if (std.mem.eql(u8, value, "\"wamr\"")) return .wamr; - if (std.mem.eql(u8, value, "\"wasm3\"")) return .wasm3; - return error.UnsupportedWasmBackend; -} - -fn parseMethod(raw: []const u8) SchemaError!HttpMethod { - const value = std.mem.trim(u8, raw, whitespace); - if (std.mem.eql(u8, value, "\"GET\"")) return .GET; - if (std.mem.eql(u8, value, "\"POST\"")) return .POST; - if (std.mem.eql(u8, value, "\"PUT\"")) return .PUT; - if (std.mem.eql(u8, value, "\"DELETE\"")) return .DELETE; - return error.InvalidMethod; -} - -fn parseCookieJarScope(raw: []const u8) (ParseError || SchemaError)!CookieJarScope { - const value = std.mem.trim(u8, raw, whitespace); - if (value.len < 2 or value[0] != '"' or value[value.len - 1] != '"') return error.InvalidString; - if (std.mem.eql(u8, value, "\"vu\"")) return .vu; - if (std.mem.eql(u8, value, "\"iteration\"")) return .iteration; - return error.InvalidCookieJarScope; -} - -fn parseThresholdMetric(raw: []const u8) (ParseError || SchemaError)!ThresholdMetric { - const value = std.mem.trim(u8, raw, whitespace); - if (std.mem.eql(u8, value, "\"http.request.duration.p50\"")) return .http_request_duration_p50; - if (std.mem.eql(u8, value, "\"http.request.duration.p90\"")) return .http_request_duration_p90; - if (std.mem.eql(u8, value, "\"http.request.duration.p99\"")) return .http_request_duration_p99; - if (std.mem.eql(u8, value, "\"http.error_rate\"")) return .http_error_rate; - if (std.mem.eql(u8, value, "\"http.transport.error_total\"")) return .http_transport_error_total; - if (std.mem.eql(u8, value, "\"http.transport.error_rate\"")) return .http_transport_error_rate; - if (std.mem.eql(u8, value, "\"http.transport.timeout_total\"")) return .http_transport_timeout_total; - if (std.mem.eql(u8, value, "\"http.transport.timeout_rate\"")) return .http_transport_timeout_rate; - if (std.mem.eql(u8, value, "\"http.transport.connect_timeout_total\"")) return .http_transport_connect_timeout_total; - if (std.mem.eql(u8, value, "\"http.transport.connect_timeout_rate\"")) return .http_transport_connect_timeout_rate; - if (std.mem.eql(u8, value, "\"http.transport.io_timeout_total\"")) return .http_transport_io_timeout_total; - if (std.mem.eql(u8, value, "\"http.transport.io_timeout_rate\"")) return .http_transport_io_timeout_rate; - if (std.mem.eql(u8, value, "\"executor.scheduler_lag.avg\"")) return .scheduler_lag_avg; - if (std.mem.eql(u8, value, "\"executor.scheduler_lag.max\"")) return .scheduler_lag_max; - if (std.mem.eql(u8, value, "\"iteration.dropped\"")) return .iteration_dropped; - if (std.mem.eql(u8, value, "\"iteration.success_rate\"")) return .iteration_success_rate; - return error.InvalidThresholdMetric; -} - -fn parseThresholdOperator(raw: []const u8) (ParseError || SchemaError)!ThresholdOperator { - const literal = try lex.parseStringValue(raw); - if (std.mem.eql(u8, literal, "<")) return .lt; - if (std.mem.eql(u8, literal, "<=")) return .lte; - if (std.mem.eql(u8, literal, ">")) return .gt; - if (std.mem.eql(u8, literal, ">=")) return .gte; - if (std.mem.eql(u8, literal, "==")) return .eq; - return error.InvalidThresholdOperator; -} - -fn parseThresholdValue(metric: ThresholdMetric, raw_value: []const u8) SchemaError!ThresholdValue { - return switch (metric.valueKind()) { - .duration => .{ .duration = try parseDurationLiteral(raw_value) }, - .ratio => .{ .ratio = try parseRatioLiteral(raw_value) }, - .integer => .{ .integer = try parseU64Literal(raw_value) }, - .float => .{ .float = try parseFloatLiteral(raw_value) }, - }; -} - -fn parseDurationField( - allocator: std.mem.Allocator, - env_lookup: ?*const std.StringHashMapUnmanaged([]const u8), - raw: []const u8, -) (std.mem.Allocator.Error || ParseError || SchemaError)!Duration { - const literal = try parseTemplateString(allocator, env_lookup, raw); - return parseDurationLiteral(literal); -} - -fn parseDurationLiteral(value: []const u8) SchemaError!Duration { - const units = [_]struct { - suffix: []const u8, - scale: u64, - }{ - .{ .suffix = "ns", .scale = 1 }, - .{ .suffix = "us", .scale = std.time.ns_per_us }, - .{ .suffix = "ms", .scale = std.time.ns_per_ms }, - .{ .suffix = "h", .scale = 60 * 60 * std.time.ns_per_s }, - .{ .suffix = "m", .scale = 60 * std.time.ns_per_s }, - .{ .suffix = "s", .scale = std.time.ns_per_s }, - }; - - for (units) |unit| { - if (!std.mem.endsWith(u8, value, unit.suffix)) continue; - - const magnitude_text = value[0 .. value.len - unit.suffix.len]; - if (magnitude_text.len == 0) return error.InvalidDuration; - - const magnitude = std.fmt.parseInt(u64, magnitude_text, 10) catch return error.InvalidDuration; - const nanos = std.math.mul(u64, magnitude, unit.scale) catch return error.InvalidDuration; - return .{ .nanos = nanos }; - } - - return error.InvalidDuration; -} - -fn parseByteSizeLiteral(value: []const u8) SchemaError!ByteSize { - const units = [_]struct { - suffix: []const u8, - scale: u64, - }{ - .{ .suffix = "GiB", .scale = 1024 * 1024 * 1024 }, - .{ .suffix = "MiB", .scale = 1024 * 1024 }, - .{ .suffix = "KiB", .scale = 1024 }, - .{ .suffix = "GB", .scale = 1000 * 1000 * 1000 }, - .{ .suffix = "MB", .scale = 1000 * 1000 }, - .{ .suffix = "KB", .scale = 1000 }, - .{ .suffix = "B", .scale = 1 }, - }; - - for (units) |unit| { - if (!std.mem.endsWith(u8, value, unit.suffix)) continue; - - const magnitude_text = value[0 .. value.len - unit.suffix.len]; - if (magnitude_text.len == 0) return error.InvalidByteSize; - - const magnitude = std.fmt.parseInt(u64, magnitude_text, 10) catch return error.InvalidByteSize; - const bytes = std.math.mul(u64, magnitude, unit.scale) catch return error.InvalidByteSize; - return .{ .bytes = bytes }; - } - - return error.InvalidByteSize; -} - -fn parseRatioLiteral(value: []const u8) SchemaError!f64 { - const ratio = parseFloatLiteral(value) catch return error.InvalidRatio; - if (ratio < 0 or ratio > 1) return error.RatioOutOfRange; - return ratio; -} - -fn parseFloatLiteral(value: []const u8) SchemaError!f64 { - return std.fmt.parseFloat(f64, value) catch return error.InvalidThresholdValue; -} - -fn parseU64Literal(value: []const u8) SchemaError!u64 { - return std.fmt.parseInt(u64, value, 10) catch return error.InvalidThresholdValue; -} - fn parseTemplateString( allocator: std.mem.Allocator, env_lookup: ?*const std.StringHashMapUnmanaged([]const u8), @@ -1475,38 +1320,38 @@ test "parse workflow execution timeout and poison settings" { test "parse scheduler lag threshold metrics" { try std.testing.expectEqual( ThresholdMetric.scheduler_lag_avg, - try parseThresholdMetric("\"executor.scheduler_lag.avg\""), + try literals.parseThresholdMetric("\"executor.scheduler_lag.avg\""), ); try std.testing.expectEqual( ThresholdMetric.scheduler_lag_max, - try parseThresholdMetric("\"executor.scheduler_lag.max\""), + try literals.parseThresholdMetric("\"executor.scheduler_lag.max\""), ); } test "parse transport timeout threshold metrics" { try std.testing.expectEqual( ThresholdMetric.http_transport_timeout_total, - try parseThresholdMetric("\"http.transport.timeout_total\""), + try literals.parseThresholdMetric("\"http.transport.timeout_total\""), ); try std.testing.expectEqual( ThresholdMetric.http_transport_timeout_rate, - try parseThresholdMetric("\"http.transport.timeout_rate\""), + try literals.parseThresholdMetric("\"http.transport.timeout_rate\""), ); try std.testing.expectEqual( ThresholdMetric.http_transport_connect_timeout_total, - try parseThresholdMetric("\"http.transport.connect_timeout_total\""), + try literals.parseThresholdMetric("\"http.transport.connect_timeout_total\""), ); try std.testing.expectEqual( ThresholdMetric.http_transport_connect_timeout_rate, - try parseThresholdMetric("\"http.transport.connect_timeout_rate\""), + try literals.parseThresholdMetric("\"http.transport.connect_timeout_rate\""), ); try std.testing.expectEqual( ThresholdMetric.http_transport_io_timeout_total, - try parseThresholdMetric("\"http.transport.io_timeout_total\""), + try literals.parseThresholdMetric("\"http.transport.io_timeout_total\""), ); try std.testing.expectEqual( ThresholdMetric.http_transport_io_timeout_rate, - try parseThresholdMetric("\"http.transport.io_timeout_rate\""), + try literals.parseThresholdMetric("\"http.transport.io_timeout_rate\""), ); } @@ -1856,12 +1701,12 @@ test "reject thresholds with invalid value kind" { } test "parse byte size helper" { - try std.testing.expectEqual(@as(u64, 4096), (try parseByteSizeLiteral("4KiB")).bytes); + try std.testing.expectEqual(@as(u64, 4096), (try literals.parseByteSizeLiteral("4KiB")).bytes); } test "parse ratio helper" { - try std.testing.expectApproxEqAbs(@as(f64, 0.01), try parseRatioLiteral("0.01"), 0.000001); - try std.testing.expectError(error.RatioOutOfRange, parseRatioLiteral("1.2")); + try std.testing.expectApproxEqAbs(@as(f64, 0.01), try literals.parseRatioLiteral("0.01"), 0.000001); + try std.testing.expectError(error.RatioOutOfRange, literals.parseRatioLiteral("1.2")); } test "reject template placeholders outside allowed namespaces" { diff --git a/src/config_literals.zig b/src/config_literals.zig new file mode 100644 index 0000000..bde884d --- /dev/null +++ b/src/config_literals.zig @@ -0,0 +1,180 @@ +const std = @import("std"); + +const lex = @import("config_lex.zig"); +const types = @import("config_types.zig"); + +const whitespace = " \t\r\n"; + +pub const ParseError = lex.ParseError; + +pub const SchemaError = error{ + UnsupportedProtocol, + UnsupportedExecutionMode, + InvalidMethod, + InvalidDuration, + InvalidByteSize, + InvalidRatio, + RatioOutOfRange, + InvalidCookieJarScope, + InvalidThresholdMetric, + InvalidThresholdOperator, + InvalidThresholdValue, + UnsupportedWasmBackend, +}; + +pub fn parseProtocol(raw: []const u8) SchemaError!types.Protocol { + const value = std.mem.trim(u8, raw, whitespace); + if (std.mem.eql(u8, value, "\"http\"")) return .http; + if (std.mem.eql(u8, value, "\"grpc\"")) return .grpc; + return error.UnsupportedProtocol; +} + +pub fn parseExecutionMode(raw: []const u8) SchemaError!types.Execution.Mode { + const value = std.mem.trim(u8, raw, whitespace); + if (std.mem.eql(u8, value, "\"constant-vus\"")) return .constant_vus; + if (std.mem.eql(u8, value, "\"constant-arrival-rate\"")) return .constant_arrival_rate; + return error.UnsupportedExecutionMode; +} + +pub fn parseWasmBackend(raw: []const u8) SchemaError!types.WasmBackend { + const value = std.mem.trim(u8, raw, whitespace); + if (std.mem.eql(u8, value, "\"wamr\"")) return .wamr; + if (std.mem.eql(u8, value, "\"wasm3\"")) return .wasm3; + return error.UnsupportedWasmBackend; +} + +pub fn parseMethod(raw: []const u8) SchemaError!types.HttpMethod { + const value = std.mem.trim(u8, raw, whitespace); + if (std.mem.eql(u8, value, "\"GET\"")) return .GET; + if (std.mem.eql(u8, value, "\"POST\"")) return .POST; + if (std.mem.eql(u8, value, "\"PUT\"")) return .PUT; + if (std.mem.eql(u8, value, "\"DELETE\"")) return .DELETE; + return error.InvalidMethod; +} + +pub fn parseCookieJarScope(raw: []const u8) (ParseError || SchemaError)!types.CookieJarScope { + const value = std.mem.trim(u8, raw, whitespace); + if (value.len < 2 or value[0] != '"' or value[value.len - 1] != '"') return error.InvalidString; + if (std.mem.eql(u8, value, "\"vu\"")) return .vu; + if (std.mem.eql(u8, value, "\"iteration\"")) return .iteration; + return error.InvalidCookieJarScope; +} + +pub fn parseThresholdMetric(raw: []const u8) (ParseError || SchemaError)!types.ThresholdMetric { + const value = std.mem.trim(u8, raw, whitespace); + if (std.mem.eql(u8, value, "\"http.request.duration.p50\"")) return .http_request_duration_p50; + if (std.mem.eql(u8, value, "\"http.request.duration.p90\"")) return .http_request_duration_p90; + if (std.mem.eql(u8, value, "\"http.request.duration.p99\"")) return .http_request_duration_p99; + if (std.mem.eql(u8, value, "\"http.error_rate\"")) return .http_error_rate; + if (std.mem.eql(u8, value, "\"http.transport.error_total\"")) return .http_transport_error_total; + if (std.mem.eql(u8, value, "\"http.transport.error_rate\"")) return .http_transport_error_rate; + if (std.mem.eql(u8, value, "\"http.transport.timeout_total\"")) return .http_transport_timeout_total; + if (std.mem.eql(u8, value, "\"http.transport.timeout_rate\"")) return .http_transport_timeout_rate; + if (std.mem.eql(u8, value, "\"http.transport.connect_timeout_total\"")) return .http_transport_connect_timeout_total; + if (std.mem.eql(u8, value, "\"http.transport.connect_timeout_rate\"")) return .http_transport_connect_timeout_rate; + if (std.mem.eql(u8, value, "\"http.transport.io_timeout_total\"")) return .http_transport_io_timeout_total; + if (std.mem.eql(u8, value, "\"http.transport.io_timeout_rate\"")) return .http_transport_io_timeout_rate; + if (std.mem.eql(u8, value, "\"executor.scheduler_lag.avg\"")) return .scheduler_lag_avg; + if (std.mem.eql(u8, value, "\"executor.scheduler_lag.max\"")) return .scheduler_lag_max; + if (std.mem.eql(u8, value, "\"iteration.dropped\"")) return .iteration_dropped; + if (std.mem.eql(u8, value, "\"iteration.success_rate\"")) return .iteration_success_rate; + return error.InvalidThresholdMetric; +} + +pub fn parseThresholdOperator(raw: []const u8) (ParseError || SchemaError)!types.ThresholdOperator { + const literal = try lex.parseStringValue(raw); + if (std.mem.eql(u8, literal, "<")) return .lt; + if (std.mem.eql(u8, literal, "<=")) return .lte; + if (std.mem.eql(u8, literal, ">")) return .gt; + if (std.mem.eql(u8, literal, ">=")) return .gte; + if (std.mem.eql(u8, literal, "==")) return .eq; + return error.InvalidThresholdOperator; +} + +pub fn parseThresholdValue(metric: types.ThresholdMetric, raw_value: []const u8) SchemaError!types.ThresholdValue { + return switch (metric.valueKind()) { + .duration => .{ .duration = try parseDurationLiteral(raw_value) }, + .ratio => .{ .ratio = try parseRatioLiteral(raw_value) }, + .integer => .{ .integer = try parseU64Literal(raw_value) }, + .float => .{ .float = try parseFloatLiteral(raw_value) }, + }; +} + +pub fn parseDurationField( + allocator: std.mem.Allocator, + env_lookup: ?*const std.StringHashMapUnmanaged([]const u8), + raw: []const u8, +) (std.mem.Allocator.Error || ParseError || SchemaError)!types.Duration { + const parsed = try lex.parseString(allocator, raw); + const literal = try lex.resolveEnvironmentPlaceholders(allocator, env_lookup, parsed); + return parseDurationLiteral(literal); +} + +pub fn parseDurationLiteral(value: []const u8) SchemaError!types.Duration { + const units = [_]struct { + suffix: []const u8, + scale: u64, + }{ + .{ .suffix = "ns", .scale = 1 }, + .{ .suffix = "us", .scale = std.time.ns_per_us }, + .{ .suffix = "ms", .scale = std.time.ns_per_ms }, + .{ .suffix = "h", .scale = 60 * 60 * std.time.ns_per_s }, + .{ .suffix = "m", .scale = 60 * std.time.ns_per_s }, + .{ .suffix = "s", .scale = std.time.ns_per_s }, + }; + + for (units) |unit| { + if (!std.mem.endsWith(u8, value, unit.suffix)) continue; + + const magnitude_text = value[0 .. value.len - unit.suffix.len]; + if (magnitude_text.len == 0) return error.InvalidDuration; + + const magnitude = std.fmt.parseInt(u64, magnitude_text, 10) catch return error.InvalidDuration; + const nanos = std.math.mul(u64, magnitude, unit.scale) catch return error.InvalidDuration; + return .{ .nanos = nanos }; + } + + return error.InvalidDuration; +} + +pub fn parseByteSizeLiteral(value: []const u8) SchemaError!types.ByteSize { + const units = [_]struct { + suffix: []const u8, + scale: u64, + }{ + .{ .suffix = "GiB", .scale = 1024 * 1024 * 1024 }, + .{ .suffix = "MiB", .scale = 1024 * 1024 }, + .{ .suffix = "KiB", .scale = 1024 }, + .{ .suffix = "GB", .scale = 1000 * 1000 * 1000 }, + .{ .suffix = "MB", .scale = 1000 * 1000 }, + .{ .suffix = "KB", .scale = 1000 }, + .{ .suffix = "B", .scale = 1 }, + }; + + for (units) |unit| { + if (!std.mem.endsWith(u8, value, unit.suffix)) continue; + + const magnitude_text = value[0 .. value.len - unit.suffix.len]; + if (magnitude_text.len == 0) return error.InvalidByteSize; + + const magnitude = std.fmt.parseInt(u64, magnitude_text, 10) catch return error.InvalidByteSize; + const bytes = std.math.mul(u64, magnitude, unit.scale) catch return error.InvalidByteSize; + return .{ .bytes = bytes }; + } + + return error.InvalidByteSize; +} + +pub fn parseRatioLiteral(value: []const u8) SchemaError!f64 { + const ratio = parseFloatLiteral(value) catch return error.InvalidRatio; + if (ratio < 0 or ratio > 1) return error.RatioOutOfRange; + return ratio; +} + +pub fn parseFloatLiteral(value: []const u8) SchemaError!f64 { + return std.fmt.parseFloat(f64, value) catch return error.InvalidThresholdValue; +} + +pub fn parseU64Literal(value: []const u8) SchemaError!u64 { + return std.fmt.parseInt(u64, value, 10) catch return error.InvalidThresholdValue; +} diff --git a/src/root.zig b/src/root.zig index 92a8f9a..e65bcf5 100644 --- a/src/root.zig +++ b/src/root.zig @@ -1,6 +1,7 @@ pub const abi = @import("abi.zig"); pub const cli = @import("cli.zig"); pub const config = @import("config.zig"); +pub const config_literals = @import("config_literals.zig"); pub const config_tables = @import("config_tables.zig"); pub const config_types = @import("config_types.zig"); pub const http_state = @import("http_state.zig"); -- knotmirror 0.0.1