Rhai v1.12.0 Release Notes
-
Net features
Engine::call_fn_with_options
Engine::call_fn_raw
is deprecated in favor ofEngine::call_fn_with_options
which allows setting options for the function call.- The options are for future-proofing the API.
- In this version, it gains the ability to set the value of the custom state (accessible via
NativeCallContext::tag
) for a function evaluation, overridingEngine::set_default_tag
.
✨ Enhancements
CallableFunction
is exported underinternals
.- The
TypeBuilder
type andCustomType
trait are no longer marked as volatile. FuncArgs
is also implemented for arrays.Engine::set_XXX
API can now be chained.