{"full_name":"rhaiscript/rhai","owner":"rhaiscript","name":"rhai","shard":"1","url":"https://github.com/rhaiscript/rhai","description":"Rhai - An embedded scripting language for Rust.","homepage":"https://crates.io/crates/rhai","topics":["scripting-engine","embedded-scripting-language","scripting-language","no-std","embedded","webassembly","wasm","rhai"],"tag_pages":["embedded","wasm","webassembly"],"language":"Rust","license":"Apache-2.0","avatar":"https://avatars.githubusercontent.com/u/77088405?v=4","created_at":"2016-02-29T21:22:58Z","pushed_at":"2026-11-10T02:49:53Z","metrics":{"stars":5811,"forks":263,"watchers":24,"issues":504,"prs":666,"releases":77,"issues_open":12,"issues_closed":492,"prs_open":2,"prs_closed":67,"prs_merged":597,"discussions":39},"growth":{"day":{"stars":2,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[5797,5800,5801,5804,5809,5809,5811],"forks":[262,262,262,262,263,263,263],"watchers":[null,24,24,24,24,24,24],"issues_open":[null,12,12,12,12,12,12],"prs_open":[null,1,1,1,1,1,2]},"boards":{},"same_owner":[],"issues":[{"number":69,"title":"Projects using Rhai","comments":31,"created_at":"2018-04-07T08:18:05Z"},{"number":52,"title":"Futures","comments":31,"created_at":"2017-11-05T11:53:11Z"},{"number":488,"title":"Type hints","comments":25,"created_at":"2021-11-15T03:16:20Z"},{"number":451,"title":"Rhai standard library.","comments":17,"created_at":"2021-09-23T13:23:04Z"},{"number":32,"title":"Advanced threads and actors","comments":9,"created_at":"2017-10-14T17:06:29Z"},{"number":894,"title":"Rhai is unsound (use after free)","comments":8,"created_at":"2024-07-03T18:46:01Z"},{"number":537,"title":"Consider adding to github/linguist","comments":6,"created_at":"2022-03-14T01:23:30Z"},{"number":769,"title":"How do I checkpoint and resume Rhai evaluation?","comments":4,"created_at":"2023-10-24T22:47:51Z"}],"discussions":[{"number":1103,"title":"Prevent access chain updates?","comments":2,"category":"Q&A","created_at":"2026-06-09T06:07:02Z"},{"number":1078,"title":"Embedded Rhai in a Postgres migration linter for custom lint rules","comments":2,"category":"Show and tell","created_at":"2026-04-07T18:09:18Z"},{"number":1075,"title":"rhai is listed on Shypd — AI Tool Directory","comments":0,"category":"General","created_at":"2026-03-30T16:29:32Z"},{"number":1053,"title":"Highlighting Rhai syntax in my own app","comments":2,"category":"Q&A","created_at":"2025-11-11T11:28:44Z"},{"number":1045,"title":"I can't figure out why my code returns a syntax error","comments":1,"category":"Q&A","created_at":"2025-10-24T09:37:17Z"},{"number":1044,"title":"Null handling in Rhai","comments":3,"category":"General","created_at":"2025-10-21T08:36:17Z"},{"number":1041,"title":"When next version will be released?","comments":2,"category":"Q&A","created_at":"2025-10-14T17:13:15Z"},{"number":1035,"title":"Support transpiling to Rhai with `#line` or equiv?","comments":3,"category":"Ideas","created_at":"2025-10-06T21:27:49Z"}],"latest_release":{"name":"Version 1.27.0","tag":"v1.27.0","published_at":"2026-10-21T13:09:19Z","body":"This is a big release that officially remove the _experimental_ qualifier to the Rhai Grain transpiler and VM.\r\n\r\nA new feature, `no_ast` is added to completely remove the AST, parser, tokenizer and optimizer from the build.  Such a build can only run Rhai Grain bytecodes; it cannot parse Rhai script text.\r\n\r\n_Lazy-loading_ is now also supported natively in all modes.  Lazy-loaded modules only look up functions when they're being called, thus substantially cutting down runtime footprint.\r\n\r\nThere are a large number of bug fixes as well, in addition to some performance improvements.\r\n\r\nBug fixes\r\n---------\r\n\r\n* (Fuzzing) Fixed missing data-race condition in native function callbacks ([`#1161`](https://github.com/rhaiscript/rhai/pull/1161)).\r\n* Errors raised during built-in binary operations (such as `100 / 0`) now contain proper `Position` information (identified by Rhai Grain ).\r\n* Number of operations reported to `Engine::on_progress` now properly count scripted function calls from native Rust functions (identified by Rhai Grain). Previously all operation counts performed by a scripted function callback (including a closure) from a native Rust function are discarded.\r\n* Capturing the caller's scope via `call!(fnptr, args...)` now works properly in Rhai Grain.\r\n* `.shared()` method calls now work property in Rhai Grain.\r\n* Missing capabilities in scripts related to some constants (especially in `switch` cases, arrays and object maps) now work properly in Rhai Grain (thanks [`@yinho999`](https://github.com/yinho999) [`#1182`](https://github.com/rhaiscript/rhai/pull/1182)).\r\n* Failed function resolutions are now cached properly for calls with other than two arguments - a regression from version 1.10 (thanks [`@ImTheSquid`](https://github.com/ImTheSquid) [`#1183`](https://github.com/rhaiscript/rhai/pull/1183)).\r\n* A function resolution cache is now created (if none exists) when entering a block. Previously, a loop body evaluated with no cache yet would resolve every function call again on each iteration (thanks [`@ImTheSquid`](https://github.com/ImTheSquid) [`#1183`](https://github.com/rhaiscript/rhai/pull/1183)).\r\n* Assigning a constant into a container variable (array, map etc.) now works properly without making the value read-only (thanks [`@cuervolu`](https://github.com/cuervolu) [`#1187`](https://github.com/rhaiscript/rhai/pull/1187)).\r\n* Under `sync`, a method call on a shared variable with a closure argument that captures the same variable now raises `ErrorDataRace`, as it does without `sync`, instead of panicking while resolving the function. `Dynamic::is_locked` now returns `true` under `sync` when the value cannot be read, which includes being locked for write by the current thread (thanks [`@yuvalrakavy`](https://github.com/yuvalrakavy) [`#1190`](https://github.com/rhaiscript/rhai/pull/1190)).\r\n* A panic inside a native Rust function that takes its first argument by value, called with a variable first argument, now unwinds normally and can be caught by `catch_unwind`. Previously the copied first argument was restored only on the normal-return path, so the unwind tripped an internal assertion and the process aborted (thanks [`@yuvalrakavy`](https://github.com/yuvalrakavy) [`#1189`](https://github.com/rhaiscript/rhai/pull/1189)).\r\n\r\nRhai Grain is now at feature parity with the AST interpreter\r\n------------------------------------------------------------\r\n\r\n* Rhai Grain is no longer _experimental_.\r\n* New `no_ast` feature added that excludes the `AST`, its interpreter, the tokenizer, parser and optimizer for a minimized build ([`#1160`](https://github.com/rhaiscript/rhai/pull/1160)).  Under this feature flag, the Rhai Grain VM is the only venue to evaluate a script.\r\n* Bare function names are now supported as variables in Rhai Grain ([`#1158`](https://github.com/rhaiscript/rhai/pull/1158)).\r\n* Custom syntax that does not modify the `scope` is now fully supported in Rhai Grain ([`#1173`](https://github.com/rhaiscript/rhai/","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}