I built a Cargo-like build tool for C/C++
Details
- External ID
- 47705413
- Source
- HN
- Company
- —
- Product
- I built a Cargo-like build tool for C/C++
- Website domain
- github.com
- Launched
- April 9, 2026
- Cohort
- —
- Upvotes
- 177
- Upvotes percentile
- 0.9524421593830334
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:26 p.m.
- Updated at
- Sept. 7, 2026, 9:26 p.m.
Description
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!
Enrichment
- Theme
- Claude integrations and coding agents
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- Not AI
- Project type
- Commercial product
- Normalized one-liner
- cargo-like build tool for c/c++
- Manually corrected
- False
Could you build this?
No Creating a viable C/C++ build system and package manager requires complex cross-platform compiler toolchain orchestration, ABI compatibility management, dependency resolution DAGs, and deep low-level system tooling expertise.
What it would actually take: A real implementation (like Cargo, Meson, or Conan) is typically written in Rust or C++. It requires building a SAT/PubGrub dependency solver, handling intricate toolchain targets across MSVC, GCC, and Clang, managing static/dynamic linking nuances, caching compilation artifacts reliably, and standardizing C/C++ packaging formats across varied OS platforms.
Discussion
20 comments analyzed.
Competitors mentioned: CMake, Make, kdesrc-build and kde-builder for KDE, xmake, Bazel/Buck
Concerns raised: Yet another C/C++ build system when existing tools already exist, Difficulty integrating with CMake-based projects as dependencies, IDE integration with generic build file formats lacking, Complexity of handling compiler quirks across platforms, Managing multi-language dependencies (Python, JS) in C/C++ context
Feature requests: Hermetic builds from local sources and git submodules, Handle compilation of resource and translation files, Simpler alternative to Bazel/Buck with ease of use, Standard TOML/INI project file format across languages and tools
Competitors
Other products that read as similar to this one — 139 launches clear the similarity bar, closest 8 shown.
Attention rank: #4 of 140 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 160 days after the earliest competitor.
- Modern C++ Build Tools for Module Feature · hn · 2026-08-08 · 8 upvotes · similarity 0.57
- Flint · hn · 2026-08-29 · 13 upvotes · similarity 0.54
- C/C++ Cheatsheet · hn · 2026-01-23 · 10 upvotes · similarity 0.53
- A C/C++ IDE written in C from scratch with zero dependencies · hn · 2026-03-22 · 10 upvotes · similarity 0.52
- CJIT, a single-binary C compiler that can self host · hn · 2026-04-13 · 7 upvotes · similarity 0.50
- I built a small browser engine from scratch in C++ · hn · 2026-01-28 · 146 upvotes · similarity 0.49
- STM32_VSCode_Setup · github · 2026-09-11 · 15 upvotes · similarity 0.47
- Hybrid-Transpiler · hn · 2025-12-26 · 8 upvotes · similarity 0.43
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.