Skip to content

Commit

Permalink
update quickjs-ng to 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrieshiemstra committed Sep 16, 2024
1 parent e933cd4 commit 005c95c
Show file tree
Hide file tree
Showing 187 changed files with 10,711 additions and 127,774 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# hirofa-quickjs_sys - Changelog

## 0.5.0

* updated quickjs-ng to 0.5.0

## 0.4.0

* updated quickjs-ng to 0.4.1
Expand Down
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
edition = "2018"
name = "hirofa-quickjs-sys"
description = "QuickJS, QuickJS-NG Javascript Engine FFI bindings"
version = "0.4.0"
version = "0.5.0"
readme = "README.md"
repository = "https://github.com/HiRoFa/quickjs-sys"
license = "MIT"
Expand All @@ -16,7 +16,6 @@ build = "build.rs"
default = ["quickjs-ng"]
bellard = []
quickjs-ng = []
#openwebf = []

[build-dependencies]
cc = { version = "1.0.66"}
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@ Low level rust bindings for quickjs, used by [quickjs_runtime](https://github.co
uses either
* The original by Fabrice Bellard (```features=['bellard']```) see: https://bellard.org/quickjs/
* quickjs-ng, Friendly QuickJS fork focused on reigniting the project. (```features=['quickjs-ng']```) see: https://github.com/quickjs-ng/quickjs
* later
* ~~openwebf, Optimized quickjs mantained by OpenWebF team. (```features=['openwebf']```) see: https://github.com/openwebf/quickjs~~

status:
* bellard version is working, updated to 2024-01-13
* quickjs-ng compiles, have not tested yet
* openwebf, future

# getting started

Expand Down
8 changes: 3 additions & 5 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,17 @@ fn exists(path: impl AsRef<Path>) -> bool {

const LIB_NAME: &str = "quickjs";

#[cfg(all(not(feature = "bellard"), not(feature = "quickjs-ng"), not(feature = "openwebf")))]
#[cfg(all(not(feature = "bellard"), not(feature = "quickjs-ng")))]
fn main() {
panic!("Invalid config for crate libquickjs-sys: must enable either the 'bellard', the 'quickjs-ng' or the 'openwebf' feature");
panic!("Invalid config for crate libquickjs-sys: must enable either the 'bellard' or the 'quickjs-ng' feature");
}

#[cfg(any(feature = "bellard", feature = "quickjs-ng", feature = "openwebf"))]
#[cfg(any(feature = "bellard", feature = "quickjs-ng"))]
fn main() {
#[cfg(feature = "bellard")]
let embed_path = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()).join("bellard");
#[cfg(feature = "quickjs-ng")]
let embed_path = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()).join("quickjs-ng");
#[cfg(feature = "openwebf")]
let embed_path = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()).join("openwebf");

let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());

Expand Down
Loading

0 comments on commit 005c95c

Please sign in to comment.