2017-05-21 19:50:59 -04:00
|
|
|
[package]
|
|
|
|
name = "rlua"
|
2018-02-28 14:44:16 -05:00
|
|
|
version = "0.13.0"
|
2017-05-22 03:06:33 -04:00
|
|
|
authors = ["kyren <catherine@chucklefish.org>"]
|
|
|
|
description = "High level bindings to Lua 5.3"
|
2017-05-29 16:34:39 -04:00
|
|
|
repository = "https://github.com/chucklefish/rlua"
|
|
|
|
documentation = "https://docs.rs/rlua"
|
2017-05-22 03:06:33 -04:00
|
|
|
readme = "README.md"
|
|
|
|
keywords = ["lua"]
|
|
|
|
license = "MIT"
|
2017-05-21 19:50:59 -04:00
|
|
|
|
2017-08-02 17:37:29 -04:00
|
|
|
[badges]
|
2017-08-02 17:42:58 -04:00
|
|
|
travis-ci = { repository = "chucklefish/rlua", branch = "master" }
|
2017-08-02 17:37:29 -04:00
|
|
|
|
2017-07-05 19:35:53 -04:00
|
|
|
[features]
|
|
|
|
default = ["builtin-lua"]
|
|
|
|
# Builds the correct version of Lua 5.3 inside the crate. If you want to link a
|
|
|
|
# specialized version of lua into your binary, you can disable this feature to
|
2018-01-26 19:27:41 -05:00
|
|
|
# do that, but care must be taken. `rlua` makes at least the following
|
|
|
|
# assumptions about the linked lua library:
|
2018-02-28 14:43:15 -05:00
|
|
|
# * LUA_INTEGER is long long
|
|
|
|
# * LUA_NUMBER as double
|
|
|
|
# * LUA_EXTRASPACE is sizeof(void*)
|
|
|
|
# * LUAI_MAXSTACK is 1000000
|
|
|
|
# * LUAI_THROW / LUAI_TRY are defined so that they are compatible with jumping
|
|
|
|
# over Rust stack frames. Rust is, as of the discussion around
|
|
|
|
# https://github.com/rust-lang/rust/issues/48251, intended to be compatible in
|
|
|
|
# at least a limited way with C libraries that use setjmp / longjmp error
|
|
|
|
# handling, but there are some caveats. The linked bug prevents calling into
|
|
|
|
# C APIs which use setjmp / longjmp handling *at all* on windows with at least
|
|
|
|
# the 1.24.0 version of the rust compiler, and it remains to be seen but
|
|
|
|
# potentially the 1.24.1 and 1.25 versions as well. Eventually the fix for
|
|
|
|
# this will make it into stable rust, but until then there is a fix in the
|
|
|
|
# bundled version of Lua to use __intrinsic_setjmp on windows instead of
|
|
|
|
# setjmp to avoid unwinding and triggering rust issue #48251.
|
2017-07-05 19:35:53 -04:00
|
|
|
builtin-lua = ["gcc"]
|
|
|
|
|
2017-08-02 16:33:48 -04:00
|
|
|
[dependencies]
|
|
|
|
libc = { version = "0.2" }
|
2018-01-21 20:08:51 -05:00
|
|
|
failure = { version = "0.1.1" }
|
2018-02-10 00:26:48 -05:00
|
|
|
compiletest_rs = { version = "0.3", optional = true }
|
2017-08-02 16:33:48 -04:00
|
|
|
|
2017-05-21 19:50:59 -04:00
|
|
|
[build-dependencies]
|
2017-09-09 21:03:22 -04:00
|
|
|
gcc = { version = "0.3.52", optional = true }
|
2017-08-02 08:32:45 -04:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2018-02-12 13:42:13 -05:00
|
|
|
rustyline = "1.0.0"
|