-
-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# mlua FAQ | ||
|
||
This file is for general questions that don't fit into the README or crate docs. | ||
|
||
## Loading a C module fails with error `undefined symbol: lua_xxx`. How to fix? | ||
|
||
Add the following rustflags to your [.cargo/config](http://doc.crates.io/config.html) in order to properly export Lua symbols: | ||
|
||
```toml | ||
[target.x86_64-unknown-linux-gnu] | ||
rustflags = ["-C", "link-args=-rdynamic"] | ||
|
||
[target.x86_64-apple-darwin] | ||
rustflags = ["-C", "link-args=-rdynamic"] | ||
``` | ||
|
||
## I want to add support for a Lua VM fork to mlua. Do you accept pull requests? | ||
|
||
Adding new feature flag to support a Lua VM fork is a major step that requires huge effort to maintain it. | ||
Regular updates, testing, checking compatibility, etc. | ||
That's why I don't plan to support new Lua VM forks or other languages in mlua. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters