Show HN: A Cargo-like build tool for C/C++

The author built Craft, a lightweight build and workflow tool for C and C++ projects, to simplify project setup and dependency management.

💡

Why it matters

Craft can streamline the setup and management of C/C++ projects, helping developers focus on writing code instead of configuring the build environment.

Key Points

  • 1Craft generates CMakeLists.txt automatically and builds projects
  • 2Easily add dependencies with a simple command
  • 3Includes features like init, template, gen, and upgrade
  • 4Supports macOS, Linux, and Windows

Details

The author found that setting up C and C++ projects could be a hassle, with time spent writing CMakeLists.txt, figuring out find_package, and copying boilerplate. To address this, they built Craft, a tool that simplifies project configuration and dependency management. With Craft, the project setup is defined in a simple craft.toml file, and running 'craft build' generates the CMakeLists.txt and builds the project. Adding dependencies is also straightforward, with a single command to clone the repo or add a local library. Craft includes other features like initializing existing projects, saving project templates, generating starter code, and self-updating. The tool is cross-platform, supporting macOS, Linux, and Windows.

Like
Save
Read original
Cached
Comments
?

No comments yet

Be the first to comment

AI Curator - Daily AI News Curation

AI Curator

Your AI news assistant

Ask me anything about AI

I can help you understand AI news, trends, and technologies