diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Installation.zig | 2 | ||||
| -rw-r--r-- | src/main.zig | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Installation.zig b/src/Installation.zig index 6565263..6e2e120 100644 --- a/src/Installation.zig +++ b/src/Installation.zig | |||
| @@ -5,7 +5,7 @@ const zup = @import("root"); | |||
| 5 | const Allocator = std.mem.Allocator; | 5 | const Allocator = std.mem.Allocator; |
| 6 | const ArenaAllocator = std.heap.ArenaAllocator; | 6 | const ArenaAllocator = std.heap.ArenaAllocator; |
| 7 | const Config = zup.Config; | 7 | const Config = zup.Config; |
| 8 | const ChildProcess = std.ChildProcess; | 8 | const ChildProcess = std.process.Child; |
| 9 | const EasyHttp = zup.EasyHttp; | 9 | const EasyHttp = zup.EasyHttp; |
| 10 | const JsonValue = std.json.Value; | 10 | const JsonValue = std.json.Value; |
| 11 | const SemanticVersion = std.SemanticVersion; | 11 | const SemanticVersion = std.SemanticVersion; |
diff --git a/src/main.zig b/src/main.zig index f5b6c1e..57baac1 100644 --- a/src/main.zig +++ b/src/main.zig | |||
| @@ -16,8 +16,8 @@ const std = @import("std"); | |||
| 16 | const zup_config = @import("zup-config"); | 16 | const zup_config = @import("zup-config"); |
| 17 | 17 | ||
| 18 | const ArgIterator = std.process.ArgIterator; | 18 | const ArgIterator = std.process.ArgIterator; |
| 19 | const ComptimeStringMap = std.ComptimeStringMap; | ||
| 20 | const GPA = std.heap.GeneralPurposeAllocator(.{}); | 19 | const GPA = std.heap.GeneralPurposeAllocator(.{}); |
| 20 | const StaticStringMap = std.StaticStringMap; | ||
| 21 | const Tuple = std.meta.Tuple; | 21 | const Tuple = std.meta.Tuple; |
| 22 | 22 | ||
| 23 | pub fn main() !void { | 23 | pub fn main() !void { |
| @@ -65,7 +65,7 @@ const CommandMap = blk: { | |||
| 65 | idx += 1; | 65 | idx += 1; |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | break :blk ComptimeStringMap(Command, map_data); | 68 | break :blk StaticStringMap(Command).initComptime(map_data); |
| 69 | }; | 69 | }; |
| 70 | 70 | ||
| 71 | fn dispatch( | 71 | fn dispatch( |