Arwalk / zig-protobuf

a protobuf 3 implementation for zig.
MIT License
219 stars 25 forks source link

build error with zig 0.10.0 #14

Closed calvin2021y closed 1 year ago

calvin2021y commented 2 years ago

./build.zig:24:13: error: no member named 'path' in struct 'std.build.Pkg' .path = std.build.FileSource{.path = "src/protobuf.zig"}

Arwalk commented 2 years ago

Will try to update to zig 0.10 tonight.

Arwalk commented 2 years ago

@calvin2021y zig 0.10.0 has not been released yet AFAIK. I'd prefer to upgrade to a stable version when it is released.

If you have an actual use case for the library that requires zig 0.10.0-dev and want to tinker with it, i can make an exception though. I can't refuse some feedback :)

Would you like me to upgrade it?

calvin2021y commented 2 years ago

Thanks for the kind response, it will be great to upgrade for 0.10.0. (I guess we need upgrade soon or late.)

Arwalk commented 2 years ago

Well, once again, i'd have prefered to wait for a 0.10 official release. I will get the latest dev version and will precise the revision in the readme while upgrading.

Arwalk commented 1 year ago

@calvin2021y the branch update_to_0.10 is compatible with the stage1 compiler of 0.10.0. Sadly i can't seem to make it work with the stage 2 compiler: my abuse of comptime doesn't seem to work there.

I might have to rethink a bit about how to redo most of my code if my assumptions about comptime aren't possible anymore. Welp.

Arwalk commented 1 year ago

solved by #16