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.
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 pathvendor/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.