Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Scripting with Rust Through WASM #279

Open
zicklag opened this issue Dec 12, 2023 · 0 comments
Open

Allow Scripting with Rust Through WASM #279

zicklag opened this issue Dec 12, 2023 · 0 comments

Comments

@zicklag
Copy link
Member

zicklag commented Dec 12, 2023

Right now we have support for scripting with Lua through piccolo, but it'd be great to also support "scripting" with Rust. By this we mean being able to load game code written in Rust from asset packs.

The ideal way to do this would probably be through WASM. While it is possible to support scripting by loading dynamically linked libraries ( i.e. .dll, .so, .dylib files ), these libraries are platform and CPU architecture specific, so it would mean that such mods would have to have different downloads for Windows, Mac, Linux, ARM, and x86_64.

Supporting WASM could also allow other languages such C ( and many others ) to be used for mods.


TODO: I can give a more in-depth explanation of what this entails. If anybody's interested feel free to comment and I'll put some more info in here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant