docs.rs failed to build mlua-xid-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
mlua-xid
Rust-native XID support for mlua.
Installing
Add to your Rust project using one of MLua's features: [lua51, lua52, lua53, lua54, luajit, luajit52].
$ cargo add mlua-xid --features luajit
Using
use Lua;
let lua = new;
preload.unwrap;
let script = r#"
local xid = require('xid)
local id = xid.new()
return tostring(id)
"#;
let s: String = lua.load.eval.unwrap;
assert_eq!;
Testing
$ make check