gmod-rs/README.md

17 lines
845 B
Markdown
Raw Normal View History

2021-10-20 17:44:59 -04:00
[![crates.io](https://img.shields.io/crates/v/gmod.svg)](https://crates.io/crates/gmod)
[![docs.rs](https://docs.rs/gmod/badge.svg)](https://docs.rs/gmod)
2021-09-09 16:50:58 -04:00
# ⚙ gmod-rs
A swiss army knife for creating binary modules for Garry's Mod in Rust.
2021-10-20 17:44:59 -04:00
2021-12-30 13:22:15 -05:00
# Examples
2021-10-20 17:44:59 -04:00
2022-01-22 14:39:32 -05:00
[Click here](https://github.com/WilliamVenner/gmod-rs/tree/master/examples/) to see examples.
# Nightly requirement
Currently, this crate requires the Rust Nightly compiler to be used.
This is because of the nature of Rust <-> C FFI (which is used extensively in this crate for interfacing with Lua) and the undefined behaviour that occurs when Lua performs long jumps out of functions during errors, or when Rust panics and unwinds out of a foreign stack frame. The [`C-unwind` ABI](https://rust-lang.github.io/rfcs/2945-c-unwind-abi.html) is used to prevent this undefined behaviour.