#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

#1025 in Development tools

Download history 62/week @ 2024-07-19 79/week @ 2024-07-26 13/week @ 2024-08-02 12/week @ 2024-08-09 27/week @ 2024-08-16 8/week @ 2024-08-23 33/week @ 2024-08-30 38/week @ 2024-09-06 22/week @ 2024-09-13 69/week @ 2024-09-20 41/week @ 2024-09-27 9/week @ 2024-10-04 13/week @ 2024-10-11 12/week @ 2024-10-18 13/week @ 2024-10-25 13/week @ 2024-11-01

51 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.3–8.5MB
~84K SLoC