diff options
author | kyren <kerriganw@gmail.com> | 2018-02-11 17:54:27 -0500 |
---|---|---|
committer | kyren <kerriganw@gmail.com> | 2018-02-11 17:54:27 -0500 |
commit | 5f596d9117b3970125523041d243b37aafac9751 (patch) | |
tree | 380daad15279095fe40bd292f090dc1547101d21 | |
parent | bfe44089efbe44cb65bea57c2517cfeb38602d9f (diff) | |
download | mlua-5f596d9117b3970125523041d243b37aafac9751.zip |
Update changelog for 0.12.1, and add missing entry for 0.12.0
-rw-r--r-- | CHANGELOG.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c9c9a7..78c229b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## [0.12.1] +- Fix a stupid bug where `AnyUserData::set_user_value` / + `AnyUserData::get_user_value` could panic if the `ToLua` / `FromLua` type + conversion failed. +- Add `UserDataMethods::add_function_mut` and + `UserDataMethods::add_meta_function_mut` for symmetry. +- Add some more documentation for changes in 0.12, and fix some minor problems. + ## [0.12.0] - Changed how userdata values are garbage collected, both to fix potential panics and to simplify it. Now, when userdata is garbage collected, it will @@ -28,6 +36,13 @@ - Correctly error on passing too many arguments to an `rlua::Function`, and correctly error when returning too many results from a callback. Previously, this was a panic. +- `Lua::create_function` is now split into `Lua::create_function` and + `Lua::create_function_mut`, where the first takes a Fn and the second takes a + FnMut. This allows for recursion into rust functions if the function is not + FnMut. There is a similar change for `UserDataMethods`, where the mut + variants of the functions now take `FnMut`, and the non-mut variants take + `Fn`. There is not a way to make a non-mut `UserDataMethods` method with a + FnMut function. ## [0.11.0] - `rlua::Error` now implements `failure::Fail` and not `std::error::Error`, and |