authoravatarMeghan Denny<hello@nektro.net>2026-10-15 22:40:14-07:00
committeravatarMeghan Denny<hello@nektro.net>2026-10-15 22:40:14-07:00
logd7799c31219ca278d116e33552865a64416062d3
tree209d587a15e1f8e35302f09da4eaa2a3c353769e
parentff98f8175c145229181ce337e5af36e02e45b832
signature Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

cmd/generate: add Package main field


2 files changed, 27 insertions(+), 0 deletions(-)

deps.zig+25
......@@ -113,6 +113,7 @@ pub const Package = struct {
113113 name: string = "",
114114 entry: ?string = null,
115115 store: ?string = null,
116 main: ?string = null,
116117 deps: []const *Package = &.{},
117118 c_include_dirs: []const string = &.{},
118119 c_source_files: []const string = &.{},
......@@ -199,120 +200,142 @@ pub const package_data = struct {
199200 .store = "/git/github.com/marlersoft/zigwin32/9f15c276b4e9d05afd34a10d8662a7dfc34647ea",
200201 .name = "win32",
201202 .entry = "/git/github.com/marlersoft/zigwin32/9f15c276b4e9d05afd34a10d8662a7dfc34647ea/win32.zig",
203 .main = "win32.zig",
202204 };
203205 pub var _u7sysdckdymi = Package{
204206 .store = "/git/github.com/nektro/arqv-ini/d2465c64833590a04bd9b7f50c87363fd03e65bf",
205207 .name = "ini",
206208 .entry = "/git/github.com/nektro/arqv-ini/d2465c64833590a04bd9b7f50c87363fd03e65bf/src/ini.zig",
209 .main = "src/ini.zig",
207210 };
208211 pub var _s84v9o48ucb0 = Package{
209212 .store = "/git/github.com/nektro/zig-ansi/bebb39ae30d9848a1c212cee582d0b1c102d8b87",
210213 .name = "ansi",
211214 .entry = "/git/github.com/nektro/zig-ansi/bebb39ae30d9848a1c212cee582d0b1c102d8b87/src/lib.zig",
215 .main = "src/lib.zig",
212216 };
213217 pub var _f7dubzb7cyqe = Package{
214218 .store = "/git/github.com/nektro/zig-extras/8f6c4761e5c22c6a5c83a032e764154b840275bc",
215219 .name = "extras",
216220 .entry = "/git/github.com/nektro/zig-extras/8f6c4761e5c22c6a5c83a032e764154b840275bc/src/lib.zig",
221 .main = "src/lib.zig",
217222 };
218223 pub var _c1xirp1ota5p = Package{
219224 .store = "/git/github.com/nektro/zig-inquirer/e745b018f87ddc4c8958370332e6cf61625403cc",
220225 .name = "inquirer",
221226 .entry = "/git/github.com/nektro/zig-inquirer/e745b018f87ddc4c8958370332e6cf61625403cc/src/lib.zig",
227 .main = "src/lib.zig",
222228 .deps = &[_]*Package{ &_s84v9o48ucb0 },
223229 };
224230 pub var _96h80ezrvj7i = Package{
225231 .store = "/git/github.com/nektro/zig-leven/014971d4b1e327a5c61322c3a6b9369fd1863864",
226232 .name = "leven",
227233 .entry = "/git/github.com/nektro/zig-leven/014971d4b1e327a5c61322c3a6b9369fd1863864/src/lib.zig",
234 .main = "src/lib.zig",
228235 };
229236 pub var _0npcrzfdlrvk = Package{
230237 .store = "/git/github.com/nektro/zig-licenses/bc1cd51625c13d6c7df819fd0d85968e617f5c57",
231238 .name = "licenses",
232239 .entry = "/git/github.com/nektro/zig-licenses/bc1cd51625c13d6c7df819fd0d85968e617f5c57/src/lib.zig",
240 .main = "src/lib.zig",
233241 };
234242 pub var _pt88y5d80m25 = Package{
235243 .store = "/git/github.com/nektro/zig-licenses-text/a9d067c3c4d6c226a1de5531b66785bc15d869ee",
236244 .name = "licenses-text",
237245 .entry = "/git/github.com/nektro/zig-licenses-text/a9d067c3c4d6c226a1de5531b66785bc15d869ee/src/lib.zig",
246 .main = "src/lib.zig",
238247 };
239248 pub var _73bukkeci2u6 = Package{
240249 .store = "/git/github.com/nektro/zig-sys-darwin/b349aa32b55aae4cf2ae56740003f8aff0394920",
241250 .name = "sys-darwin",
242251 .entry = "/git/github.com/nektro/zig-sys-darwin/b349aa32b55aae4cf2ae56740003f8aff0394920/sys_darwin.zig",
252 .main = "sys_darwin.zig",
243253 };
244254 pub var _qfev2g50alvp = Package{
245255 .store = "/git/github.com/nektro/zig-sys-freebsd/f97e6c2de30af76818572490735c84ce1015958b",
246256 .name = "sys-freebsd",
247257 .entry = "/git/github.com/nektro/zig-sys-freebsd/f97e6c2de30af76818572490735c84ce1015958b/freebsd.zig",
258 .main = "freebsd.zig",
248259 };
249260 pub var _h7tv7ayhffak = Package{
250261 .store = "/git/github.com/nektro/zig-sys-linux/6dabe7cce239d882c8fd132ab5cda1d1f9ff3634",
251262 .name = "sys-linux",
252263 .entry = "/git/github.com/nektro/zig-sys-linux/6dabe7cce239d882c8fd132ab5cda1d1f9ff3634/mod.zig",
264 .main = "mod.zig",
253265 };
254266 pub var _uvkgl6xf1azv = Package{
255267 .store = "/git/github.com/nektro/zig-sys-netbsd/5ad432ca421c59099be3630b9d0dda49e8bef0a7",
256268 .name = "sys-netbsd",
257269 .entry = "/git/github.com/nektro/zig-sys-netbsd/5ad432ca421c59099be3630b9d0dda49e8bef0a7/netbsd.zig",
270 .main = "netbsd.zig",
258271 };
259272 pub var _4rmxgmcykiba = Package{
260273 .store = "/git/github.com/nektro/zig-sys-openbsd/164646a5e7c4129eb92ac524a60f1759605c99df",
261274 .name = "sys-openbsd",
262275 .entry = "/git/github.com/nektro/zig-sys-openbsd/164646a5e7c4129eb92ac524a60f1759605c99df/openbsd.zig",
276 .main = "openbsd.zig",
263277 };
264278 pub var _kscsl0145t7x = Package{
265279 .store = "/git/github.com/nektro/zig-nio/17c4f044b15917efc1d3f018765881d53fa27e48",
266280 .name = "nio",
267281 .entry = "/git/github.com/nektro/zig-nio/17c4f044b15917efc1d3f018765881d53fa27e48/nio.zig",
282 .main = "nio.zig",
268283 .deps = &[_]*Package{ &_h7tv7ayhffak, &_f7dubzb7cyqe, &_73bukkeci2u6, &_qfev2g50alvp, &_uvkgl6xf1azv, &_4rmxgmcykiba },
269284 };
270285 pub var _7l3oxw6nqqws = Package{
271286 .store = "/git/github.com/nektro/zig-intrusive-parser/800cbe5b241fc52370cb8f892f0d9c6f97133725",
272287 .name = "intrusive-parser",
273288 .entry = "/git/github.com/nektro/zig-intrusive-parser/800cbe5b241fc52370cb8f892f0d9c6f97133725/intrusive_parser.zig",
289 .main = "intrusive_parser.zig",
274290 .deps = &[_]*Package{ &_f7dubzb7cyqe, &_kscsl0145t7x },
275291 };
276292 pub var _iecwp4b3bsfm = Package{
277293 .store = "/git/github.com/nektro/zig-time/1349fb2c8aaaa1503e8730facea6f87c5fe75dc0",
278294 .name = "time",
279295 .entry = "/git/github.com/nektro/zig-time/1349fb2c8aaaa1503e8730facea6f87c5fe75dc0/time.zig",
296 .main = "time.zig",
280297 .deps = &[_]*Package{ &_f7dubzb7cyqe, &_h7tv7ayhffak, &_73bukkeci2u6, &_kscsl0145t7x, &_qfev2g50alvp, &_uvkgl6xf1azv, &_4rmxgmcykiba },
281298 };
282299 pub var _vph9l0hxpeze = Package{
283300 .store = "/git/github.com/nektro/zig-nfs/1a27fe574706f0b91c9f66b22fe7d3fa8f5129d5",
284301 .name = "nfs",
285302 .entry = "/git/github.com/nektro/zig-nfs/1a27fe574706f0b91c9f66b22fe7d3fa8f5129d5/nfs.zig",
303 .main = "nfs.zig",
286304 .deps = &[_]*Package{ &_h7tv7ayhffak, &_kscsl0145t7x, &_iecwp4b3bsfm, &_73bukkeci2u6, &_qfev2g50alvp, &_uvkgl6xf1azv, &_4rmxgmcykiba },
287305 };
288306 pub var _2ovav391ivak = Package{
289307 .store = "/git/github.com/nektro/zig-detect-license/6de79b4ff8f7462e26f224f4bed3c81710c8893b",
290308 .name = "detect-license",
291309 .entry = "/git/github.com/nektro/zig-detect-license/6de79b4ff8f7462e26f224f4bed3c81710c8893b/src/lib.zig",
310 .main = "src/lib.zig",
292311 .deps = &[_]*Package{ &_pt88y5d80m25, &_96h80ezrvj7i, &_vph9l0hxpeze },
293312 };
294313 pub var _ede2wygpe1iy = Package{
295314 .store = "/git/github.com/nektro/zig-tracer/4ad0602d52a3f40ef74f59f648602c61409f7ba7",
296315 .name = "tracer",
297316 .entry = "/git/github.com/nektro/zig-tracer/4ad0602d52a3f40ef74f59f648602c61409f7ba7/src/mod.zig",
317 .main = "src/mod.zig",
298318 .deps = &[_]*Package{ &_f7dubzb7cyqe, &_h7tv7ayhffak, &_vph9l0hxpeze, &_kscsl0145t7x, &_iecwp4b3bsfm },
299319 };
300320 pub var _0k64oe2nuzvj = Package{
301321 .store = "/git/github.com/nektro/zig-git/88b94a1960be841bb93a0bca65d556cb6385d1fd",
302322 .name = "git",
303323 .entry = "/git/github.com/nektro/zig-git/88b94a1960be841bb93a0bca65d556cb6385d1fd/git.zig",
324 .main = "git.zig",
304325 .deps = &[_]*Package{ &_iecwp4b3bsfm, &_f7dubzb7cyqe, &_ede2wygpe1iy, &_vph9l0hxpeze, &_kscsl0145t7x, &_0e2d06bb494b },
305326 };
306327 pub var _ocmr9rtohgcc = Package{
307328 .store = "/git/github.com/nektro/zig-json/a731b57ee685ff1ddeea9456a924f45ce4da3031",
308329 .name = "json",
309330 .entry = "/git/github.com/nektro/zig-json/a731b57ee685ff1ddeea9456a924f45ce4da3031/json.zig",
331 .main = "json.zig",
310332 .deps = &[_]*Package{ &_f7dubzb7cyqe, &_ede2wygpe1iy, &_7l3oxw6nqqws, &_kscsl0145t7x },
311333 };
312334 pub var _g982zq6e8wsv = Package{
313335 .store = "/git/github.com/nektro/zig-yaml/dff9fd43ebf1046c70090bdccfeb2e4f1c0d584b",
314336 .name = "yaml",
315337 .entry = "/git/github.com/nektro/zig-yaml/dff9fd43ebf1046c70090bdccfeb2e4f1c0d584b/yaml.zig",
338 .main = "yaml.zig",
316339 .deps = &[_]*Package{ &_8mdbh0zuneb0 },
317340 };
318341 pub var _0e2d06bb494b = Package{
......@@ -331,10 +354,12 @@ pub const package_data = struct {
331354 .store = "/git/github.com/ziglibs/known-folders/207c34a16e4365edc20d92c7892f962b3bed46e8",
332355 .name = "known-folders",
333356 .entry = "/git/github.com/ziglibs/known-folders/207c34a16e4365edc20d92c7892f962b3bed46e8/known-folders.zig",
357 .main = "known-folders.zig",
334358 };
335359 pub var _89ujp8gq842x = Package{
336360 .name = "zigmod",
337361 .entry = "/../..//src/lib.zig",
362 .main = "src/lib.zig",
338363 .deps = &[_]*Package{ &_g982zq6e8wsv, &_s84v9o48ucb0, &_2ta738wrqbaq, &_0npcrzfdlrvk, &_2ovav391ivak, &_c1xirp1ota5p, &_u7sysdckdymi, &_iecwp4b3bsfm, &_f7dubzb7cyqe, &_0k64oe2nuzvj, &_ocmr9rtohgcc, &_kscsl0145t7x, &_vph9l0hxpeze },
339364 };
340365 pub var _root = Package{
src/cmd/generate.zig+2
......@@ -144,6 +144,7 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: [:0]const u8, dir: nf
144144 \\ name: string = "",
145145 \\ entry: ?string = null,
146146 \\ store: ?string = null,
147 \\ main: ?string = null,
147148 \\ deps: []const *Package = &.{},
148149 \\ c_include_dirs: []const string = &.{},
149150 \\ c_source_files: []const string = &.{},
......@@ -304,6 +305,7 @@ fn print_pkg_data_to(w: nfs.File, alloc: std.mem.Allocator, cachepath: [:0]const
304305 if (mod.main.len > 0 and !std.mem.eql(u8, &mod.id, &zigmod.Module.ROOT)) {
305306 try w.print(" .name = \"{s}\",\n", .{mod.name});
306307 try w.print(" .entry = \"/{}/{s}/{s}\",\n", .{ u.altStringEscape(fixed_path), try mod.pin(alloc, cachepath, options), mod.main });
308 try w.print(" .main = \"{s}\",\n", .{mod.main});
307309
308310 if (mod.deps.len != 0) {
309311 try w.writeAll(" .deps = &[_]*Package{");