pub fn decompile_file<P: AsRef<Path>>(path: P) -> Result<String>
Expand description
Decompile Lua 5.1 bytecode from a file
§Arguments
path
- Path to the compiled Lua bytecode file (.luac)
§Returns
Returns the decompiled Lua source code as a String, or a DecompileError if reading the file or decompilation fails.
§Example
use luadec::decompile_file;
let source = decompile_file("hello.luac")?;
println!("{}", source);