Zig 0.17.0

version

On this page:

  • spider.version: The version of this Spider (std.SemanticVersion): spider.version.minor.

spider.version

zig
pub const version: std.SemanticVersion = std.SemanticVersion.parse(string) catch unreachable

The version of this Spider: spider.version.major, .minor, .patch.

zig
if (spider.version.order(try std.SemanticVersion.parse("0.11.0")) == .lt) {
    // an older Spider
}

What the declarations above take or give back, without a name of its own in spider.

string

zig
pub const string = "0.11.0"

The version of this Spider, as text: the same as build.zig.zon.