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