{"id":19454013,"url":"https://github.com/vurv78/rglua","last_synced_at":"2025-04-05T18:10:44.217Z","repository":{"id":43652530,"uuid":"325722905","full_name":"Vurv78/rglua","owner":"Vurv78","description":"Toolkit for garrysmod development with the source sdk and lua c api","archived":false,"fork":false,"pushed_at":"2024-12-29T03:59:57.000Z","size":159,"stargazers_count":47,"open_issues_count":5,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T17:12:27.715Z","etag":null,"topics":["dll","garrys-mod","garrysmod","glua","gmod","lua","module","srcds"],"latest_commit_sha":null,"homepage":"https://docs.rs/rglua","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Vurv78.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-31T05:36:11.000Z","updated_at":"2025-02-12T21:35:27.000Z","dependencies_parsed_at":"2025-02-11T09:28:56.421Z","dependency_job_id":"72e854f9-8c90-47c7-a1c4-e9abf7c06079","html_url":"https://github.com/Vurv78/rglua","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vurv78%2Frglua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vurv78%2Frglua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vurv78%2Frglua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vurv78%2Frglua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vurv78","download_url":"https://codeload.github.com/Vurv78/rglua/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247378149,"owners_count":20929297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dll","garrys-mod","garrysmod","glua","gmod","lua","module","srcds"],"created_at":"2024-11-10T17:07:08.206Z","updated_at":"2025-04-05T18:10:44.178Z","avatar_url":"https://github.com/Vurv78.png","language":"Rust","readme":"# 🌑 ``rglua`` [![cratesio](https://img.shields.io/crates/v/rglua.svg)](https://crates.io/crates/rglua) ![Build Status](https://github.com/Vurv78/rglua/actions/workflows/ci.yml/badge.svg) [![License](https://img.shields.io/github/license/Vurv78/rglua?color=red)](https://opensource.org/licenses/Apache-2.0) [![github/Vurv78](https://img.shields.io/discord/824727565948157963?label=Discord\u0026logo=discord\u0026logoColor=ffffff\u0026labelColor=7289DA\u0026color=2c2f33)](https://discord.gg/epJFC6cNsw)\n\nThis is a crate that allows interop with the (g)luajit c api as well as the source sdk through libloading and vtable bindings.\nYou can then use these for binary modules or manually injected code, like with [Autorun-rs](https://github.com/Vurv78/Autorun-rs)\n\nMore information on binary modules can be found on the garrysmod wiki: [Creating Binary Modules](https://wiki.facepunch.com/gmod/Creating_Binary_Modules) and examples [can be found here.](https://github.com/Vurv78/rglua/tree/master/examples)\n## Usage\nIf you are targeting 32 bit make sure to install the toolchain and build to it:\n```bash\nrustup target add i686-pc-windows-msvc\ncargo build --target=i686-pc-windows-msvc\n```\n\n## Comparison\nThere are actually a decent amount of libraries out there for gmod development.\nHere's a comparison and why you could use this one.\n\n[rglua]: https://crates.io/crates/rglua\n[rust-glua-sys]: https://github.com/SpiralP/rust-glua-sys\n[gmod-rs]: https://crates.io/crates/gmod\n[gmrs]: https://github.com/diogo464/gmrs\n\n| Library                           | [rglua] | [rust-glua-sys] | [gmod-rs]   | [gmrs] |\n|-----------------------------------|---------|-----------------|-------------|--------|\n| *Full* Lua C Api Bindings         | ✔️     | ❌              | ❌         | ❌    |\n| On Crates.io                      | ✔️     | ❌              | ✔️         | ❌    |\n| Proc Macros                       | ✔️     | ❌              | ✔️         | ✔️    |\n| Interfacing w/  Source SDK        | ✔️     | ❌              | ❌         | ❌    |\n| Returning Result\u003c\u003e from functions | ✔️\t | ❌              | ❌         | ✔️    |\n| Can be used on stable             | ✔️     | ✔️              | ❌         | ✔️    |\n| Real world examples               | ✔️     | ❌              | 〰️         | ✔️    |\n| Linux / OSX Support               | ✔️     | ❌              | ✔️         | ✔️    |\n| Github Stars                      | 😢     | 👍              | 👑         | 🤷‍♂️    |\n\n__*You can help with that last one 😉*__\n\n## Acknowledgements\n### [garrysmod_common](https://github.com/danielga/garrysmod_common)\nThis is heavily based off of garrysmod_common, in how we export the lua_shared functions and trying to replicate everything from the Lua C Api.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvurv78%2Frglua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvurv78%2Frglua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvurv78%2Frglua/lists"}