Crafter.Build/examples/hello-world
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
..
main.cpp SPDX license update 2026-07-22 18:19:17 +02:00
project.cpp 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

hello-world

The smallest possible Crafter project: one main.cpp, one project.cpp.

cd examples/hello-world
crafter-build
./bin/hello-x86_64-pc-linux-gnu-native/hello

project.cpp returns a Configuration describing the build. GetInterfacesAndImplementations takes lists of source-file stems (no extension) — the build system appends .cpp to implementations and .cppm to interfaces.