Anyzls installs compatible zls version

anyzig is really nice. It reads build.zig.zon and installs required zig version. Handy for trying out latest std.Io stuff!

Though, stable zls sort of works with master zig, I was already inspired to write anyzls.

Shout out to https://github.com/jedisct1/zig-minisign. A reimplementation of minisign in Zig, that also can be used as a Zig module.

Zls website provides HTTP API, which given zig version returns compatible zls version. So, what was left is too glue everything together.

Here’s anyzls source code https://codeberg.org/knightpp/anyzls.

9 Likes

Note that anyzig already supports zls. You can build it with zig build zls in the anyzig repo. It’s a pitty perhaps that this is not mentioned in the readme.

4 Likes

Ooh, I didn’t know that.

@marler8997 maybe you should mention zls in the readme so people aren’t tempted to reinvent?

2 Likes