rux-shell 0.6.1

Rux runtime shell: window, GPU surface, input, and frame loop. Internal to Rux; the supported entry point is the ruxlang crate.
Documentation

rux-shell

The Rux runtime shell: window, GPU surface, input and frame loop.

It opens a native window with winit, manages the GPU through vello's render context, asks rux-runtime for the current tree and paints it through rux-paint. Input lives here too: pointer and touch, keyboard, text editing and selection, scrolling. A file watcher wakes the event loop on every save, so editing a .rux file repaints it live.

The same crate drives Rux in a browser, where there is no filesystem, no blocking main thread and no system clipboard. Those four public functions sit behind cfg(target_arch = "wasm32"), and the crate carries a docs.rs target list so they appear in the rendered documentation even though docs.rs builds the host.

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.