Hacker News new | ask | show | jobs
by rational_indian 698 days ago
That's the problem with C. It cannot have a sane cargo like system. The language is not built for writing libraries. There is a reason why everyone keeps reinventing the wheel when it comes to datastructures in C. Where is STL for C?
2 comments

The closest is GLib and it's absolutely not fun to work with.
you could use the Zig build system as your C build system. See https://zig.news/kristoff/make-zig-your-c-c-build-system-28g...
Cargo is just half the story. The other half is rust itself. It is an excellent language for writing abstractions.