#javascript #run-time #key-value #js-runtime #error #js-value #quickjs #flutter #jsc #facade

jolt_core

Core trait and types for the Jolt JavaScript runtime

4 releases

0.1.3 Mar 24, 2026
0.1.2 Mar 24, 2026
0.1.1 Mar 24, 2026
0.1.0 Mar 24, 2026

#4 in #js-value

Download history 71/week @ 2026-03-22 220/week @ 2026-03-29 362/week @ 2026-04-05 339/week @ 2026-04-12 156/week @ 2026-04-19 57/week @ 2026-04-26 373/week @ 2026-05-03

933 downloads per month
Used in 4 crates

MIT license

10KB
176 lines

jolt_core

crates.io docs.rs

Core types and traits for the Jolt JavaScript runtime.

This crate provides:

  • JsRuntime — the trait all Jolt backends implement
  • JsValue — values exchanged between Rust and JavaScript
  • JsEntry — key-value pairs in JS objects
  • JoltError — error types for evaluation, conversion, and runtime failures

Usage

Most users should depend on a backend crate (jolt_quickjs, jolt_jsc, jolt_web) or the jolt facade. Use jolt_core directly when you need the trait or types without a specific engine.

use jolt_core::{JsRuntime, JsValue, JoltError};

fn run_js(rt: &mut impl JsRuntime) -> Result<JsValue, JoltError> {
    rt.eval("1 + 1")
}

License

MIT

Dependencies

~120–485KB
~11K SLoC