BACK_TO_FEEDAICRIER_2
Craft brings Cargo-like workflow to C/C++
OPEN_SOURCE ↗
HN · HACKER_NEWS// 2d agoOPENSOURCE RELEASE

Craft brings Cargo-like workflow to C/C++

Craft is a lightweight build and workflow tool for C and C++ that replaces a lot of early-project boilerplate with a simple `craft.toml`. It generates `CMakeLists.txt`, manages git and local dependencies, supports templates and file scaffolding, and offers a few escape hatches for custom CMake when needed. The pitch is straightforward: spend less time wiring up build files and more time writing code.

// ANALYSIS

Strong fit for developers who like the ergonomics of Cargo but are stuck in CMake land.

  • The core value prop is clear: one declarative config file, auto-generated CMake, and a single CLI for init/build/add/run.
  • Dependency management looks like the main differentiator, especially the `--git`, `--path`, and registry-style `craft add sfml` flow.
  • The tool is opinionated but not closed off; `CMakeLists.extra.cmake` gives an escape hatch for unsupported cases.
  • Cross-platform support and project templates make it more than a one-off generator, closer to a real workflow tool.
  • Biggest risk is adoption friction: C/C++ users are already entrenched in CMake, so Craft will need to prove that generated output stays transparent and dependable.
// TAGS
cc++build-toolcmakecargo-likedependency-managementcliopen-source

DISCOVERED

2d ago

2026-04-09

PUBLISHED

2d ago

2026-04-09

RELEVANCE

8/ 10

AUTHOR

randerson_112