-
crafter-build 4.0.0
StableAll checks were successfulFlatpak / flatpak (push) Successful in 11m5sreleased this
2026-10-31 16:59:28 +00:00 | 100 commits to master since this releaseNew
- A project keeps its agent instructions in
AGENTS.template.md, andcrafter-buildandcrafter-build testwriteAGENTS.mdfrom it with the dependencies' notes merged in: after the template's text, or between its marker lines.AGENTS.mdis build output, so it goes into .gitignore, and a fresh clone has none until its first build. A project with a committedAGENTS.mdmoves over withgit mv AGENTS.md AGENTS.template.mdandecho /AGENTS.md >> .gitignore. AnAGENTS.mdno build wrote, such as a committed one still beside a new template, is never replaced; every build warns until it is deleted.
Fixes
- A build no longer changes a file the project commits. The dependency notes lived in a section of the committed
AGENTS.md, so a dependency that edited its notes, an unpinned one that moved on, or a flag that pulled one in showed up in the project's diff as a change nobody made.
Breaking
- Without an
AGENTS.template.md, a build leavesAGENTS.mdalone. A section 3.0.0 kept in it is no longer updated, and every build warns about it until the file is moved to the template or the section is deleted.
Downloads
- A project keeps its agent instructions in
-
crafter-build 3.0.0
StableAll checks were successfulFlatpak / flatpak (push) Successful in 12m53sreleased this
2026-10-31 06:21:29 +00:00 | 106 commits to master since this releaseNew
- C++ exceptions work in WebAssembly builds. Every
wasm32-wasip1unit and the std module are compiled with WebAssembly exception handling in its standardized form (exnref), against the exception-enabled libc++ the sysroot ships underlib/<triple>/eh/, and-lunwindand-lsetjmpare linked automatically, so throw and catch, libc++'s own throws, setjmp and longjmp all work. The Flatpak's WASI sysroot is built with those libraries. A page fromEnableWasiBrowserRuntimeprobes for the feature and names what an older browser lacks instead of failing with a CompileError. - Scripts. A project.cpp can push a name and a C++ callback onto
cfg.scripts;crafter-build run <name> [args...]runs it with everything after the name handed over untouched, a barerunlists the scripts, and the callback's return value is the exit status.ScriptContextgives it the project, the project directory, the arguments andRun(command), which runs a shell command with the terminal attached.Crafter::ShellQuoteis exported. Only the scripts of the project crafter-build was pointed at can be run, never a dependency's. - Dependency notes for agents. A library ships an
AGENTS.consumer.mdbeside its project.cpp;crafter-buildandcrafter-build testkeep its dependencies' notes in a marked section of a consumer'sAGENTS.md, when the consumer has one, and never create the file.cfg.dependencyNotespicks the dependencies:Transitive(the default),DirectorNone, which also removes the section. - In a page from
EnableWasiBrowserRuntime,exitand_Exitend the program without running any of its code on the way out, no destructor and nocatch (...), with the status inwindow.crafter_wasi.exitCode. A program that hands the thread to the browser for good and goes on serving calls importscrafter_runtime.parkinstead, which never returns and leaves main's locals valid for the calls that follow. - The mingw target is found where it is: by the
x86_64-w64-mingw32-gccon PATH, throughCRAFTER_MINGW_DIRnaming another prefix, and inside the Flatpak through the host's /usr when it has mingw-w64. Its std module comes from the toolchain's own libstdc++.modules.json, and a toolchain that is not there is a build error saying where it looked, not std::terminate.
Fixes
- A program that holds two builds of one module is refused before anything compiles, with both paths and what tells the builds apart. A sibling project that two paths loaded with different arg lists used to be built twice, every consumer took whichever build clang found first, and the program built cleanly and then read garbage or crashed (#41).
- An external dependency shared by the configurations of one build is fetched and built once per build pass instead of once per configuration, and each clone's fetch and build hold a file lock. The tests of a project that copies its externalDependencies into each test pulled the same clone side by side and broke its FETCH_HEAD, which failed every test (#34); they now wait for one fetch.
- Incremental builds pick up more of what changed. A shader rebuilds when a file it includes or one of its settings (stage, entry point, defines, include directories) changes, not only its own source. An executable relinks when its link command changed, such as a new link flag or a dependency's library that moved to another cache directory, not only when an object is newer.
- Submodules are checked out at the revisions the fetched commit records, after every clone, switch, checkout and pull, so a pinned commit builds against its own submodules and not the default branch's.
- A project that loads the same sibling as one of its
#pragma crafter dependencytools, with the same args, got the tool's copy back: host tooling with -march=native and -fPIC, whose BMI clang then refused. Host tooling and everything it loads are now kept apart in the project cache. crafter-build format cleanformats the rules matching "clean"; it used to delete bin/ and build/ and exit 0.--ends crafter-build's options, as the help has advertised: every later word is an operand of the verb. It used to be forwarded as a project arg and change the variant hash, and the words after it were still read as options.ProjectDependency()works from a static initialiser of a project file; it used to find nothing there and terminate the process.
Breaking
- A wasm build needs a sysroot that ships the exception-enabled libc++ and libunwind (wasi-sdk 33 or later; the Flatpak's does), and stops with one line saying so without one. It refuses
-fno-exceptions,-fltoin compileFlags or linkFlags, and shared libraries, each with a message that says why; there is no switch back to building without exceptions. The result runs on engines with exnref: Chrome 137, Firefox 131, Safari 18.4 and wasmtime 47 or newer (the bundled one qualifies; an older wasmtime needs-W exceptions=y). An exception that escapes main ends the program as an uncaught WebAssembly exception without calling std::terminate, so catch it in main to report it. The flags are part of the variant hash, so the first wasm build after updating starts in a fresh directory. - A sibling loaded through
GitProjectorLocalProjectwithout.argsnow receives the args its loading project.cpp was given, so--target=,--march=,--debugand the project's own flags reach every sibling down the chain; releases up to 2.2.0 forwarded nothing. Set.args = {}to keep the old behaviour, and give every sibling the same list: a project that two paths load with different lists now stops the build. The default is read when the spec is made, so make it insideCrafterBuildProject; a spec made at namespace scope forwards nothing. A#pragma crafter dependencystill gets none of the project's args.
Install:
flatpak remote-add --if-not-exists catcrafts https://flatpak.catcrafts.net/catcrafts.flatpakrepo flatpak install catcrafts net.catcrafts.CrafterBuildDownloads
- C++ exceptions work in WebAssembly builds. Every
-
crafter-build 2.2.0
StableAll checks were successfulFlatpak / flatpak (push) Successful in 15m0sreleased this
2026-10-16 22:10:57 +00:00 | 154 commits to master since this releaseA Shader entry can carry defines, spelled like the compiler's -D (NAME is defined to 1, NAME=VALUE to VALUE), and a variant that names its output, so one source compiles into several outputs: ui.comp.glsl with variant sets becomes ui.comp.sets.spv. A configuration in which two entries share an output name is refused with both named, as are a malformed define and a variant with a path separator.
Compiles with a sysroot now use the sysroot's own libc++ headers instead of the bundled toolchain's, which fixes cross builds against a musl sysroot that include a standard header textually and stops glibc sysroot builds from silently compiling against the wrong libc++ release. The project.so stamp hashes every part of the host build, so a changed declaration recompiles it. The vendored json.hpp is gone.
Install:
flatpak remote-add --if-not-exists catcrafts https://flatpak.catcrafts.net/catcrafts.flatpakrepo flatpak install catcrafts net.catcrafts.CrafterBuildDownloads
-
crafter-build 2.1.0
StableAll checks were successfulFlatpak / flatpak (push) Successful in 19m32sreleased this
2026-10-03 18:55:33 +00:00 | 165 commits to master since this releaseThe bundled toolchain is now LLVM 23.1.2. Build outputs are kept per compiler, so the first build after updating recompiles each project into a fresh directory and nothing has to be cleaned by hand.
Cross builds pick the std module source that matches the sysroot's libc++ release. The source for libc++ 22 ships beside the bundled 23 for sysroots that carry libc++ without one, such as Alpine, and a sysroot nothing matches fails with one line naming both releases. crafter-build --version prints the libc++ release in use.
Install:
flatpak remote-add --if-not-exists catcrafts https://flatpak.catcrafts.net/catcrafts.flatpakrepo flatpak install catcrafts net.catcrafts.CrafterBuildDownloads
-
crafter-build 2.0.0
StableAll checks were successfulFlatpak / flatpak (push) Successful in 20m44sreleased this
2026-10-03 14:24:23 +00:00 | 176 commits to master since this releaseFirst release distributed as a Flatpak, with a bundled LLVM 22 toolchain and WASI sysroot. Windows host support is removed; crafter-build gains --version and resolves its compiler from one place.
Install:
flatpak remote-add --if-not-exists catcrafts https://flatpak.catcrafts.net/catcrafts.flatpakrepo flatpak install catcrafts net.catcrafts.CrafterBuildDownloads