Skip to content
Tech News
← Back to articles

I built a Cargo-like build tool for C/C++

read original get CMake Official Guide Book → more articles
Why This Matters

Craft introduces a simplified, Cargo-like build system for C and C++ developers, streamlining project setup, dependency management, and build processes. By automating CMake configuration and providing an easy-to-use interface, it reduces the complexity traditionally associated with C/C++ development, making it more accessible and efficient for both individual developers and teams.

Key Takeaways

Craft

A lightweight build tool for C and C++ projects — think Cargo, but for C/C++.

C and C++ development has always required wrestling with CMake, configuring build systems, and manually managing dependencies. Craft eliminates that friction. You describe your project in a simple craft.toml file and Craft handles the rest by generating CMake configuration, managing dependencies, and providing a clean command-line interface that feels modern and smooth.

How Craft Works

Define your project in craft.toml Craft generates CMakeLists.txt Dependencies are fetched automatically CMake builds your project behind the scenes

Quick Example

# Create a new project craft project my_app cd my_app # Add a dependency craft add --git https://github.com/raysan5/raylib.git --links raylib # Build it craft build # Run it craft run

What Craft Solves

One file defines your project

Describe your project in a simple, readable config:

... continue reading