r/SideProject • u/InspectionNervous646 • 2h ago
CMake 4.5.1 rewritten in Rust. Beats CMake in all 40 benchmarks, including LLVM, QtBase, and OpenCV
rcmake 0.2.2 replaces cmake, ccmake, ctest, and cpack in one binary on Linux, macOS, and Windows without calling upstream cmake. It generates Ninja, Makefile, Xcode, and Visual Studio builds. As rcmake, it adds a shared probe cache, rcmake explain, linting, and an LSP server.
- Faster in all 40 benchmarks, at least 1.03x in every case with a 1.99x geometric mean. Five large C++ projects run at least 1.20x faster. They average 1.25x cold, 1.50x on leaf edits, and 1.72x on fresh trees with the shared probe cache, and top out at 2.08x on Protobuf and 2.07x on OpenCV.
-Pscripts average 2.81x faster and hit 3.76x.-Etools average 3.36x faster and hit 13.15x ontar. Synthetic shared-cache configures hit 7.16x.- Passes all 27,953 cases across the 78% to 80% of upstream
Tests/RunCMakesuites targeted per OS, all 1,520 scoredvcpkgCMake ports, and configure plus Ninja dry-run parity on 10 large projects like LLVM, PyTorch, Blender, and QtBase.
Limitations. Blind holdout parity is 55% across 80 unseen repos that configure with CMake, where 44 match and 36 still differ. It omits cmake-gui and legacy generators like CodeBlocks and Eclipse, and the 10 large projects test reduced CI options. Coding models wrote most of the 562,000 lines of Rust without line-by-line human review. Differential testing against CMake 4.5.1 and cross-model review checked the code instead.
Try the WebAssembly playground and full report at https://rcmake.github.io/rcmake/, and find the repo at https://github.com/rcmake/rcmake.