You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=zigfetch= behaves similarly to =zig fetch=, but utilizing the capabilities of libcurl for its functionality.
8
8
9
-
HTTP support within Zig's standard library isn't currently stable, [[https://github.com/ziglang/zig/issues/21792][this proxy issue]] make it even harder, resulting in multiple errors occurring during dependency downloads when building Zig projects.
9
+
HTTP support within Zig's standard library isn't currently stable, [[https://github.com/ziglang/zig/issues/21792][this proxy issue]] make it even harder, resulting in multiple errors occurring during dependency downloads when building Zig projects. This poses a significant challenge for Chinese developers owing to [[https://en.wikipedia.org/wiki/Great_Firewall][the Great Firewall]].
This poses a significant challenge for Chinese developers owing to [[https://en.wikipedia.org/wiki/Great_Firewall][the Great Firewall]].
14
-
15
-
As a consequence, =zigfetch= was developed; this tool operates via libcurl to ensure that both the =http_proxy= and =https_proxy= environment variables function correctly.
16
-
17
-
- https://curl.se/libcurl/c/libcurl-env.html
13
+
As a consequence, =zigfetch= was developed. It operates via libcurl to ensure that both the =http_proxy= and =https_proxy= [[https://curl.se/libcurl/c/libcurl-env.html][environment variables]] function correctly.
18
14
15
+
** Usage
19
16
#+begin_src bash :results verbatim :exports result :dir ../../..
20
17
./zig-out/bin/zigfetch --help
21
18
#+end_src
@@ -34,9 +31,12 @@ As a consequence, =zigfetch= was developed; this tool operates via libcurl to en
34
31
-d, --debug-hash Print hash for each file
35
32
#+end_example
36
33
34
+
If the argument is a local directory, =zigfetch= will attempt to open =build.zig.zon=, download dependencies specified in the =.dependencies= fields, and then calculate hashes for each package. If these hashes match those in the =.hash= fields, =zigfetch= will move them to =~/.cache/zig/p/{hash}= after completion.
37
35
38
-
This is a demo for socks5 proxy setup:
36
+
If =zigfetch= succeeds, =zig build= will build the project directly, assuming the dependencies already exist.
0 commit comments