Perro Features

Perro is built around a simple idea: make Rust scripting practical for real gameplay code while preserving safety, performance, and clear engine integration.

Rust-First Script Authoring

Scripts are authored directly in Rust and integrated with engine runtime systems through macros.

Macro-Safe Runtime Access

Use with_state!/with_state_mut! and with_node!/with_node_mut! for ergonomic, in-place mutations.

Lifecycle and Method Wiring

lifecycle! and methods! keep script entry points and callable behavior explicit and organized.

Cross-Script Flexibility

call_method! supports flexible communication patterns, including self-calls and recursion flows.

Fast Iteration

Typical script compile times in active development are around 0.5 to 2 seconds.

Scene, Node, and Signal Systems

Compose gameplay with node hierarchies, scene workflows, and global signal propagation.