Download Latest Version Version 1.24.0 source code.tar.gz (552.6 kB)
Email in envelope

Get an email when there's a new version of Rhai

Home / v1.24.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-01-19 1.6 kB
Version 1.24.0 source code.tar.gz 2026-01-19 552.6 kB
Version 1.24.0 source code.zip 2026-01-19 726.3 kB
Totals: 3 Items   1.3 MB 0

This new release has a breaking change because of the upgrade to the getrandom crate to version 0.3.

As a result, stdweb support has been dropped. It is anticipated that this change would not have significant impact on normal usage.

Breaking Changes

  • stdweb support is removed. The feature flag stdweb is also removed. Use wasm-bindgen instead.
  • web-time is used for WASM targets instead of instant, which is no longer maintained #1063.

Bug fixes

  • (Fuzzing) Fixed panic when using sort on an array with a comparer function that does not implement a total order #1058.

Enhancements

  • The optimizer now optimizes constant object map property accesses (thanks @phsym #1050).
  • Optimization is added to turn if cond1 { if cond2 { ... } } into if cond1 && cond2 { ... }.
  • The method sort for arrays is also aliased to sort_by.
  • The methods sort_desc, order, order_by and order_desc are added to arrays.
  • An exception is now thrown when attempting to use sort on an array containing unsupported element types.

New features

  • AST::new_from_module is added to create an AST from a shared Module.
Source: README.md, updated 2026-01-19