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

I love C and C++, but setting up projects can sometimes be a pain.Every time I wanted to start something new I'd spend the first hour writing CMakeLists.txt, figuring out find_package, copying boilerplate from my last project, and googling why my library isn't linking. By the time the project was actually set up I'd lost all momentum.So, I built Craft - a lightweight build and workflow tool for C and C++. Instead of writing CMake, your project configuration goes in a simple craft.toml: [project] name = "my_app" version = "0.1.0" language = "c" c_standard = 99 [build] type = "executable" Run craft build and Craft generates the CMakeLists.txt automatically and builds your project. Want to add dependencies? That's just a simple command: craft add --git https://github.com/raysan5/raylib --links raylib craft add --path ../my_library craft add sfml Craft will clone the dependency, regenerate the CMake, and rebuild your project for you.Other Craft features: craft init - adopt an existing C/C++ project into Craft or initialize an empty directory. craft template - save any project structure as a template to be initialized later. craft gen - generate header and source files with starter boilerplate code. craft upgrade - keeps itself up to date.CMakeLists.extra.cmake for anything that Craft does not yet handle.Cross platform - macOS, Linux, Windows.It is still early (I just got it to v1.0.0) but I am excited to be able to share it and keep improving it.Would love feedback. Please also feel free to make pull requests if you want to help with development!

Hacker NewsToolAISource
0Sign in to voteCopy link

FL score

55

out of 100

Verdict

VALIDATE

high confidence

Competition

7

competitors found, mature market, funded players

Trend

No signal yet

A 'Cargo-like' C/C++ build tool offering simpler project setup and dependency management, but facing an insurmountable wall of free, big-tech-backed competitors.

The pain

C/C++ developers spend excessive time on complex CMake setup, boilerplate, `find_package` issues, and linking problems, leading to lost momentum and frustration. Existing tools like vcpkg, while powerful, often inherit CMake's complexities or have their own limitations.

The gap

The gap is for a truly simple, intuitive developer experience for C/C++ project setup and dependency management, abstracting away CMake's complexities, particularly for solo developers or small teams. This is a desire for a 'Cargo-like' workflow, which current tools don't fully deliver in terms of ease-of-use without significant configuration.

Build angle

A lightweight, cross-platform build and workflow tool that uses a simple `craft.toml` to automatically generate CMakeLists.txt, manage dependencies with a `craft add` command, provide project templates, and generate starter files, focusing on developer experience and speed.

Strengths

  • Addresses a real, persistent, and specific pain point for C/C++ developers.
  • The creator has successfully built a v1.0.0 MVP, demonstrating technical capability.
  • The 'Cargo-like' simplicity offers a desirable developer experience for those frustrated with existing solutions.

Risks

  • The market is heavily dominated by powerful, free, open-source build tools backed by tech giants (Google, Microsoft, Meta), making direct competition extremely difficult.
  • No clear path to monetization exists; users are accustomed to free core build tools, and commercial models are typically for adjacent enterprise services.
  • High switching costs for existing C/C++ projects, even with a better tool.
  • Extremely challenging to gain adoption and build a community against entrenched incumbents with massive resources.
  • The 'simplicity' value proposition, while attractive, may not be enough to overcome the inertia and feature sets of more complex, established tools for various use cases.

Next steps

  1. Consider open-sourcing the project and building a community without direct monetization expectations, as a portfolio piece.
  2. If monetization is a goal, explore niche adjacent services (e.g., custom integrations, specialized templates for specific industries, paid educational content around the tool) rather than selling the core tool itself.

Questions about this idea?

FlyBot reads the scoring and gives you a second opinion on “I built a Cargo-like build tool for C/C++”.

Open FlyBot