rux-script 0.6.1

Rux script tier: a rhai engine holding state, plus the host registry. Internal to Rux; the supported entry point is the ruxlang crate.
Documentation

rux-script

The Rux script tier: a rhai engine that holds the app's live state and evaluates everything a template asks of it.

The script section's top-level let variables persist in a scope, and this crate evaluates {{ }} bindings, r-if and r-for expressions and @tap handlers against them. It also tracks which signals each binding reads and which ones a handler writes, which is what lets rux-runtime patch just the affected nodes instead of rebuilding the tree. Native capabilities are exposed to scripts under the host:: namespace through the builder.

Internal to Rux

This is one crate of the Rux workspace. It is published so the toolchain builds from crates.io, not as a library to depend on: it makes no stability promise of its own and its API moves whenever the runtime needs it to. The supported entry point is ruxlang.

cargo install ruxlang     # installs a `rux` command

rux run app.rux

ruxlang.dev · learn · reference · try it in a browser

Licence

Dual licensed under Apache-2.0 or MIT, at your option.