← All projects
Project record1 mention
Originally shared on Hacker News

Cargo but for C

This build tool and package manager aims to be Cargo for the C language: it pins dependencies precisely and builds everything from source with no binary repository, avoids depending on a scripting language or a complex DSL, and strikes a balance between "builds are data" and "builds are code". The goal is to be as big an improvement over existing C build tools (Conan, CMake, Make) as uv was over existing Python tools, despite no upstream libraries adopting it natively.

Last shared
01 / The problem

What it addresses

C build tooling has a huge gap: no tool pins dependencies precisely and builds everything from source, existing options depend on scripting languages (Conan uses Python) or overly complex DSLs (CMake, Make), and none balance "builds are data" with "builds are code".

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Cargo but for C

    This build tool and package manager aims to be Cargo for the C language: it pins dependencies precisely and builds everything from source with no binary repository, avoids depending on a scripting language or a complex DSL, and strikes a balance between "builds are data" and "builds are code". The goal is to be as big an improvement over existing C build tools (Conan, CMake, Make) as uv was over existing Python tools, despite no upstream libraries adopting it natively.

    Problem: C build tooling has a huge gap: no tool pins dependencies precisely and builds everything from source, existing options depend on scripting languages (Conan uses Python) or overly complex DSLs (CMake, Make), and none balance "builds are data" with "builds are code".

    Posted by @dboon · Original source ↗

    Source text · @dboon · · Source ↗

    I'm working on "Cargo but for C". It started out as something marginally more useful than vendoring your dependencies as submodules + baking in the knowledge of how to build a bunch of common projects.