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.
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.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
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).