docs.rs failed to build quickjs-wasm-rs-0.1.2
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.
Visit the last successful build:
quickjs-wasm-rs-3.1.0
quickjs-wasm-rs
High-level bindings and serializers for a Wasm build of QuickJS.
Bindings
Context corresponds to a QuickJS JSContext and Value corresponds to a QuickJS JSValue.
use Context;
let mut context = default;
will create a new context.
Serializers
This crate provides optional transcoding features for converting between
serialization formats and Value:
messagepackprovidesquickjs_wasm_rs::messagepackfor msgpack, usingrmp_serde.jsonprovidesquickjs_wasm_rs::jsonfor JSON, usingserde_json.
msgpack example:
use ;
let context = default;
let input_bytes: & = ...;
let input_value = transcode_input.unwrap;
let output_value: Value = ...;
let output = transcode_output.unwrap;
Building a project using this crate
- Install the wasi-sdk for your platform
- Set the
QUICKJS_WASM_SYS_WASI_SDK_PATHenvironment variable to the absolute path where you installed thewasi-sdk
For example, if you install the wasi-sdk in /opt/wasi-sdk, you can run:
Publishing to crates.io
To publish this crate to crates.io, run ./publish.sh.