# Lunify
[](https://github.com/ve5li/lunify/actions?query=workflow%3ATests)
[](https://opensource.org/licenses/MIT)
[](https://crates.io/crates/lunify)
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
```rust
use lunify::{Format, LunifyError, unify};
// Lua bytecode in any suppored format
let input_bytes = include_bytes!("../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 output_bytes: Result<Vec<u8>, LunifyError> = unify(input_bytes, output_format);
```