# mlua-xid
Rust-native XID support for [mlua](https://crates.io/crates/mlua).
[](LICENSE)
[]()
[]()
## Installing
Add to your Rust project using one of MLua's features: [lua51, lua52, lua53, lua54, luajit, luajit52].
```shell
$ cargo add mlua-xid --features luajit
```
## Using
```rust
use mlua::Lua;
let lua = Lua::new();
mlua_xid::preload(&lua).unwrap();
let script = r#"
local xid = require('xid)
local id = xid.new()
return tostring(id)
"#;
let s: String = lua.load(script).eval().unwrap();
assert_eq!(s.len(), 20);
```
## Testing
```shell
$ make check
```