Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lilyball/rust-lua

Safe Rust bindings to Lua 5.1
https://github.com/lilyball/rust-lua

Last synced: about 2 months ago
JSON representation

Safe Rust bindings to Lua 5.1

Awesome Lists containing this project

README

        

# rust-lua

[![Build Status](https://travis-ci.org/lilyball/rust-lua.svg)](https://travis-ci.org/lilyball/rust-lua)

Copyright 2014 Lily Ballard

## Description

This is a set of Rust bindings to Lua 5.1.

The goal is to provide a (relatively) safe interface to Lua that closely
mirrors its C API.

The bindings are complete, but largely untested. Every non-unsafe function
does its best to enforce safety. Lua 5.1.5 was used as a reference for
internal implementation details that affect safety (e.g. stack space needed
for auxlib functions).

Unfortunately, there are very few tests. It turns out to be complicated to
properly test the Lua C API, and there are very few examples that could be
used as tests. Please let me know if there are any bugs.

## Installation

make all

To run the tests, use the test make target:

make test