Lua + libUV + jIT = pure awesomesauce
Welcome to the source code for Luvit 2.0. This repo contains the luvit/luvit metapackage and all luvit/* packages as published to lit.
See the main project webpage for more details. https://luvit.io/
Luvit supports FFI and Lua based binary modules. There is a wiki entry explaining how to manage and include a binary module within a bundled application. Publishing Compiled Code
First you need to clone and build luvit, this is easy and works cross-platform thanks to
git clone https://github.com/luvit/luvit.git cd luvit make
If you want to test luvit without constantly building, use
Always make sure to run
make testbefore submitting a PR.
luvi /path/to/luvitto test changes without rebuilding the binary.
make testto build a luvit and use that.
luvi . -- tests/run.lua
luvi . -- tests/test-.lua(e.g.
luvi . -- tests/test-http.lua)
The packages in deps live primarily in this repo, but some are duplicated in luvit/lit to ease
litbootstrapping. Updates can be pushed from either repo to lit, just make sure to keep them in sync. One way to do this is to
rm -rf deps && lit install. This will install the latest version of all the packages from lit. Check the diff carefully to make sure you're not undoing any work. There might have been unpublished changes locally in luvit that aren't in the lit central database yet.