| author | |
| committer | |
| log | bb0beeca06a35c729c10ec61dac2fb0c0b7c0673 |
| tree | 423cb180e04f71f096cbd14996d2b4622f3b411f |
| parent | dd8c1da963b18a8d778c10cfa6d785e7f00df51e |
| signature |
4 files changed, 21 insertions(+), 23 deletions(-)
deps.zig+4-9| ... | ... | @@ -36,7 +36,7 @@ pub const _ids = .{ |
| 36 | 36 | }; |
| 37 | 37 | |
| 38 | 38 | pub const _paths = .{ |
| 39 | "", | |
| 39 | "/../../", | |
| 40 | 40 | "/v/git/github.com/yaml/libyaml/tag-0.2.5/", |
| 41 | 41 | "/v/git/github.com/nektro/zig-ansi/commit-25039ca/", |
| 42 | 42 | "/v/git/github.com/ziglibs/known-folders/commit-f0f4188/", |
| ... | ... | @@ -51,22 +51,17 @@ pub const package_data = struct { |
| 51 | 51 | pub const _2b7mq571jmq31ktmpigopu29480iw245heueajgxzxn7ab8o = std.build.Pkg{ .name = "zuri", .path = cache ++ "/v/git/github.com/Vexu/zuri/commit-41bcd78/src/zuri.zig", .dependencies = &[_]std.build.Pkg{ } }; |
| 52 | 52 | pub const _csbnipaad8n77buaszsnjvlmn6j173fl7pkprsctelswjywe = std.build.Pkg{ .name = "iguanatls", .path = cache ++ "/v/git/github.com/alexnask/iguanaTLS/commit-1767e48/src/main.zig", .dependencies = &[_]std.build.Pkg{ } }; |
| 53 | 53 | pub const _0npcrzfdlrvkf44mzjo8bduj9gmqyefo0j3rstt6b0pm2r6r = std.build.Pkg{ .name = "licenses", .path = cache ++ "/v/git/github.com/nektro/zig-licenses/commit-1a19e4b/src/lib.zig", .dependencies = &[_]std.build.Pkg{ } }; |
| 54 | pub const _89ujp8gq842x6mzok8feypwze138n2d96zpugw44hcq7406r = std.build.Pkg{ .name = "zigmod", .path = cache ++ "/../../src/lib.zig", .dependencies = &[_]std.build.Pkg{ _s84v9o48ucb0xq0cmzq0cn433hgw0iaqztugja16h8bzxu3h, _2ta738wrqbaqzl3iwzoo8nj35k9ynwz5p5iyz80ryrpp4ttf, _2b7mq571jmq31ktmpigopu29480iw245heueajgxzxn7ab8o, _csbnipaad8n77buaszsnjvlmn6j173fl7pkprsctelswjywe, _0npcrzfdlrvkf44mzjo8bduj9gmqyefo0j3rstt6b0pm2r6r, } }; | |
| 54 | 55 | }; |
| 55 | 56 | |
| 56 | 57 | pub const packages = &[_]std.build.Pkg{ |
| 58 | package_data._89ujp8gq842x6mzok8feypwze138n2d96zpugw44hcq7406r, | |
| 57 | 59 | package_data._s84v9o48ucb0xq0cmzq0cn433hgw0iaqztugja16h8bzxu3h, |
| 58 | package_data._2ta738wrqbaqzl3iwzoo8nj35k9ynwz5p5iyz80ryrpp4ttf, | |
| 59 | package_data._2b7mq571jmq31ktmpigopu29480iw245heueajgxzxn7ab8o, | |
| 60 | package_data._csbnipaad8n77buaszsnjvlmn6j173fl7pkprsctelswjywe, | |
| 61 | package_data._0npcrzfdlrvkf44mzjo8bduj9gmqyefo0j3rstt6b0pm2r6r, | |
| 62 | 60 | }; |
| 63 | 61 | |
| 64 | 62 | pub const pkgs = struct { |
| 63 | pub const zigmod = packages[0]; | |
| 65 | 64 | pub const ansi = packages[1]; |
| 66 | pub const known_folders = packages[2]; | |
| 67 | pub const zuri = packages[3]; | |
| 68 | pub const iguanatls = packages[4]; | |
| 69 | pub const licenses = packages[5]; | |
| 70 | 65 | }; |
| 71 | 66 | |
| 72 | 67 | pub const c_include_dirs = &[_][]const u8{ |
src/lib.zig created+11| ... | ... | @@ -0,0 +1,11 @@ |
| 1 | pub const commands_to_bootstrap = struct { | |
| 2 | pub const fetch = @import("./cmd/fetch.zig"); | |
| 3 | }; | |
| 4 | ||
| 5 | pub const commands = struct { | |
| 6 | pub const init = @import("./cmd/init.zig"); | |
| 7 | pub const fetch = @import("./cmd/fetch.zig"); | |
| 8 | pub const sum = @import("./cmd/sum.zig"); | |
| 9 | pub const zpm = @import("./cmd/zpm.zig"); | |
| 10 | pub const license = @import("./cmd/license.zig"); | |
| 11 | }; |
src/main.zig+2-13| ... | ... | @@ -1,6 +1,7 @@ |
| 1 | 1 | const std = @import("std"); |
| 2 | 2 | const builtin = std.builtin; |
| 3 | 3 | const build_options = @import("build_options"); |
| 4 | const zigmod = @import("zigmod"); | |
| 4 | 5 | |
| 5 | 6 | pub const u = @import("./util/index.zig"); |
| 6 | 7 | pub const common = @import("./common.zig"); |
| ... | ... | @@ -8,18 +9,6 @@ pub const common = @import("./common.zig"); |
| 8 | 9 | // |
| 9 | 10 | // |
| 10 | 11 | |
| 11 | pub const commands_to_bootstrap = struct { | |
| 12 | pub const fetch = @import("./cmd/fetch.zig"); | |
| 13 | }; | |
| 14 | ||
| 15 | pub const commands = struct { | |
| 16 | pub const init = @import("./cmd/init.zig"); | |
| 17 | pub const fetch = @import("./cmd/fetch.zig"); | |
| 18 | pub const sum = @import("./cmd/sum.zig"); | |
| 19 | pub const zpm = @import("./cmd/zpm.zig"); | |
| 20 | pub const license = @import("./cmd/license.zig"); | |
| 21 | }; | |
| 22 | ||
| 23 | 12 | pub fn main() !void { |
| 24 | 13 | |
| 25 | 14 | const gpa = std.heap.c_allocator; |
| ... | ... | @@ -37,7 +26,7 @@ pub fn main() !void { |
| 37 | 26 | return; |
| 38 | 27 | } |
| 39 | 28 | |
| 40 | const available = if (build_options.bootstrap) commands_to_bootstrap else commands; | |
| 29 | const available = if (build_options.bootstrap) zigmod.commands_to_bootstrap else zigmod.commands; | |
| 41 | 30 | |
| 42 | 31 | inline for (std.meta.declarations(available)) |decl| { |
| 43 | 32 | if (std.mem.eql(u8, args[0], decl.name)) { |
zig.mod+4-1| ... | ... | @@ -1,6 +1,6 @@ |
| 1 | 1 | id: 89ujp8gq842x6mzok8feypwze138n2d96zpugw44hcq7406r |
| 2 | 2 | name: zigmod |
| 3 | main: src/main.zig | |
| 3 | main: src/lib.zig | |
| 4 | 4 | license: MIT |
| 5 | 5 | dependencies: |
| 6 | 6 | - src: git https://github.com/yaml/libyaml tag-0.2.5 |
| ... | ... | @@ -37,3 +37,6 @@ dependencies: |
| 37 | 37 | - src: git https://github.com/alexnask/iguanaTLS commit-1767e48 |
| 38 | 38 | |
| 39 | 39 | - src: git https://github.com/nektro/zig-licenses commit-1a19e4b |
| 40 | ||
| 41 | dev_dependencies: | |
| 42 | - src: git https://github.com/nektro/zig-ansi commit-25039ca |