{"repo":"orbitalhigh/subrust","free":true,"listed":false,"github":"https://github.com/orbitalhigh/subrust","clone":"git clone https://github.com/orbitalhigh/subrust.git","description":"Subrust is a no_std, no alloc, self-hosted embeddable Subset-of-Rust interpreter","language":"Rust","stars":11,"topics":[],"license":"Apache-2.0","category":"self-hosted-apps","readme_excerpt":"subrust A tiny, dependency-free interpreter for a strict subset of Rust — every accepted program is valid Rust and behaves identically under rustc. Built in part in preparation for the first issue of Orbital High, a digital magazine. Every program subrust accepts is valid Rust that behaves identically under rustc — two laws the test suite enforces differentially: - L1 — accepted source compiles under rustc . - L2 — it produces the same result under rustc (debug-profile semantics: arithmetic overflow, bounds, and division traps). subrust is #![no std] , no-alloc, #![forbid(unsafe code)] , and has zero dependencies . It is built for embedding user-editable control scripts in sandboxed, deterministic, air-gapped systems. Applications Because the same source is both an interpretable script and a native Rust program, subrust fits wherever you want editable logic without giving up compiled behavior or safety: - Edit-time interpretation, release-time compilation. Iterate on a running device — hot-reload a script and see the change immediately through the interpreter — then compile the identical, unchanged source with rustc for release: same result (L1/L2), native speed, and no interpreter in the shipped binary. - Safely running user-supplied scripts. The machine is sandboxed: no ambient clock, RNG, filesystem, or network; every effect goes through host functions the embedder registers; and fuel, call-depth, and memory caps bound every run. Untrusted logic can only do what you hand i","default_branch":null,"files":null,"tree":[],"storefront":"/r/orbitalhigh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/orbitalhigh/subrust/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}