Remove .zig Files from Bun

原始链接: https://github.com/oven-sh/bun/pull/30680

The Zig→Rust port is complete; the .zig files were kept as a non-compiled reference during the port. Drop them now that the port has merged. A handful of .zig files are kept because the codegen pipeline still references them at build time: - src/runtime/bake/DevServer.zig — read by bake-codegen.ts (convertZigEnum) - the 7 .zig siblings of *.bind.ts files — bindgen.ts requires the sibling to exist - the .zig files named in $zig()/$newZigFunction() callsites in src/js/ — generate-js2native.ts resolves them by path and throws if absent Also: - Regenerate test/internal/ban-limits.json for the smaller .zig file set - Point test/js/bun/util/zstd.test.ts at parser.rs instead of the deleted parser.zig for its large-file test fixture

Hacker Newsnew | past | comments | ask | show | jobs | submitloginRemove .zig Files from Bun (github.com/oven-sh)8 points by quasigloam 3 hours ago | hide | past | favorite | 2 comments help Galanwe 4 minutes ago | next [–] > Security risks: None. This is dead-code removalThanks Claude! XDreplyAlifatisk 13 minutes ago | prev [–] > This PR has been marked as AI slop and the description has been updated to avoid confusion or misleading reviewersreply Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact Search:
相关文章

原文
The Zig→Rust port is complete; the .zig files were kept as a non-compiled
reference during the port. Drop them now that the port has merged.

A handful of .zig files are kept because the codegen pipeline still
references them at build time:
- src/runtime/bake/DevServer.zig — read by bake-codegen.ts (convertZigEnum)
- the 7 .zig siblings of *.bind.ts files — bindgen.ts requires the sibling
  to exist
- the .zig files named in $zig()/$newZigFunction() callsites in src/js/ —
  generate-js2native.ts resolves them by path and throws if absent

Also:
- Regenerate test/internal/ban-limits.json for the smaller .zig file set
- Point test/js/bun/util/zstd.test.ts at parser.rs instead of the deleted
  parser.zig for its large-file test fixture
联系我们 contact @ memedata.com