From d8a43f79b05b66aa40ab33c1841317da3cc15a0f Mon Sep 17 00:00:00 2001 From: kyren Date: Sun, 30 Sep 2018 16:31:05 -0400 Subject: [PATCH] Update changelog for 0.15, fix readme for earlier tuple size increase --- CHANGELOG.md | 20 ++++++++++++++++++++ README.md | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af6f754..ae2c825 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,23 @@ +## [0.15.0] +- Implement MultiValue conversion up to 16 +- Small fix to prevent leaking on errors in metatable creation +- API incompatible change: New API for non-'static UserData! Scoped UserData is + now split into `create_static_userdata` and `create_nonstatic_userdata` + because there are certain limitations on `create_nonstatic_userdata` that mean + that nonstatic is not always what you want. +- Added pkg-config feature that can be used if builtin-lua is disabled to use + pkg-config to find lua5.3 externally (thanks @acrisci!). +- API incompatible change: Add conversions for i128 and u128 and change the + behavior of numeric conversions to not implicitly `as` cast. Numeric + conversions now use `num_traits::cast` internally and error when the cast + function fails. This errors on out of range but *not* loss of precision, so + casting 1.1f64 to i32 will succeed, but casting (1i64 << 32) to i32 will not. + When casting *to* lua, integers that are out of range of the lua_Integer type + are instead converted to lua_Number. +- Allow arbitrary &[u8]-like data in `Lua::create_string`. This uses + `AsRef<[u8]>` so you can use &str and &String, but you can also now use + `&[u8]`, which enables you to create non-utf8 Lua strings. + ## [0.14.2] - Another soundness fix for `Lua::scope` that is related to the last soundness fix, forbidding capturing 'lua arguments inside callbacks. This, like the diff --git a/README.md b/README.md index b687c0a..30a9e7f 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Additionally, there are ways I would like to change this API, once support lands in rustc. For example: * Currently, variadics are handled entirely with tuples and traits implemented - by macro for tuples up to size 12, it would be great if this was replaced + by macro for tuples up to size 16, it would be great if this was replaced with real variadic generics when this is available in Rust. ## API stability