Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Commit f785a3a

Browse files
committed
Don't bother with a feature, just disable LUA_USE_APICHECK in release
1 parent 60743d4 commit f785a3a

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Cargo.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ default = ["builtin-lua"]
2222
# * LUA_NUMBER as double
2323
# * LUA_EXTRASPACE is sizeof(void*)
2424
builtin-lua = ["gcc"]
25-
# Don't define LUA_USE_APICHECK if we are in release mode. When
26-
# debug_assertions are enabled, LUA_USE_APICHECK is enabled regardless. There
27-
# are still a few known ways to trigger LUA_USE_APICHECK checks with rlua, but
28-
# when these bugs are fixed, this option will go away and this behavior will be
29-
# the default.
30-
disable-lua-apicheck = []
3125

3226
[dependencies]
3327
libc = { version = "0.2" }

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fn main() {
2121
config.define("LUA_USE_WINDOWS", None);
2222
}
2323

24-
if cfg!(debug_assertions) || !cfg!(feature = "disable-lua-apicheck") {
24+
if cfg!(debug_assertions) {
2525
config.define("LUA_USE_APICHECK", None);
2626
}
2727

0 commit comments

Comments
 (0)