4 ms·
Don’t forget cmake. (It makes adding dependencies easy, and everything else basically impossible)
by hedora 1y ago
Don’t forget cmake. (It makes adding dependencies easy, and everything else basically impossible)
- pjmlp 1y agoSure, despite all the hate it gets, except for IDE project files, it is the best experience in C and C++ build tools since forever, including IDE integration just like those project files. I thought the whole UNIX mentality was worse is better. No build tool is without issues, my pain points with cargo, are always compiling from source, build caching requires additional work to setup, as soon as it is more than pure Rust, we get a build.rs file that can get quite creative.
- Ygg2 1y agoAnd from Internals discussion (https://internals.rust-lang.org/t/add-some-form-of-precompiled-artifact-support-to-cargo/22871/7 https://internals.rust-lang.org/t/add-some-form-of-precompil...) it seems this causes more problems than it solves. It requires huge storage, for each combination of targets, and even if it is was solved some members of Rust community would see it as a step back. Me included. They are hard to audit and are step back to OSS nature of Rust.
- lenkite 1y agoI also don't understand the CMake hate. Modern CMake (3.14+) is just around 10 lines to build basic sources/libraries/executables. And you can either use CMake FetchContent or use CPM https://github.com/cpm-cmake/CPM.cmake https://github.com/cpm-cmake/CPM.cmake to fetch dependencies. No third-party tool like vcpkg or conan is needed.
- harha_ 1y agoI think CMake is the perfect balance. You need to write few lines and think about few things before adding a dependency, but usually nothing too crazy. It might not work the first try but that's okay.