Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Future#2

Merged
vurvdev merged 12 commits intomainfrom
future
Apr 18, 2021
Merged

Future#2
vurvdev merged 12 commits intomainfrom
future

Conversation

@vurvdev
Copy link
Copy Markdown
Owner

@vurvdev vurvdev commented Apr 17, 2021

Completely changing how this works. We're going to completely use my branch of rust-dlopen and make this actually work

Changes

  • Compatibility with srcds servers (Will search for lua_shared in different location)
  • A lot more lua api functions
  • No more C++ code
  • Also using once_cell for statics.

Todo:

  • My rust-dlopen branch needs a few changes, notably being merged into the actual repo if the owner wants to be alive.. (Also need to make dlopen_derive expose itself in the correct location.
  • Make the rest of the api. Probably won't happen in this pr though.

vurvdev added 9 commits April 16, 2021 13:13
This is how rglua should look from now on.
Still missing a huge majority of them. Added
* lua_call
* lua_cpcall
* luaL_typerror
For easy const char import and export from C
They were trying to use imported types which wouldn't work because macros are inlined.. etc..
Might be more performant and easier to debug.
didn't try and build last time..
I changed it so now it has support for finding the lua_shared dll in srcds processes. They store it in GarrysMod/garrysmod/bin instead of just GarrysMod/bin for some reason.

LUA_SHARED_PATH now returns an Option<PathBuf> instead of just a PathBuf in case lua_shared couldn't be found. Getting LUA_SHARED will panic if it couldn't get it.
@vurvdev
Copy link
Copy Markdown
Owner Author

vurvdev commented Apr 17, 2021

Also probably wanna go from travis to github actions

vurvdev added 3 commits April 17, 2021 19:24
https://github.com/Vurv78/rust-dlopen/commit/027b4019c48fea17670464bbcf54a94a231531c9

WrapperApi is now properly exported alongside the struct like how serde does it.
I think we're good at this point.
Forgot to get rid of my attempt at a workspace example..
@vurvdev vurvdev merged commit 1777f36 into main Apr 18, 2021
@vurvdev vurvdev deleted the future branch April 18, 2021 03:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant