1
0
Fork
You've already forked anyzls
0
forked from knightpp/anyzls
Automatically downloads compatible zls version for your Zig!
  • Zig 100%
2026年05月01日 21:18:58 +03:00
src Print error when API fails 2026年04月15日 18:56:24 +03:00
.gitignore Update to Zig 0.16 2026年04月15日 18:56:24 +03:00
build.zig Init 2026年01月11日 12:37:27 +02:00
build.zig.zon Update to Zig 0.16 2026年04月15日 18:56:24 +03:00
LICENSE Relicense 2026年04月18日 14:32:44 +03:00
readme.md Add how it works section 2026年05月01日 21:18:58 +03:00

anyzls

This tool is intended to automatically download required zls version for certain Zig version.

Inspired by https://github.com/marler8997/anyzig.

How to use

Compile and add output executable to path, for example:

zig build --release=safe
cp ./zig-out/bin/zls ~/.local/bin/zls

Now, whenever IDE execute zls executable, it should get this "wrapper" zls. Which checks current Zig version then finds compatible zls version using HTTP API and finally installs it.

How it works

  1. Get current zig version by running zig version
  2. Send HTTP request to releases.zigtools.org/v1/zls/select-version
  3. Download tarball and signature
  4. Check signature
  5. Unpack tarball into cache
  6. Run zls from cache

License

Licensed under the EUPL-1.2 or later.

You may obtain a copy of the licence at https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12.