Sunday | 22 SEP 2024
[ previous ]
[ next ]

ScarletDME - Upgrading Zig 0.11 to 0.12

Title:
Date: 2024-07-16
Tags:  

I finally upgraded Zig to 0.12 and it went relatively painlessly. I had a few errors due to using var when I could use const and that was the bulk of the code changes. There was a minor change in where some things were located. Stuff that was under std.os were now under std.posix.

There were a few changes to make in build.zig. Mostly just some cleanup as it looks like parameters got collapsed into one variable that holds all the parameters. I'm sure there were some good reasons for this but I didn't dig into the issues that explained all this.

I was dreading this migration and I haven't really touched ScarletDME or Zig recently so I was worried this was going to be a mess but it ended up being very easy. This probably one of the better upgrades I've done compared to the nodejs stuff that I've had to do before.

The blog is currently being served through the same code as before but now it's being built with Zig 0.12 instead of 0.11!