Having local 3d party libraries

When using Rust I noticed an insane amount of external small dependencies.
With source hidden in some windows/user/.rust/etc… folder.

That is a thing I do not want.
So let’s say I want to use zigimg, which can read and write images of different kinds.
Then I want the source - self-controlled by me and only me - in a local folder of my choice.

How can I organize this in Zig?

You can clone the source repository of the dependency and place it in any directory inside or outside your project, the process is the same.
Assuming that you placed the clone inside your project at folder vendor/zigimg;
add the dependency in your build.zig.zon file under dependencies with path vendor/zigimg (when using the path there is no need for url or hash).
Another way to add the dependency is: zig fetch --save vendor/zigimg.

Ok thanks. I will try that tonight. Unnfortunately I have to work now :slight_smile: