Cargo Features
rquickjs-core has no features set by default.
[dependencies]
rquickjs-core = { version = "0.8.1", features = ["full", "full-async", "bindgen", "parallel", "loader", "dyn-load", "allocator", "rust-alloc", "classes", "properties", "array-buffer", "futures", "multi-ctx", "dump-bytecode", "dump-gc", "dump-gc-free", "dump-free", "dump-leaks", "dump-mem", "dump-objects", "dump-atoms", "dump-shapes", "dump-module-resolve", "dump-promise", "dump-read-object", "compile-tests", "doc-cfg", "phf"] }
- full full-async? = allocator, array-buffer, chrono, classes, dyn-load, either, indexmap, loader, properties
-
Almost all features excluding "parallel" and support for async runtimes
- full-async = full, futures
-
Almost all features excluding "parallel"
- bindgen
-
Use bindgen to generate bindings at compile-type
otherwise bundled bindings will be usedEnables bindgen of rquickjs-sys
- parallel
-
Enable support of parallel execution
Affects
markers::ParallelSend
,runtime::InterruptHandler
… - loader dyn-load? full? = relative-path
-
Enable user-defined module loader support
Affects
rquickjs-core::loader
… - dyn-load full? = dlopen, loader
-
Enable native module loading support
- allocator full? rust-alloc?
-
Enable user-defined allocator support
Affects
rquickjs-core::allocator
… - rust-alloc = allocator
-
Use Rust global allocator by default
otherwise libc allocator will be used - classes full?
-
Enable user-defined classes support
- properties full?
-
Enable user-defined properties support
- array-buffer full?
-
Enable ArrayBuffer and TypedArray support
Affects
value::array_buffer
,value::typed_array
… - futures full-async?
-
Enable interop between Rust futures and JS Promises
Enables async-lock
Affects
result::AsyncJobException
,types::Async
,promise::PromiseFuture
,promise::Promised
,promise::MaybePromiseFuture
… - multi-ctx
-
Allows transferring objects between different contexts of the same runtime.
Affects
context::MultiWith
… - dump-bytecode
-
Enable QuickJS dumps for debug
Enables dump-bytecode of rquickjs-sys
- dump-gc
-
Enables dump-gc of rquickjs-sys
- dump-gc-free
-
Enables dump-gc-free of rquickjs-sys
- dump-free
-
Enables dump-free of rquickjs-sys
- dump-leaks
-
Dump JS values which still alive when runtime is freed
Enables dump-leaks of rquickjs-sys
- dump-mem
-
Enables dump-mem of rquickjs-sys
- dump-objects
-
Enables dump-objects of rquickjs-sys
- dump-atoms
-
Enables dump-atoms of rquickjs-sys
- dump-shapes
-
Enables dump-shapes of rquickjs-sys
- dump-module-resolve
-
Enables dump-module-resolve of rquickjs-sys
- dump-promise
-
Enables dump-promise of rquickjs-sys
- dump-read-object
-
Enables dump-read-object of rquickjs-sys
- compile-tests
-
Enable compilation tests
- doc-cfg
-
Enable unstable doc-cfg feature (for docs.rs)
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.