Skip to content

feat: add full Zig 0.16 compatibility and tuple module selection#118

Merged
jinzhongjia merged 4 commits into
mainfrom
016
May 15, 2026
Merged

feat: add full Zig 0.16 compatibility and tuple module selection#118
jinzhongjia merged 4 commits into
mainfrom
016

Conversation

@jinzhongjia
Copy link
Copy Markdown
Member

  • Support Zig 0.14, 0.15, and 0.16 seamlessly via a central compat.zig and conditional build logic for API and stdlib changes.
  • Add separate tuple helper modules and select at build time to handle breaking changes in Zig 0.16 parser.
  • Update CI, doc deployment, .gitignore, and examples to use new compat layer and tuple imports for simplified version-agnostic code.
  • Improve example maintainability by isolating version differences.

- Support Zig 0.14, 0.15, and 0.16 seamlessly via a central `compat.zig`
  and conditional build logic for API and stdlib changes.
- Add separate tuple helper modules and select at build time to handle
  breaking changes in Zig 0.16 parser.
- Update CI, doc deployment, .gitignore, and examples to use new compat
  layer and tuple imports for simplified version-agnostic code.
- Improve example maintainability by isolating version differences.
@jinzhongjia
Copy link
Copy Markdown
Member Author

This is todo, I will update this pr this weedend

Update webui dependency to dadf417 to stay current with upstream and
benefit from the latest fixes and improvements.
- Add src/tests.zig containing verification for enums, constants, error sets,
  struct layout, and base64 helpers
- Add C-backed smoke tests for window, port, mime, memory, and config APIs
- Update build to include and wire up test target
- Update CI workflow to run tests on every build

Increase confidence in correctness and future refactoring by automating
regression coverage.
- Explain that the package builds against all supported stable Zig versions
- Advise against using Zig nightly due to unstable build-system API
- Correct grammar and update listed versions in installation instructions

This helps users avoid build issues and improves guidance for installation.
@jinzhongjia jinzhongjia merged commit c2fc94e into main May 15, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant