12 releases (4 breaking)
0.4.0 | May 5, 2023 |
---|---|
0.3.0 | Mar 26, 2023 |
0.0.7 | Nov 26, 2022 |
0.0.4 | Jun 21, 2022 |
#397 in Operating systems
47 downloads per month
84KB
2K
SLoC
sandkiste_lua
Sandboxing Lua scripts for the sandkiste
API
Building
Building this crate currently depends on the pkg-config
binary being
installed on your system.
License
See contained LICENSE
file (MIT License).
Changelog
- 2023-05-05: Version 0.4.0
- Use
sandkiste
version 0.3.0
- Use
- 2023-05-05: Version 0.3.1
- Fixed
LuaFunction::call
andLuaMachine::callback
to properly handle wrongly reported length byExactSizeIterator
- Fixed
- 2023-03-26: Version 0.3.0
- Use
sandkiste
version 0.2.0
- Use
- 2023-03-20: Version 0.2.0
- Force abort on panic to fix soundness issue when calling or dropping
closure passed to
Sandkiste::Callback::callback
- Use
sandkiste
version 0.1.0
- Force abort on panic to fix soundness issue when calling or dropping
closure passed to
- 2023-03-11: Version 0.1.0
- Added conversion from
Option
intoLuaDatum
(viaFrom
trait) - Use
bindgen
version 0.63 - Code cleanup
- Added conversion from
- 2022-11-26: Version 0.0.7
- Use
sandkiste
version 0.0.5
- Use
- 2022-11-25: Version 0.0.6
- Use
sandkiste
version 0.0.4 - Minor fixes in internal comments
- Use
- 2022-11-24: Version 0.0.5
- Use
sandkiste
version 0.0.3 - Experimental compiler features are no longer used
- Improved error message when using
Lua5_3
andLua5_4
feature at the same time
- Use
- 2022-06-21: Version 0.0.4
- Fixed soundness issue regarding argument iterators (
LuaFunction::call
andLuaMachine::callback
relied onExactSizeIterator::len
returning the correct length, which has been fixed) - Removed unnecessary
vec![]
in example and tests (assandkiste::Function::call
is generic in regard to how a list of arguments is provided)
- Fixed soundness issue regarding argument iterators (
- 2022-05-03: Version 0.0.3
- Fixed build error on nightly Rust by importing
core::ffi::{c_int, c_size_t}
for now instead of usingstd::ffi
(see commit07ea143f96
in Rust for explanation)
- Fixed build error on nightly Rust by importing
- 2022-04-17: Version 0.0.2
- Fixed wrong calculation of used memory in custom allocator
- Fixed error handling when pushing closures to the Lua machine
(when invoking
lua_pcall
incmach_lua_pushclosure
, a wrong stack index was provided for the error handler) - Added documentation
- Allow usage of deprecated
bit32
module when using Lua 5.3 (was previously stripped when sealing the standard library) - Export previously private module
cmach
to allow unsafe access to Lua - Avoid an unnecessary reallocation in C function
cmach_lua_errmsgh
- Fixed wrong comments in
cmach_lua_getglobal
- 2022-04-14: Version 0.0.1
Dependencies
~0–2.3MB
~48K SLoC