A minimal standalone Luau runtime with a task library (w/ spawn, defer, delay, wait, cancel)
and a fs library (w/ readFile, writeFile, exists), built on Luau's VM
cmake -S . -B build
cmake --build buildCMake will fetch the Luau source from GitHub automatically via FetchContent.
src/runtime.h/src/task_lib.cpp— the scheduler; a queue for current tick work and a heap of sleeping coroutines fortask.wait/task.delay.src/main.cpp— boots alua_State, compiles and runs a.luaufile, then callsScheduler::run()to drain anything spawned/deferred/waiting.src/fs_lib.cpp— three functions, a small extra library for working with file system