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.21.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-01-25 1.3 kB
v1.21.0 source code.tar.gz 2025-01-25 535.7 kB
v1.21.0 source code.zip 2025-01-25 709.3 kB
Totals: 3 Items   1.2 MB 0

Bug fixes

  • Fixed bug in raw strings (thanks @benatkin 944).
  • get_fn_metadata_list function is marked volatile.
  • no-std plus sync should now build correctly (thanks stargazing-dino 947).

New Features

  • It is possible to create a function pointer (FnPtr) which binds to a native Rust function or closure via FnPtr::from_dn and FnPtr::from_dyn_fn. When called in script, the embedded function will be called (thanks @makspll 952).

Enhancements

  • The methods call_fn, call_native_fn, call_fn_raw and call_native_fn_raw are added to EvalContext (thanks @rawhuul 954).
  • A new internals function, Engine::collect_fn_metadata, is added to collect all functions metadata. This is to facilitate better error reporting for missing functions (thanks therealprof 945).
Source: README.md, updated 2025-01-25