| Filename | Latest commit message | Latest commit date |
|---|---|---|
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(). |
||
| .. | ||
| hello-world | ||
| library | ||
| tests | ||
| wasi | ||
| with-module | ||
| LICENSE | ||
| README.md | ||
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.