No description
  • Rust 90.8%
  • Shell 8.9%
  • Makefile 0.3%
Find a file
despiegk 28548fc007
Some checks failed
Lint / lint-linux (push) Failing after 10s
Tests / test-linux (push) Failing after 32s
feat: add Forgejo CI/CD workflows with hero_do build support
- 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
2026-03-20 19:03:40 +01:00
.forgejo/workflows feat: add Forgejo CI/CD workflows with hero_do build support 2026-03-20 19:03:40 +01:00
crates cleanup rhai 2026-03-20 19:00:21 +01:00
docs/rhai feat: initial Rhai scripting workspace migrated from hero_lib 2026-03-20 18:38:57 +01:00
installers feat: initial Rhai scripting workspace migrated from hero_lib 2026-03-20 18:38:57 +01:00
scripts feat: add Forgejo CI/CD workflows with hero_do build support 2026-03-20 19:03:40 +01:00
.gitignore cleanup rhai 2026-03-20 19:00:21 +01:00
build_herodo.sh cleanup rhai 2026-03-20 19:00:21 +01:00
Cargo.lock feat: initial Rhai scripting workspace migrated from hero_lib 2026-03-20 18:38:57 +01:00
Cargo.toml bump version to 0.4.2 2026-03-20 19:01:52 +01:00
ci_rhai.sh feat: initial Rhai scripting workspace migrated from hero_lib 2026-03-20 18:38:57 +01:00
CLAUDE.md feat: initial Rhai scripting workspace migrated from hero_lib 2026-03-20 18:38:57 +01:00
Makefile cleanup rhai 2026-03-20 19:00:21 +01:00
README.md feat: initial Rhai scripting workspace migrated from hero_lib 2026-03-20 18:38:57 +01:00

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