rux-runtime 0.6.1

Rux runtime document model: loads a .rux file into a renderable tree. Internal to Rux; the supported entry point is the ruxlang crate.
Documentation

rux-runtime

The Rux document model: it turns a .rux file on disk into a renderable tree, and keeps that tree in step with the app's state.

Loading a document means resolving its use component imports and loading each imported .rux, merging the main and component scripts into one engine, registering the host functions, and then building the tree with bindings, directives and component expansions all resolved. Running a @tap handler mutates engine state; the runtime then patches the nodes that state actually reaches rather than rebuilding everything, using the read and write sets rux-script records.

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.