gmod-rs/gmod
FelixKLG 626c7e9f78
fix: Switch detour to retour (fork)
Detour is no longer maintained (https://github.com/darfink/detour-rs/pull/41), the community has forked it and made it work on nightly as retour.
2023-04-12 01:40:59 +01:00
..
src fix: Switch detour to retour (fork) 2023-04-12 01:40:59 +01:00
Cargo.toml fix: Switch detour to retour (fork) 2023-04-12 01:40:59 +01:00
README.md Publish 2021-09-17 18:08:22 +01:00

README.md

crates.io

docs.rs

⚙ gmod-rs

A swiss army knife for creating binary modules for Garry's Mod in Rust.

Examples

Click here 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 is used to prevent this undefined behaviour.