Crafter.Build/examples/hello-world
Jorijn van der Graaf 8892154b28
Some checks failed
CI / build-test-release (push) Failing after 7m15s
linting
2026-07-23 01:24:42 +02:00
..
main.cpp linting 2026-07-23 01:24:42 +02:00
project.cpp linting 2026-07-23 01:24:42 +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.