Skip to content

Commit d4d8275

Browse files
0.12 wip, hirofa-quickjs-sys
1 parent a7a4cb1 commit d4d8275

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# 0.11.6
1+
# 0.12.0
22

3+
* uses hirofa-quickjs-sys 0.10.0 and ['bellard'] feature and thus the 2023-12-09 version of the original quickjs by Fabrice Bellard
34
* added get_proxy_instance_id for getting instance id without looking up the proxy
45
* console functions output source filename
56

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "quickjs_runtime"
3-
version = "0.11.5"
3+
version = "0.12.0"
44
authors = ["Andries Hiemstra <[email protected]>"]
55
edition = "2021"
66
description = "Wrapper API and utils for the QuickJS JavaScript engine with support for Promise, Modules, Async/await"
@@ -27,7 +27,8 @@ hirofa_utils = "0.7"
2727
#hirofa_utils = {git="https://github.com/SreeniIO/utils.git"}
2828
#hirofa_utils = {git="https://github.com/HiRoFa/utils"}
2929
backtrace = "0.3.67"
30-
libquickjs-sys = "0.10.0"
30+
31+
libquickjs-sys = {package="hirofa-quickjs-sys", path='../quickjs-sys', features=["bellard"]}
3132
lazy_static = "1.4.0"
3233
log = "0.4"
3334
num_cpus = "1"

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
quickjs_runtime is a library for quickly getting started with embedding a javascript engine in your rust project.
44

5-
**DISCLAIMER: This project is not yet what I would call "Battle Tested", use at your own risk.**
5+
**as of 2024 this lib no longer relies on [libquickjs-sys](https://github.com/theduke/quickjs-rs/tree/master/libquickjs-sys) but on out own [hirofa-quickjs-sys](https://github.com/HiRoFa/quickjs-sys) adding flexibility in used quickjs version**
66

77
An example on how to embed a script engine in rust using this lib can be found here: [github.com/andrieshiemstra/ScriptExtensionLayerExample](https://github.com/andrieshiemstra/ScriptExtensionLayerExample). It was published in TWIR as a walkthrough.
88

99
quickjs_runtime focuses on making [quickjs](https://bellard.org/quickjs/) easy to use and does not add any additional features, that's where these projects come in:
1010
* A more feature-rich (e.g. fetch api support, http based module loader and much more) runtime: [GreenCopperRuntime](https://github.com/HiRoFa/GreenCopperRuntime).
1111
* The commandline client: [GreenCopperCmd](https://github.com/HiRoFa/GreenCopperCmd).
1212

13-
This project is inspired by the quickjs wrapper at [theduke/quickjs-rs](https://github.com/theduke/quickjs-rs) and still uses its low level bindings [libquickjs-sys](https://crates.io/crates/libquickjs-sys).
1413

1514
The big difference to quickjs-rs is that quickjs_runtime executes all quickjs related code in a dedicated single-threaded EventLoop.
1615

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ pub mod reflection;
9494
pub mod typescript;
9595
pub mod values;
9696

97+
pub use libquickjs_sys;
98+
9799
#[cfg(test)]
98100
pub mod tests {
99101
use crate::builder::QuickJsRuntimeBuilder;

0 commit comments

Comments
 (0)