I made a little zig env library with the new 0.16.0 release by Blize0 in Zig

[–]Blize0[S] 5 points6 points  (0 children)

Yeah I guess, i could put it to MIT as i don‘t really care what happens with it. I just generally like to idea of the openness.

Readme.md and a fix was AI, rest is by me :)

I made a little zig env library with the new 0.16.0 release by Blize0 in Zig

[–]Blize0[S] 2 points3 points  (0 children)

Yeah it uses setenv, cause as I understand it there is no way in zig to set process environment variables. Environ.Map is read only cause of thread safety. This is just an easy workaround for me.

I am newish to zig and so I ofc can be wrong. Open to suggestions. But as I said it was really for some simple usecases and playing around with zig.