mitchellh / libxev

libxev is a cross-platform, high-performance event loop that provides abstractions for non-blocking IO, timers, events, and more and works on Linux (io_uring or epoll), macOS (kqueue), and Wasm + WASI. Available as both a Zig and C API.
MIT License
1.97k stars 65 forks source link

Install with Zig Fetch #103

Closed dotfelixb closed 1 month ago

dotfelixb commented 1 month ago

What is the url for libxev to install using

zig fetch --save '<libxev url>'
kassane commented 1 month ago

What is the url for libxev to install using

zig fetch --save '<libxev url>'

Hi @dotfelixb

Try:

# write or overwrite on zon dependencies
zig fetch --save=libxev git+https://github.com/mitchellh/libxev

In version 0.13.0 you do not need to add the commit hash (or branch name) to the URL as it will already be linked. However, previous versions need to add git+url#commit-hash