3 ms·
In case you didn't know, cargo is available as a library as well[0]. I don't know why the current Zig approach[1] would be preferable, as you dump some source
by hobofan 6y ago
In case you didn't know, cargo is available as a library as well[0].
I don't know why the current Zig approach[1] would be preferable, as you dump some source code that you are now responsible to maintain in your project. Any bigger project project will require writing boilerplate code just to get things built.
It's also a bit of comparing apples to oranges, as Zig's build system doesn't come with a package manager (which I would say makes up a good chunk of Cargo's complexity).
[0]: https://crates.io/crates/cargo https://crates.io/crates/cargo
[1]: https://ziglang.org/#Zig-Build-System https://ziglang.org/#Zig-Build-System