Cargo Features

[dependencies]
ytdlp-ejs = { version = "0.1.1", default-features = false, features = ["qjs", "boa", "bindgen", "external", "snmalloc"] }
default = boa, external, qjs

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

qjs default = rquickjs

Affects builtin::quickjs

boa default = boa_engine

Affects builtin::boa

bindgen

Enables bindgen of rquickjs

rquickjs:

Use bindgen to generate bindings at compile-time
otherwise bundled bindings will be used

external default

Affects builtin::deno, builtin::node, builtin::bun

snmalloc

Enables snmalloc-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.

rquickjs bindgen? qjs
boa_engine boa

Enables boa_engine

TODO: features = ["intl_bundled"] need 10mb