Zig projects with dependencies will have a build.zig.zon
.{
// ...
// This field is optional.
// This is currently advisory only; Zig does not yet do anything
// with this value.
.minimum_zig_version = "0.13.0",
// ...
}
It would be nice to use this as a source for a compiler version.