← All projects
Project record1 mention
Originally shared on Hacker News

Cargo for C

A Cargo-like build tool and package manager for C. It gives C projects a TOML manifest and build scripts written in C that the tool JIT-compiles, provides a stable ABI, an HTTP-backed package index and a Git-backed package index, and builds dependencies natively instead of wrapping their Make or CMake files. It aims to let users run C files from source, generate single-file static binaries, and dynamically link against older glibc without arcane tricks.

Last shared
01 / The problem

What it addresses

Building C code requires pulling in Python or Lua for the build system, and the author considers CMake and the surrounding ecosystem painful.

02 / Source history

Shared over time

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

  1. Cargo for C

    A Cargo-like build tool and package manager for C. It gives C projects a TOML manifest and build scripts written in C that the tool JIT-compiles, provides a stable ABI, an HTTP-backed package index and a Git-backed package index, and builds dependencies natively instead of wrapping their Make or CMake files. It aims to let users run C files from source, generate single-file static binaries, and dynamically link against older glibc without arcane tricks.

    Problem: Building C code requires pulling in Python or Lua for the build system, and the author considers CMake and the surrounding ecosystem painful.

    Posted by @dboon · Original source ↗

    Source text · @dboon · · Source ↗

    I am making Cargo for C. I have 3/4 of a working demo; the tool can build itself, including some non-trivial dependencies which I've ported to build natively with the tool (instead of wrapping their Make or CMake or whatever).