Skip to content

Zig 0.15.1 "Writergate" support #27

@mfeineis

Description

@mfeineis

Hello there, I've been upgrading one of my own projects to Zig 0.15.1 and my most important dependency is zig-tree-sitter right now. I've got a local fork I'm working on, nothing major done yet just a dependency upgrade.

Would there be interest in getting those changes back into upstream, once they're ready? If you already have something brewing yourself feel free to close this issue otherwise I'd be happy to contribute.

I see the following things that need to be done/decided:

    1. Managed Zig containers have been deprecated so my plan would be to change the zig-tree-sitter APIs that use managed containers to use unmanaged variants instead, this'd be a breaking change as the user needs to supply their own std.mem.Allocator to every one of those calls. Another possibility would be to just use the renamed variants that are still in 0.15.1 but then another pass to remove the deprecated API usage - including another breaking change - would be necessary in the near future, likely in the October-end of the year time frame.
    1. The "writergate" changes in std.io mainly seem to impact the formatting functionality of the various structs since the signature of the format function has been changed
    1. Probably more I've not stumbled across yet :-)

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions