No description
- Rust 90.8%
- Shell 8.9%
- Makefile 0.3%
- Copy lint, tests, build-linux, and build-macos workflows from hero_lib - Modified workflows to use build_herodo.sh instead of generic cargo build - Added scripts/build_lib.sh from hero_lib for shared build utilities - Workflows support multi-platform Linux builds and macOS releases |
||
|---|---|---|
| .forgejo/workflows | ||
| crates | ||
| docs/rhai | ||
| installers | ||
| scripts | ||
| .gitignore | ||
| build_herodo.sh | ||
| Cargo.lock | ||
| Cargo.toml | ||
| ci_rhai.sh | ||
| CLAUDE.md | ||
| Makefile | ||
| README.md | ||
hero_lib_rhai
This is the Rhai scripting layer for the HeroLib ecosystem.
Overview
hero_lib_rhai contains the bindings crates (*_rhai) that expose HeroLib functionality to Rhai scripts. Each crate in crates/ wraps a corresponding HeroLib module, registering its types and functions with the Rhai engine so they can be called from .rhai scripts.
Structure
crates/— Rhai bindings crates (e.g.herolib_os_rhai,herolib_net_rhai, etc.)installers/— Rhai scripts for installing system dependencies (zinit, nerdctl, etc.)docs/rhai/— Documentation for writing and extending Rhai modules
hero_do
The hero_do binary is the unified Rhai script runner. Build it with:
cargo build --release -p herolib_do
Run a script:
./target/release/hero_do path/to/script.rhai
Running Tests
./ci_rhai.sh --category all
./ci_rhai.sh --category tests
./ci_rhai.sh --category examples
Related
- Main HeroLib repo: ../hero_lib