luadec-rust

Crates.ioluadec-rust
lib.rsluadec-rust
version0.2.5
created_at2025-08-04 07:06:12.971197+00
updated_at2025-09-04 03:44:32.885506+00
descriptionSafe Rust bindings for LuaDec - A Lua 5.1 bytecode decompiler
homepagehttps://github.com/ItsLucas/luadec-rust
repositoryhttps://github.com/ItsLucas/luadec-rust
max_upload_size
id1780407
size72,547
ItsLucas (ItsLucas)

documentation

https://docs.rs/luadec

README

luadec-rust

Crates.io Documentation

Safe Rust bindings for LuaDec, a Lua 5.1 bytecode decompiler.

This crate provides a safe, high-level API for decompiling Lua 5.1 bytecode. It wraps the unsafe FFI bindings to LuaDec in a memory-safe interface.

Requirements

  • C compiler (gcc/clang)
  • make
  • Lua 5.1 source code (included as git submodule)

Platform Support

  • Linux (tested)
  • macOS (tested)
  • Other Unix-like systems (should work)

Features

  • lua-5.1-32: Build with 32-bit Lua 5.1 support (useful for compatibility with older or 32-bit Lua bytecode)

Safety

This crate provides a safe interface to LuaDec by wrapping the unsafe FFI calls in memory-safe abstractions. All public APIs are designed to prevent undefined behavior and memory safety issues.

License

This project follows the same license as the original LuaDec project. Lua itself is licensed under the MIT license.

Commit count: 18

cargo fmt