Skip to content
Tech News
← Back to articles

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

read original get CMake Official Documentation → more articles
Why This Matters

Craft introduces a streamlined, Cargo-like build tool for C and C++ developers, simplifying project setup, dependency management, and build processes. By automating CMake configuration and offering an easy-to-use interface, it reduces the complexity traditionally associated with C/C++ development, potentially increasing productivity and lowering barriers for new developers.

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