Cargo Features

[dependencies]
hai_ops = { version = "0.7.0", default-features = false, features = ["js_runtime", "quickjs", "text", "v8", "video", "web"] }
default = js_runtime, quickjs

These default features are set whenever hai_ops is added without default-features = false somewhere in the dependency tree.

js_runtime default

Enables js_runtime of hai_core

Affects hai_ops::init, hai_ops::init, spawn::spawn_runtime_with_core, spawn::spawn_runtime_with_core

quickjs default = hai_runtime

Enables quickjs of hai_core and hai_macros

Affects hai_ops::init, spawn::spawn_runtime_with_core

text
v8 = hai_js_runtime

Enables v8 of hai_core and hai_macros

Affects hai_ops::init, spawn::spawn_runtime_with_core

video
web = wasm-bindgen, wasm-bindgen-futures, web-sys

Affects spawn::spawn_runtime_with_core, system::load_resources

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.

wasm-bindgen web?

Enables wasm-bindgen

optional dependencies

wasm-bindgen-futures web?
web-sys web?
hai_js_runtime v8?
hai_runtime quickjs