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.22.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-05-30 2.1 kB
Version 1.22.0 source code.tar.gz 2025-05-30 545.4 kB
Version 1.22.0 source code.zip 2025-05-30 719.1 kB
Totals: 3 Items   1.3 MB 0

Bug fixes

  • (Fuzzing) An integer-overflow bug from an inclusive range in get_bits is fixed (#963).
  • (Fuzzing) Nested functions marked private now properly cause compilation errors (#993).
  • Passing function as a function pointer into a function in an imported module now correctly encapsulates the current environment into the generated function pointer (thanks @dcihlar #976). The same for passing a closure (thanks again, @dcihlar #979).
  • Revised epsilon-based floating-point comparisons (thanks @HactarCE #981).
  • Unneeded optional dependencies are no longer pulled in with features (thanks @HactarCE #987).
  • Engine::collect_fn_metadata now properly includes the namespaces of functions in static modules (thanks @therealprof and @elkowar #992).

Enhancements

  • Improve display of function call errors by displaying the caller function's source together with line number info (thanks @rhizoome and @HactarCE #988).
  • source and position in NativeCallContext are now fn_source and call_position. A new method call_source is added to return the source (if any) of the caller function (thanks @rhizoome and @HactarCE #989).
  • The &&, || and ?? operators are optimized to allow efficient chaining (#994).
Source: README.md, updated 2025-05-30