diff --git a/.woodpecker/.debug.yml b/.woodpecker/.debug.yml new file mode 100755 index 0000000..251ce09 --- /dev/null +++ b/.woodpecker/.debug.yml @@ -0,0 +1,18 @@ + +variables: + - &rust_image 'rust:1.76-alpine' + +steps: + Build - Debug: + image: *rust_image + commands: + - apt update + - apt install libudev-dev lua5.4 liblua5.4-dev -y + - cargo build + + Test - Debug: + image: *rust_image + commands: + - apt update + - apt install libudev-dev lua5.4 liblua5.4-dev -y + - cargo test --all diff --git a/.woodpecker/.release.yml b/.woodpecker/.release.yml new file mode 100755 index 0000000..391b251 --- /dev/null +++ b/.woodpecker/.release.yml @@ -0,0 +1,20 @@ +variables: + - &rust_image 'rust:1.76-alpine' + +when: + - event: pull_request + +steps: + Build - Release: + image: *rust_image + commands: + - apt update + - apt install libudev-dev lua5.4 liblua5.4-dev -y + - cargo build --release + + Test - Release: + image: *rust_image + commands: + - apt update + - apt install libudev-dev lua5.4 liblua5.4-dev -y + - cargo test --all --release diff --git a/Cargo.lock b/Cargo.lock index 60cb745..6844f9b 100755 --- a/Cargo.lock +++ b/Cargo.lock @@ -18,19 +18,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] -name = "libc" -version = "0.2.152" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13e3bf6590cbc649f4d1a3eefc9d5d6eb746f5200ffb04e5e142700b8faa56e7" - -[[package]] -name = "lua-ffi" +name = "elua" version = "0.1.0" dependencies = [ "mlua-sys", "thiserror", ] +[[package]] +name = "libc" +version = "0.2.152" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13e3bf6590cbc649f4d1a3eefc9d5d6eb746f5200ffb04e5e142700b8faa56e7" + [[package]] name = "mlua-sys" version = "0.5.0" diff --git a/Cargo.toml b/Cargo.toml index cff1cf8..3ab5a8c 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "lua-ffi" +name = "elua" version = "0.1.0" edition = "2021" diff --git a/README.md b/README.md new file mode 100755 index 0000000..8ac1781 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# elua +The `elua` crate is meant to provide high-level bindings to [Lua 5.4](https://www.lua.org/manual/5.4/manual.html). +Although most of the crate is safe, there can be some unsafe aspects. Anytime something +could be unsafe, they are marked as so clearly in documentation. + +## State +This library is still early in development. Although it provides bindings to most things needed +for embedding Lua into your Rust application, there has not been enough testing done to show that +it is stable. There also may be things missing, if so, please create an issue! \ No newline at end of file