Lunify

Tests License: MIT

A crate for converting Lua bytecode to different versions and formats.

Currently only Lua 5.0 and Lua 5.1 are supported inputs and Lua 5.0 support is limited.

Example

``` use lunify::{Format, LunifyError, unify};

// Lua bytecode in any suppored format let inputbytes = includebytes!("../test_files/lua50.luab");

// Desired output format. May specify pointer width, endianness, sizes of datatypes, ... let output_format = Format::default();

// Convert input bytes to the desired format let outputbytes: Result, LunifyError> = unify(inputbytes.tovec(), outputformat); ```