rustia 0.2.0

Rustia is a pure-Rust interpreter for embedding standalone Luau in games and tools. Edit scripts without a rebuild and let players write mods. Rustia grew out of a game by Slowchop Studios that needed to script character decisions and replay them on desktop and in a browser.
Documentation
# rustia Package

## Overview

`rustia` is the application-facing facade over the lexer, parser, compiler, and VM. It owns the builder and application settings/errors, typed conversions, host integration, diagnostics, and rooted handles. Applications can use the experimental 0.x API from Git. The crate is unpublished, and supported-release acceptance remains open.

Package metadata: [Cargo.toml](./Cargo.toml). The package description and crate
Rustdoc intro are generated from [project-copy.json](../../project-copy.json)
by `node tools/sync-project-copy.js`.

## Interface

- [`src/EGM.md`]./src/EGM.md documents the facade implementation and exports.
- [`examples/EGM.md`]./examples/EGM.md documents runnable usage examples.
- [compare.md]./compare.md owns the comparison headings, rows, platform evidence and notes for Rustdoc, the homepage, and the browser demo. After an edit, run `node tools/sync-luau-comparison.js --write` from the repository root.
- The comparison guide links to the [runtime speed charts]https://rustia.dev/#speed-comparison. Run `node tools/check-readme-comparisons.js` to verify the website chart's retained cohort.
- The package is built with `cargo check -p rustia`; `platform-adapters` is enabled by default for browser WebAssembly services.

## Invariants

- `OwnedValue` is the acyclic, Rust-owned copy boundary. Live `Value`, `Table`, `Function`, and `Exports` handles preserve identity and belong to one VM and decision epoch. Host-created live vectors remain immutable and use the same quota/root/epoch contract without entering `OwnedValue`.
- `reset_decision()` requires an idle VM, advances the epoch, preserves configuration and persistent registrations, and invalidates retained guest handles.
- The default facade is thread-affine. The opt-in `send` feature requires transferable service captures (`Send`, with `Fn + Send + Sync` for entropy) and `Send + Sync` object payloads and makes the interpreter/live handles movable between workers; it does not permit concurrent entry. A unified Cargo graph that enables `rustia-vm/send` must forward `rustia/send`.
- Typed invocations borrow their `HostContext` for one call, share a fuel budget, and publish bounded ordered records only after successful completion.
- Typed Rust objects expose synchronous, reset-safe length and generalized-iterator hooks with ordinary fuel, quota, diagnostics and transferable bounds.
- `install` rolls back guest state on failure. Ordinary evaluation mutations and external host effects are not undone.
- The facade boundary must not expose internal bytecode, raw heap identities, or collector lifetimes.

## Side Effects

Running a chunk mutates guest state. Installation can call module resolvers and host functions. Reset discards decision-local guest state. Host services, Rust payload mutation, and I/O remain external effects.

## Verification

From the repository root, run `cargo test --locked -p rustia`. To compile examples without running them, use `cargo check --locked -p rustia --examples`.