docs.rs failed to build mquickjs-rs-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.
mquickjs-rs
Safe, idiomatic Rust wrapper for the MicroQuickJS engine.
Installation
Or in Cargo.toml:
= "0.1.0"
Usage
use ;
let ctx = new.expect;
let sum = ctx.eval_i32.expect;
assert_eq!;
ctx.register_fn
.expect;
let echoed = ctx
.eval_string
.expect;
assert_eq!;
Notes
- MicroQuickJS runs in a stricter ES5-like mode. See
../../mquickjs/README.mdfor engine limitations. - The JS context requires a preallocated memory buffer (minimum 1024 bytes).
License
MIT