Skip to content

Commit 689af78

Browse files
clippy fixes, suppress warnings
1 parent 8c7c8c0 commit 689af78

File tree

6 files changed

+18
-10
lines changed

6 files changed

+18
-10
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# hirofa-quickjs_sys - Changelog
22

3+
## 0.7.1
4+
5+
* clippy fixes, suppress warnings when using quickjs-ng
6+
37
## 0.7.0
48

59
* updated quickjs-ng to 0.7.0

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
edition = "2018"
33
name = "hirofa-quickjs-sys"
44
description = "QuickJS, QuickJS-NG Javascript Engine FFI bindings"
5-
version = "0.7.0"
5+
version = "0.7.1"
66
readme = "README.md"
77
repository = "https://github.com/HiRoFa/quickjs-sys"
88
license = "MIT"

README.md

+6-9
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,17 @@
33
Low level rust bindings for quickjs, used by [quickjs_runtime](https://github.com/HiRoFa/quickjs_es_runtime).
44

55
uses either
6-
* The original by Fabrice Bellard (```features=['bellard']```) see: https://bellard.org/quickjs/
7-
* quickjs-ng, Friendly QuickJS fork focused on reigniting the project. (```features=['quickjs-ng']```) see: https://github.com/quickjs-ng/quickjs
8-
9-
status:
10-
* bellard version is working, updated to 2024-01-13
11-
* quickjs-ng compiles, have not tested yet
6+
* The original by Fabrice Bellard. see: https://bellard.org/quickjs/
7+
* quickjs-ng, Friendly QuickJS fork focused on reigniting the project. (```default-features=false, features=["quickjs-ng"]```) see: https://github.com/quickjs-ng/quickjs
128

139
# getting started
1410

1511
Cargo.toml
12+
* bellard version
1613
```toml
17-
libquickjs-sys = {package="hirofa-quickjs-sys", version="0.6.1", features=["bellard"]}
14+
libquickjs-sys = {package="hirofa-quickjs-sys", version="0.7.1"}
1815
```
19-
or
16+
or quickjs-ng
2017
```toml
21-
libquickjs-sys = {package="hirofa-quickjs-sys", version="0.6.1", features=["quickjs-ng"]}
18+
libquickjs-sys = {package="hirofa-quickjs-sys", version="0.7.1", default-features=false, features=["quickjs-ng"]}
2219
```

quickjs-ng/bindings.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/* automatically generated by rust-bindgen 0.69.4 */
22

3+
4+
35
pub const _STDIO_H: u32 = 1;
46
pub const _FEATURES_H: u32 = 1;
57
pub const _DEFAULT_SOURCE: u32 = 1;

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(improper_ctypes)]
12
//! FFI Bindings for [quickjs](https://bellard.org/quickjs/),
23
//! a Javascript engine.
34
//! See the [quickjs](https://crates.io/crates/quickjs) crate for a high-level

src/static-functions.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11

22
extern "C" {
33
fn JS_ValueGetTag_real(v: JSValue) -> i32;
4+
#[cfg(feature = "bellard")]
45
fn JS_DupValue_real(ctx: *mut JSContext, v: JSValue);
6+
#[cfg(feature = "bellard")]
57
fn JS_DupValueRT_real(rt: *mut JSRuntime, v: JSValue);
8+
#[cfg(feature = "bellard")]
69
fn JS_FreeValue_real(ctx: *mut JSContext, v: JSValue);
10+
#[cfg(feature = "bellard")]
711
fn JS_FreeValueRT_real(rt: *mut JSRuntime, v: JSValue);
812
fn JS_NewBool_real(ctx: *mut JSContext, v: bool) -> JSValue;
913
fn JS_NewInt32_real(ctx: *mut JSContext, v: i32) -> JSValue;

0 commit comments

Comments
 (0)