#module #garrys-mod #glua #api-bindings

nightly gmod

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

31 stable releases (14 major)

17.0.0 Apr 12, 2023
16.0.2 Jul 16, 2022
15.0.2 Jul 7, 2022
15.0.0 Feb 10, 2022
0.1.4 Sep 18, 2021

#655 in Development tools

Download history 7/week @ 2024-01-04 14/week @ 2024-01-11 250/week @ 2024-01-25 96/week @ 2024-02-01 5/week @ 2024-02-08 88/week @ 2024-02-15 142/week @ 2024-02-22 59/week @ 2024-02-29 100/week @ 2024-03-07 39/week @ 2024-03-14 91/week @ 2024-03-21 81/week @ 2024-03-28

316 downloads per month
Used in gmserverplugin

MIT license

75KB
1.5K SLoC

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.


lib.rs:

Available Lua Functions

Dependencies

~1–11MB
~93K SLoC