|
|
|
|
|
by saghm
3336 days ago
|
|
Right, but you only have to do that once per project, unless you make a habit of clearing your dependencies quite often. Personally, I'd rather spend two minutes compiling my dependencies once every month or so than have to maintain a complex build system for a project in order to support different toolchains and platforms. I guess if your project is relatively small or constrained to certain toolchains/platforms, it wouldn't be as much of an issue, but at least for the project I work on, maintaining the build system is definitely a non-trivial amount of effort. |
|
Those two minutes are actually around ten minutes to compile something like rustfmt, just because binary dependencies aren't supported.
My average C++ projects, mixed with Java or .NET code are the ones actually taking two minutes, on the same system.
Truth be told they would take much longer when compiling everything from scratch, but we never do, because we already have the binary libraries.
So it is a bit hard to sell Rust when the toolchain is slower than C++, which I am pretty confident it will certainly improve in any case.