Skip to content

Comments

zig 0.15.0 support#105

Merged
kubkon merged 2 commits intokubkon:mainfrom
carlmontanari:feat/zig-0.15.0-support
Oct 9, 2025
Merged

zig 0.15.0 support#105
kubkon merged 2 commits intokubkon:mainfrom
carlmontanari:feat/zig-0.15.0-support

Conversation

@carlmontanari
Copy link
Contributor

👋 hey there, I just was updating a project of mine to use 0.15.1 zig and had this patch to get zig-yaml playing nicely there as well. really super minimal changes to use the managed array list. happy to tweak or close but just figured id share since id already got it working!

Copy link
Owner

@kubkon kubkon left a comment

Choose a reason for hiding this comment

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

Looks great, thanks! I would just like to revert a couple of stylistic changes that slipped through in this PR that IMHO should not part of this PR as they are not a matter of personal taste and are tangential to the core of the PR.

Comment on lines 3 to 6
const stringify = @import("../stringify.zig").stringify;
const testing = std.testing;

const Arena = std.heap.ArenaAllocator;

const stringify = @import("../stringify.zig").stringify;
Copy link
Owner

Choose a reason for hiding this comment

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

I do not think this refactoring effort should not be part of this PR.

src/Yaml.zig Outdated
Comment on lines 5 to 17
const log = std.log.scoped(.yaml);

const Allocator = mem.Allocator;
const ArenaAllocator = std.heap.ArenaAllocator;
const ErrorBundle = std.zig.ErrorBundle;
const Node = Tree.Node;

const Parser = @import("Parser.zig");
const ParseError = Parser.ParseError;
const Tokenizer = @import("Tokenizer.zig");
const Token = Tokenizer.Token;
const Tree = @import("Tree.zig");
const Node = Tree.Node;

const log = std.log.scoped(.yaml);

Copy link
Owner

Choose a reason for hiding this comment

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

I do not think this refactoring effort should not be part of this PR.

Comment on lines 1 to 6
const Tokenizer = @This();

const std = @import("std");
const log = std.log.scoped(.tokenizer);
const testing = std.testing;

const Tokenizer = @This();

const log = std.log.scoped(.tokenizer);
Copy link
Owner

Choose a reason for hiding this comment

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

I do not think this refactoring effort should not be part of this PR.

Comment on lines 5 to 10
const Parser = @import("../Parser.zig");
const Tree = @import("../Tree.zig");
const List = Tree.List;
const Map = Tree.Map;
const Node = Tree.Node;
const Parser = @import("../Parser.zig");
const Tree = @import("../Tree.zig");

Copy link
Owner

Choose a reason for hiding this comment

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

I do not think this refactoring effort should not be part of this PR.

@carlmontanari carlmontanari requested a review from kubkon September 1, 2025 14:24
@carlmontanari
Copy link
Contributor Author

No problemo, reverted those cosmetic ones!

@bradcypert
Copy link

Nice! I was looking to upgrade a project using this to 0.15.1 and planned on making these changes, but it looks like you've already beat me to it!

@carlmontanari
Copy link
Contributor Author

👋 hey just checkin if there were any other changes you'd like to see. would be dope to get this merged! thanks a bunch!

@kubkon
Copy link
Owner

kubkon commented Oct 9, 2025

Hi! Sorry for the delay in getting this landed - life happened. Anyhow, I'll focus on getting this landed ASAP.

Copy link
Owner

@kubkon kubkon left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@kubkon kubkon merged commit a6c2cd8 into kubkon:main Oct 9, 2025
5 checks passed
@carlmontanari
Copy link
Contributor Author

Hi! Sorry for the delay in getting this landed - life happened

I totally know the feeling! Thanks a bunch for this project and all your work!

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