HeadlinesBriefing favicon HeadlinesBriefing.com

Craft streamlines C/C++ builds with Cargo‑style tooling

Hacker News •
×

Craft positions itself as a lightweight alternative to CMake, allowing developers to define projects in a single craft.toml file and let the tool generate required CMakeLists automatically. By handling dependency resolution and project scaffolding, it removes the manual configuration that traditionally burdens C/C++ developers.

The tool supports both local and Git‑based dependencies, enabling commands like `craft add --git https://github.com/raysan5/raylib.git --links raylib` to clone and link libraries with a single line. Templates further accelerate setup: users can save a project layout as a reusable template and instantiate new projects instantly.

Installation is straightforward across macOS, Linux, and Windows, requiring only Git and CMake. Once installed, commands such as `craft build` and `craft run` invoke CMake under the hood, while `craft update` keeps external dependencies current. The result is a modern CLI that feels familiar to Rust’s Cargo while keeping C/C++ projects tidy.

Craft’s approach reduces build friction and encourages consistent project structure, making it a practical choice for teams looking to streamline C/C++ development without abandoning established tooling.