Hacker News new | ask | show | jobs
by rgrs 2167 days ago
How is the build system? Is it stable and easy?
5 comments

In my experience, Cargo is much easier and more reliable than the systems I've used across Java/C++/Scala/Python/Go/JavaScript. It is such a pleasure to use.
For 99.9% of projects, a "cargo build" and you're done.
stable: depends on what you mean, but afaict, cargo is very stable, in both terms of interface and bugfree-ness.

easy: far easier than gradle and maven, imho even easier than go. Definitely easier than cmake.

Here are the problems I've had with other build systems, as a noob, that I have not had with Cargo:

- Having to learn weird syntax and constantly look up the reference manual (CMake) - Having to manually add source files (qmake) - Sometimes it just needs a clean and nobody knows why (Visual Studio) - Having to remember to set up debug and release builds and decide your directory layout for everything and figure out what 'a shadow build' is and who gives a crap since it all takes too much HDD space either way (qmake, CMake, make)

Also having tests built-in is really nice. Rust is the only language where I bother writing tests. Everything else makes it too hard, as if entry points into your binary are supposed to be rare and expensive.

The build system and the package manager are the best of them all.