Commit graph

987 commits

Author SHA1 Message Date
kyren b3218137e1 Somewhat smarter strategy for error_guard calls, less ungodly slow.
Also add raw_length table function
2017-06-05 00:41:48 -04:00
kyren e4052bb4d4 Bump cargo.toml version number 2017-06-05 00:06:15 -04:00
kyren 47d4ea62ff Handle unprotected lua errors SOMEWHAT more elegantly
There should be drastically less ways to cause unprotected lua errors now, as
the LuaTable functions which were trivial to cause unprotected errors are now
protected. Unfortunately, they are protected in a pretty slow, terrible way
right now, but it at least works.

Also, set the atpanic function in lua to call a proper rust panic instead.
2017-06-05 00:03:39 -04:00
kyren bd7ee783e3 fix links, again 2017-05-29 16:34:39 -04:00
kyren ab3f75a90d bump cargo version 2017-05-29 16:33:54 -04:00
kyren dbc7144ba9 remove stray lib.rs file 2017-05-29 16:33:14 -04:00
kyren 87e3e56ae3 Fix link 2017-05-29 16:30:43 -04:00
kyren 4deb90c1ef Update README / Cargo.toml to point to docs.rs API docs 2017-05-29 16:28:29 -04:00
kyren 9c4029c04c bump cargo version 2017-05-26 23:49:49 -04:00
kyren e265633fb3 Callback versions of table functions 2017-05-26 23:49:12 -04:00
kyren 53b001cfce doc update again to test submodules 2017-05-25 12:12:12 -04:00
kyren c88762e90f Small doc update (secretly this is just to test submodules) 2017-05-25 12:01:12 -04:00
kyren e73346bc0f version bump 2017-05-25 00:58:28 -04:00
kyren 9fef45272f update README 2017-05-25 00:56:23 -04:00
kyren acd0611692 Make Lua::to / Lua::from operate the correct way around
I know that Lua::to uses FromLua and Lua::from uses ToLua, but it only
makes sense that Lua::from(42) would return the LuaValue for 42, and
that Lua::to::<i64>(v) would convert the given lua value TO an integer.
The way it was just incredibly backwards.
2017-05-25 00:47:48 -04:00
kyren 87a395206d Correct checking of LuaRef origin, support lightuserdata
All lua types should now be at least somewhat usable from rust, if
incompletely so.  Any lua value should be readable in Rust as a
LuaValue, pop_value should never panic except in internal logic errors.
2017-05-25 00:43:35 -04:00
kyren 0111625d17 Basic coroutine support, currently very slightly broken
There is no longer any protection in passing LuaValue between
independent states, it is being re-added
2017-05-24 23:29:57 -04:00
kyren f2b6de8e62 show build status in readme 2017-05-22 23:24:30 -04:00
kyren 151d830bf4 Add travis-ci script 2017-05-22 23:00:32 -04:00
kyren 7dc7d8edbe Update README 2017-05-22 18:09:22 -04:00
kyren 5c0f183a52 Improved error handling and formatting
Now prints lua backtraces on callback errors as well.  This could be
controlled with LUA_BACKTRACE or just RUST_BACKTRACE or similar.
2017-05-22 14:25:36 -04:00
kyren c0ecc39fc7 grammar fix for README 2017-05-22 11:46:48 -04:00
kyren b15ee9053e Update to use hlist_macro for hlist macros.
You will type hlist! hlist_pat! and HList! so often that every character
counts.  Apologize for the API churn in the README.
2017-05-22 11:16:34 -04:00
kyren 9bed8f499f Merge pull request #1 from jhasse/patch-1
Remove 2 spaces from Markdown lists
2017-05-22 10:59:14 -04:00
Jan Niklas Hasse 7282a3f640 Remove 2 spaces from Markdown lists
This improves rendering of the README.md since 4 spaces intends get treated as code.
2017-05-22 16:52:32 +02:00
kyren ccc83767ec Updates to Cargo.toml metadata 2017-05-22 03:06:33 -04:00
kyren 29b0f02472 fix typo 2017-05-21 23:34:47 -04:00
kyren f401a7043d More sensible license, show that copyright is to Chucklefish LTD 2017-05-21 22:58:47 -04:00
kyren edb86bdeb7 Doc updates, remove unused functions 2017-05-21 22:32:16 -04:00
kyren c8e83ac347 README edits 2017-05-21 22:06:23 -04:00
kyren 1d31a38d0c talk a bit about safety 2017-05-21 22:04:32 -04:00
kyren e35cdbfe88 show variadics in examples 2017-05-21 21:57:15 -04:00
kyren 895dcc8c66 more readme stuff 2017-05-21 21:52:14 -04:00
kyren a027ad43a5 extremely bad at it 2017-05-21 21:51:25 -04:00
kyren 5356dfc87c I'm bad at md formatting 2017-05-21 21:49:15 -04:00
kyren c7693ae0a2 Examples and initial README 2017-05-21 21:47:32 -04:00
kyren 065c69894a Initial import 2017-05-21 19:50:59 -04:00