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
:
messagepack
providesquickjs_wasm_rs::messagepack
for msgpack, usingrmp_serde
.json
providesquickjs_wasm_rs::json
for 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_PATH
environment 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
.