Skip to content

Conversation

lox
Copy link
Contributor

@lox lox commented Oct 5, 2025

Port msgpack.zig to Zig 0.15.1

Changes

  • build.zig: Update addTest() to use createModule() with root_module parameter
  • ArrayList API: Update to new allocator-passing pattern:
    • ArrayList(T).init(allocator)ArrayList(T){}
    • .deinit().deinit(allocator)
    • .writer().writer(allocator)
  • CI: Update to setup-zig@v2 with Zig 0.15.1
  • build.zig.zon: Set minimum_zig_version = "0.15.1"

Test Results

✓ All 131 tests passing

lox added 3 commits October 5, 2025 16:51
Update build system and ArrayList API for Zig 0.15.1 compatibility:
- Use createModule() with root_module in addTest()
- Change ArrayList initialization from .init(allocator) to {}
- Pass allocator to .deinit() and .writer() methods

All tests passing (131/131)
@lalinsky
Copy link
Owner

lalinsky commented Oct 5, 2025

@lox Thank you for this!

@lalinsky lalinsky merged commit 938c6af into lalinsky:main Oct 5, 2025
1 of 2 checks passed
@lalinsky
Copy link
Owner

lalinsky commented Oct 5, 2025

released 0.5.0 with this included

@lox
Copy link
Contributor Author

lox commented Oct 5, 2025

Amazing, thanks so much for the super quick response!

Copy link

@aboodic aboodic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

G

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.

3 participants