Crafter.Build/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jorijn van der Graaf fcfac0d9cf
docs: tests that open windows, and the compositor each one gets
The README's Tests section gains "Tests that open windows": a test that
sets Test::wayland, or .Wayland() on what AddTest returns, runs with a
headless compositor of its own instead of the session's display. It
says what crafter-build gives the compositor and the test and what it
does afterwards; the default weston command, weston 12 as the first
release that takes its --renderer=, and what its renderer and two
options are for; how CRAFTER_BUILD_COMPOSITOR, --compositor= and
`host` choose another; when the compositor fails the test, how a test
that may run without weston is skipped, and where the compositor's
output goes; and what a crafter-build that is killed leaves.
The CLI examples gain --compositor=host, and examples/tests/README.md's
list of the builder's methods gains .Wayland().
2026-11-28 11:05:51 +01:00
..
hello-world feat(toolchain): resolve the compiler in one place 2026-10-02 22:26:31 +02:00
library feat(toolchain): resolve the compiler in one place 2026-10-02 22:26:31 +02:00
tests docs: tests that open windows, and the compositor each one gets 2026-11-28 11:05:51 +01:00
wasi docs: wasm exceptions as the review left them 2026-10-31 06:10:41 +01:00
with-module feat(toolchain): resolve the compiler in one place 2026-10-02 22:26:31 +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.