Skip to content
This repository was archived by the owner on Sep 13, 2025. It is now read-only.
This repository was archived by the owner on Sep 13, 2025. It is now read-only.

error[E0425]: cannot find value JS_EVAL_FLAG_ASYNC in module qjs #30

@yo000

Description

@yo000

Hello,

When compiling under FreeBSD 14, rust 1.81, I got these errors :

   Compiling rquickjs-core v0.6.0
error[E0425]: cannot find value `JS_EVAL_FLAG_ASYNC` in module `qjs`
  --> /home/invidious/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rquickjs-core-0.6.0/src/context/ctx.rs:49:26
   |
49 |             flag |= qjs::JS_EVAL_FLAG_ASYNC;
   |                          ^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `JS_EVAL_FLAG_STRICT`
   |
  ::: /home/invidious/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rquickjs-sys-0.6.0/src/bindings/x86_64-unknown-freebsd.rs:30:1
   |
30 | pub const JS_EVAL_FLAG_STRICT: u32 = 8;
   | ---------------------------------- similarly named constant `JS_EVAL_FLAG_STRICT` defined here
   
error[E0425]: cannot find value `JS_ATOM_null` in module `qjs`
  --> /home/invidious/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rquickjs-core-0.6.0/src/value/atom/predefined.rs:12:17
   |
12 |     Null = qjs::JS_ATOM_null as u32, // must be first
   |                 ^^^^^^^^^^^^ help: a constant with a similar name exists: `JS_ATOM_NULL`
   |
  ::: /home/invidious/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rquickjs-sys-0.6.0/src/bindings/x86_64-unknown-freebsd.rs:34:1
   |
34 | pub const JS_ATOM_NULL: u32 = 0;
   | --------------------------- similarly named constant `JS_ATOM_NULL` defined here
   
error[E0425]: cannot find value `JS_ATOM_false` in module `qjs`
  --> /home/invidious/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rquickjs-core-0.6.0/src/value/atom/predefined.rs:14:18
   |
14 |     False = qjs::JS_ATOM_false as u32,
   |                  ^^^^^^^^^^^^^ not found in `qjs`
   

And so on. I'm a total noob with rust ; Am I missing a lib or something?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions