Alex Orlenko
|
726fde7e1f
|
Optimise async callbacks (polling)
call async Rust callback [sum] 3 10
time: [59.338 us 59.729 us 60.097 us]
change: [-10.336% -8.6212% -6.8003%] (p = 0.00 < 0.05)
Performance has improved.
|
2021-03-03 23:21:56 +00:00 |
|
Alex Orlenko
|
7cb9c4f39c
|
Fix bug in returning nil-prefixed multi values from async function
|
2021-03-03 22:32:22 +00:00 |
|
Alex Orlenko
|
7332c6a28c
|
Remove registered_userdata_mt check
|
2021-02-22 20:38:36 +00:00 |
|
Alex Orlenko
|
335f433df4
|
Optimize callbacks
|
2021-02-21 23:52:20 +00:00 |
|
Alex Orlenko
|
2aed548747
|
Fix scoped async destruction of partially polled futures
|
2021-02-21 23:52:07 +00:00 |
|
Alex Orlenko
|
9f82cbe0c5
|
Update documentation
|
2020-12-31 13:39:38 +00:00 |
|
Alex Orlenko
|
afc41ab23c
|
Add serialization example & update others
|
2020-12-29 21:39:34 +00:00 |
|
Alex Orlenko
|
ce8955f5b9
|
Don't try to disable c modules without package loaded. Fix #24
|
2020-12-22 23:05:08 +00:00 |
|
Alex Orlenko
|
6e2b687cb7
|
Serde support (serialize feature flag)
|
2020-12-14 00:51:26 +00:00 |
|
Alex Orlenko
|
a172c021c9
|
Update set_memory_limit doc
|
2020-07-30 12:16:25 +01:00 |
|
Alex Orlenko
|
de2c5cd9a9
|
Fix compilation warnings on nightly rust
|
2020-07-28 21:10:55 +01:00 |
|
Alex Orlenko
|
d201beadc9
|
Add ChunkMode enum to mark chunks as text or binary
|
2020-07-28 21:04:21 +01:00 |
|
Alex Orlenko
|
dd58cdad52
|
Add Function::dump() to dump lua function to a binary chunk
|
2020-07-27 23:26:33 +01:00 |
|
Eidolon
|
883bf082b9
|
Make Lua::load load binary chunks when unsafe
|
2020-07-27 03:37:38 -05:00 |
|
Alex Orlenko
|
4265250cfd
|
0.4.1 release
Fix docs.rs build features
Update Cargo.toml description
|
2020-06-08 14:08:07 +01:00 |
|
Alex Orlenko
|
efcaef3db7
|
Enable hooks support for LuaJIT
|
2020-06-07 20:38:19 +01:00 |
|
Alex Orlenko
|
0a13a9631d
|
Fix LuaJIT 2.1 libraries loading
|
2020-06-07 20:38:19 +01:00 |
|
Alex Orlenko
|
3d42bc4ca6
|
Refactor main_state handling
Don't allow to set hook if main_state is not available
Remove Lua 5.1 dirty hack
|
2020-06-07 20:38:19 +01:00 |
|
Alex Orlenko
|
d5c22d989a
|
Dirty hack to get lua 5.1 main state
|
2020-06-06 16:07:16 +01:00 |
|
Alex Orlenko
|
c3822219e0
|
Add hooks support (based on rlua v0.17 implementation)
This feature works on lua54, lua53, lua52 and lua51 only.
LuaJIT is unstable.
|
2020-06-06 16:07:16 +01:00 |
|
Alex Orlenko
|
f6da437d8b
|
Update docs
|
2020-06-06 16:07:16 +01:00 |
|
Alex Orlenko
|
2fd6757f39
|
Add LuaJIT 2.0.5 stable support
|
2020-06-06 16:07:16 +01:00 |
|
Alex Orlenko
|
687ecc9247
|
Update documentation
|
2020-05-15 01:48:57 +01:00 |
|
Alex Orlenko
|
9f2d598517
|
Add clippy check and fix clippy warnings
|
2020-05-15 01:48:56 +01:00 |
|
Alex Orlenko
|
5a9a308790
|
Provide safe and unsafe Lua modes:
- In safe mode Lua would not have ability to load C code via `require` or `package.loadlib`
- Unsafe mode allows everything.
|
2020-05-12 02:14:48 +01:00 |
|
Alex Orlenko
|
1b2b94c808
|
Use Rust allocator for new Lua states that allows to set memory limit
|
2020-05-12 02:14:48 +01:00 |
|
Alex Orlenko
|
539b569ff4
|
Add Lua 5.4 (rc2) support
|
2020-05-11 02:43:34 +01:00 |
|
Alex Orlenko
|
d366ce0dd4
|
Scope support (including async)
|
2020-05-11 02:43:34 +01:00 |
|
Alex Orlenko
|
2bd5c2f6ca
|
Hide Lua "Send" capability under the optional "send" feature flag
|
2020-05-11 02:43:34 +01:00 |
|
Alex Orlenko
|
7b0e4b4280
|
Add Send capability to Lua
|
2020-05-11 02:43:34 +01:00 |
|
Alex Orlenko
|
6e2bb73cff
|
Bind Futures lifetimes to 'lua rather than 'static.
Fix async examples.
|
2020-05-11 02:43:34 +01:00 |
|
Alex Orlenko
|
7efcee853d
|
Don't allow 'callback outlive 'lua
|
2020-05-11 02:43:33 +01:00 |
|
Alex Orlenko
|
bda399a5b4
|
Get yield function in the moment of async callback creation.
This is usefull to temporary override `coroutine.yield` prior to create_async_callback()
and then restore to original value.
|
2020-04-28 14:29:36 +01:00 |
|
Alex Orlenko
|
c826798a6d
|
Minor refactor
|
2020-04-19 16:51:35 +01:00 |
|
Alex Orlenko
|
222f4df668
|
Add family of call_async function
Update documentation
Move async tests to a separate file
|
2020-04-18 21:26:12 +01:00 |
|
Alex Orlenko
|
47e8a80c1c
|
v0.3.0-alpha.1 with async support
Squashed commit of the async branch.
|
2020-04-17 22:39:50 +01:00 |
|
Alex Orlenko
|
42b33849e1
|
Add support of loading a specified set of standard libraries
|
2019-12-26 23:04:21 +00:00 |
|
Alex Orlenko
|
fd17a01456
|
Add Lua 5.2 support
|
2019-11-30 00:58:41 +00:00 |
|
Alex Orlenko
|
ae677b0918
|
Move lua 5.1 support under new "lua51" feature
|
2019-11-04 22:23:15 +00:00 |
|
Alex Orlenko
|
6874c2e004
|
Fix examples and docs
|
2019-11-04 22:23:15 +00:00 |
|
Alex Orlenko
|
85607d8bfc
|
Impl Drop for Lua
|
2019-10-17 17:05:42 +01:00 |
|
Alex Orlenko
|
ec08a76a41
|
Don't store extra data in the lua_State extra space
|
2019-10-17 17:05:42 +01:00 |
|
Alex Orlenko
|
c4fd7a9faf
|
Lua 5.1 support
|
2019-10-17 17:05:42 +01:00 |
|
Alex Orlenko
|
224ed8ff52
|
Add mlua_derive proc macro module
|
2019-10-02 22:12:27 +01:00 |
|
Alex Orlenko
|
cb109f6e36
|
Rename to mlua
|
2019-10-01 16:11:12 +01:00 |
|
Alex Orlenko
|
78480b5f31
|
Use main state to store extra data and auxiliary registries
|
2019-09-30 22:14:58 +01:00 |
|
Alex Orlenko
|
0c230a3037
|
Allow to catch rust panics via pcall
|
2019-09-29 12:56:06 +01:00 |
|
Alex Orlenko
|
b23ee6a162
|
cargo fmt
|
2019-09-29 12:56:03 +01:00 |
|
Alex Orlenko
|
affa85feb0
|
Backport changes from rlua 0.16 (master branch)
|
2019-09-29 12:53:13 +01:00 |
|
Alex Orlenko
|
47a8ac2b05
|
Allow only init Lua from an exiting state
|
2019-09-26 19:17:51 +01:00 |
|