Skip to main content

Crate herolib_core

Crate herolib_core 

Source
Expand description

§SAL Core Package

The herolib-core package provides core utilities for the SAL library:

§Modules

  • text: Text processing utilities (regex, templating, normalization)
  • heroscript: HeroScript configuration language for safe system orchestration
  • openapi: OpenAPI specification parsing and client code generation
  • openrpc: OpenRPC specification parsing and client code generation

§Features

  • git (optional): Enable git operations in HeroScript include processing

§Example

use herolib_core::text;

// Use text utilities
let fixed = text::name_fix("My Document.txt");
let dedented = text::dedent("    line1\n    line2");

Modules§

heroscript
HeroScript - A Defensive Configuration Language
openapi
OpenAPI specification parsing and code generation.
openrpc
OpenRPC specification parsing and code generation.
rhai
Rhai integration for the SAL Core package
text
SAL Text - Text processing and manipulation utilities