zig : pass version from build.zig.zon file to runtime

In this blog post we will explore how to pass the options/values from the build to the project’s Zig code. To illustrate this, we will consider the example of reading the version from build.zig.zon at build and using it at runtime. Zig won’t allow us to import the build.zig.zon file in our main or other source files. So we need to get the value at build and expose it to our modules. use addOptions…