Terra-Luvit is a Fork of Luvit that bundles Terra directly in it.
Terra-Luvit supports FFI and Lua and Terra based binary modules.
First you need to clone and build luvit, this is easy and works cross-platform thanks to Makefile
and make.bat
.
git clone https://github.com/shiranuit/terra-luvit.git
cd terra-luvit
make
If you want to test terra-luvit without constantly building, use luvi
.
luvi .
Always make sure to run make test
before submitting a PR.
- Use
luvi /path/to/terra-luvit
to test changes without rebuilding the binary. - To run the test suite, run
make test
to build a luvit and use that. - If you want to test a custom built luvi, run
luvi . -- tests/run.lua
- If you want to run a specific test file with a custom built luvi, run
luvi . -- tests/test-<name-of-test>.lua
(e.g.luvi . -- tests/test-http.lua
)