Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tired-fox/rust-scripting
Research into how scripting can be used in rust. Main focus is in lua
https://github.com/tired-fox/rust-scripting
Last synced: 25 days ago
JSON representation
Research into how scripting can be used in rust. Main focus is in lua
- Host: GitHub
- URL: https://github.com/tired-fox/rust-scripting
- Owner: Tired-Fox
- Created: 2024-03-18T22:01:57.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-06T20:29:42.000Z (5 months ago)
- Last Synced: 2024-06-06T23:52:51.809Z (5 months ago)
- Language: Rust
- Size: 217 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lua Scripting
## Lua (mlua)
This crate uses [mlua](https://github.com/mlua-rs/mlua) to create a standalone
lua executable.It is written custom in the build.rs file, but inspiration from [copy_to_output](https://crates.io/crates/copy_to_output/) for a way of copying lua script files to the target directory when building examples.
`.luarc.json` is required for typing as it will allow for specifying the used lua version along with where the lua definition files are located.
This allows it to read and handle the rust provided types.Also looking at `rhai` as it is more tightly working with rust and could allow for better functionality and typing.
Comparable to [luau](https://luau-lang.org/syntax)
## Rhai
Reference [lua-ls/annotations](https://luals.github.io/wiki/annotations/) for a list of usable annotations while typing.