Rhai v1.0.0 Release Notes

  • The official version 1.0.

    🚚 Almost the same version as 0.20.3 but with deprecated API's removed.

    🐛 Bug fixes

    • 🛠 Fixed infinite loop in certain script optimizations.
    • 🏗 Building for no-std no longer requires patching smartstring.
    • 📜 Parsing a lone return or throw without a semicolon at the end of a block no longer raises an error.

    💥 Breaking changes

    • 🚚 All deprecated API's (e.g. the RegisterFn and RegisterResultFn traits) are removed.
    • Module::set_id is split into Module::set_id and Module::clear_id pair.
    • begin, end, each, then, unless are no longer reserved keywords.

    ✨ Enhancements

    • New methods is_odd, is_even for integers, and is_zero for all numbers.
    • From<BTreeSet> and From<HashSet> are added for Dynamic, which create object maps with () values.