Rhai v1.12.0 Release Notes

  • Net features


    • Engine::call_fn_raw is deprecated in favor of Engine::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, overriding Engine::set_default_tag.

    ✨ Enhancements

    • CallableFunction is exported under internals.
    • The TypeBuilder type and CustomType trait are no longer marked as volatile.
    • FuncArgs is also implemented for arrays.
    • Engine::set_XXX API can now be chained.