deft v0.2
deft
Next-gen build system for C/C++.
cargo build --release
deft is in early access. Expect bugs, breaking changes, and rough edges.
Why deft
Built for speed.
Designed for scale.
Strict project layout
No globbing, no guessing. The entry point is
exactly
src/main.cpp / src/main.c (executables) or src/lib.cpp /
src/lib.c (libraries). Missing it fails the build immediately.Strict C / C++ separation
A package is single-language. C and C++ are
distinct enums in the build engine, and a package containing both source
languages fails the build rather than silently mixing flags.
Manifest-driven Clang
Optimization levels, warnings, language
standard, RTTI, and exceptions all live in
deft.toml. No messy flag
strings.Reproducible builds
deft.lock pins every dependency to an exact git
commit SHA, written atomically. deft build always honors the lock;
deft update is the only command that rewrites it.Parallel by default
A
std::thread + Mutex + mpsc work
queue compiles translation units across all cores (-j to tune), streaming
diagnostics back as each unit finishes.Cross-platform static linking
Archiving tries
ar (Unix) or
llvm-ar then lib.exe (Windows), falling through only when a tool is
genuinely missing.