wefti

A drop-in CMake replacement in Rust

Yes. wefti is a drop-in replacement for CMake 4.5.1 written in safe Rust. It reads your existing CMakeLists.txt files and generates build files for the same toolchain. One binary provides cmake, ccmake, ctest, and cpack entry points.

Verified compatibility in v0.2.2

The release matches CMake 4.5.1 on 27,953 / 27,953 upstream cases across macOS, Linux, and Windows. The tests cover 1,099 suites. The compatibility report explains the test scope and links to the frozen data.

wefti v0.2.2 compatibility
AreaCoverage
Tests/RunCMake27,953 / 27,953 cases (100.00%) across 1,099 / 1,099 suites
Large C++ projects10 / 10 passed strict L1 configure and L2 Ninja dry-run parity
vcpkg1,520 / 1,520 ports with an observed CMake configure matched across 64 / 64 shards
Policies161 active policies from CMP0066 to CMP0226. CMP0000 to CMP0065 always use NEW behavior.
Presets and File APIPresets schema v13 and File API codemodel v2.12
GeneratorsNinja, Ninja Multi-Config, Unix Makefiles, NMake Makefiles, Xcode, Visual Studio 17 2022, and Visual Studio 18 2026

On a sealed set of 240 repositories, 44 of the 80 that configured with CMake passed strict configure parity (55.00%). Verify your own project before changing the build in production. Use upstream CMake if your workflow requires cmake-gui or an omitted generator.

Switch tools without rewriting your project

  1. Install the release. Follow the installation guide. Pass --alias-cmake on macOS or Linux, or -AliasCmake on Windows, to give your existing scripts the command names they expect.
  2. Verify your project. Keep a separate CMake 4.5.1 binary available. The verifier stages isolated copies and checks configure results, the File API model, and Ninja dry-run commands.
wefti verify --oracle /path/to/cmake-4.5.1 -- -S . -G Ninja
  1. Choose a mode. Use the cmake alias for the compatibility persona, which follows the upstream command and output conventions. Call wefti for the native persona, which adds the shared probe cache, incremental replay, and inspection tools.
  2. Run your build and tests. Use the same generator, compiler, and options you already use. Start in a fresh build directory for the first comparison.
cmake -S . -B build-wefti -G Ninja
cmake --build build-wefti
ctest --test-dir build-wefti

See how to speed up configure once your project passes its checks.

Frequently asked questions

Can I keep my existing CMakeLists.txt files?

Yes. wefti reads CMakeLists.txt files, CMake Presets v13, and CMakeCache.txt. Start with a fresh build directory to compare results with CMake 4.5.1.

Does wefti require upstream CMake?

The wefti engine runs on its own. The separate wefti-verify companion needs a CMake 4.5.1 binary for explicit side-by-side checks.

How do I replace cmake in a build script?

Install with --alias-cmake on macOS or Linux, or -AliasCmake on Windows. Put the install bin directory first on PATH and check cmake --version from the same environment as the build.

Does wefti work with vcpkg and Conan?

Yes. In v0.2.2, wefti matched CMake configure results on 1,520 / 1,520 scored vcpkg ports. It also passed 2 / 2 Conan ecosystem scenarios.