Crafter.Build/examples
Jorijn van der Graaf 7ff426b2f0
Some checks failed
CI / build-test-release (push) Failing after 5m36s
SPDX license update
Canonical LGPL-3.0-only text, GPL-3.0 companion, SPDX headers on all
first-party sources, MIT for examples/. Vendored lib/ untouched.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-22 18:19:17 +02:00
..
hello-world SPDX license update 2026-07-22 18:19:17 +02:00
library SPDX license update 2026-07-22 18:19:17 +02:00
tests SPDX license update 2026-07-22 18:19:17 +02:00
wasi SPDX license update 2026-07-22 18:19:17 +02:00
with-module SPDX license update 2026-07-22 18:19:17 +02:00
LICENSE SPDX license update 2026-07-22 18:19:17 +02:00
README.md V2: WASI, -r flag, CI pipeline, examples & tests cleanup 2026-04-28 23:24:46 +02:00

Examples

Self-contained projects, ordered from simplest to most full-featured. Each example has its own README explaining what it shows.

Example What it shows
hello-world The minimum: project.cpp + main.cpp
with-module Adding a C++ module interface
library Library + executable, linked via cfg.dependencies
tests Auto-discovered tests + tests that link the parent library

Each example builds standalone: cd examples/<name> && crafter-build. Test examples: crafter-build test.