Cargo Features

[dependencies]
quickjs_runtime = { version = "0.14.9", default-features = false, features = ["console", "setinterval", "setimmediate", "typescript", "bellard", "quickjs-ng", "swc_node_comments"] }
default = bellard, console, setimmediate, setinterval, settimeout, typescript

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

console default

Affects features::console, features::init, quickjs_runtime::features

settimeout setinterval default

Affects features::set_timeout, features::init, quickjs_runtime::features

setimmediate default

Affects features::setimmediate, features::init, quickjs_runtime::features

typescript default = swc, swc_atoms, swc_cached, swc_common, swc_config, swc_config_macro, swc_ecma_ast, swc_ecma_codegen, swc_ecma_codegen_macros, swc_ecma_ext_transforms, swc_ecma_lints, swc_ecma_loader, swc_ecma_minifier, swc_ecma_parser, swc_ecma_preset_env, swc_ecma_transforms, swc_ecma_transforms_base, swc_ecma_transforms_classes, swc_ecma_transforms_compat, swc_ecma_transforms_macros, swc_ecma_transforms_module, swc_ecma_transforms_optimization, swc_ecma_transforms_proposal, swc_ecma_transforms_react, swc_ecma_transforms_typescript, swc_ecma_usage_analyzer, swc_ecma_utils, swc_ecma_visit, swc_eq_ignore_macros, swc_error_reporters, swc_fast_graph, swc_macros_common, swc_timer, swc_visit, swc_visit_macros

Affects quickjs_runtime::typescript

bellard default

Enables bellard of hirofa-quickjs-sys

quickjs-ng

Enables quickjs-ng of hirofa-quickjs-sys

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.

swc typescript

Enables swc =16.1.1

swc like the good people at denoland said: "swc's version bumping is very buggy and there will often be patch versions published that break our build, so we pin all swc versions to prevent pulling in new versions of swc crates" see https://github.com/denoland/deno_ast/blob/main/Cargo.toml

swc_atoms typescript
swc_cached typescript
swc_common typescript
swc_macros_common typescript
swc_eq_ignore_macros typescript
swc_visit typescript
swc_visit_macros typescript
swc_config typescript
swc_config_macro typescript
swc_ecma_codegen typescript

Enables swc_ecma_codegen =8.0.2

swc_ecma_ast typescript
swc_ecma_codegen_macros typescript
swc_ecma_ext_transforms typescript

Enables swc_ecma_ext_transforms =11.0.0

swc_ecma_utils typescript

Enables swc_ecma_utils =11.0.0

swc_ecma_visit typescript
swc_ecma_lints typescript

Enables swc_ecma_lints =11.0.1

swc_ecma_loader typescript
swc_ecma_minifier typescript

Enables swc_ecma_minifier =12.4.0

swc_ecma_parser typescript

Enables swc_ecma_parser =10.0.2

swc_error_reporters typescript
swc_fast_graph typescript
swc_ecma_usage_analyzer typescript

Enables swc_ecma_usage_analyzer =12.0.2

swc_timer typescript
swc_ecma_preset_env typescript

Enables swc_ecma_preset_env =14.0.0

swc_ecma_transforms typescript

Enables swc_ecma_transforms =14.0.0

swc_ecma_transforms_base typescript

Enables swc_ecma_transforms_base =11.2.0

swc_ecma_transforms_compat typescript

Enables swc_ecma_transforms_compat =12.0.0

swc_ecma_transforms_classes typescript

Enables swc_ecma_transforms_classes =11.0.0

swc_ecma_transforms_module typescript

Enables swc_ecma_transforms_module =12.1.0

swc_ecma_transforms_optimization typescript

Enables swc_ecma_transforms_optimization =11.1.0

swc_ecma_transforms_proposal typescript

Enables swc_ecma_transforms_proposal =11.0.2

swc_ecma_transforms_macros typescript
swc_ecma_transforms_react typescript

Enables swc_ecma_transforms_react =12.0.1

swc_ecma_transforms_typescript typescript

Enables swc_ecma_transforms_typescript =12.0.1

swc_node_comments implicit feature

Enables swc_node_comments

swc_node_comments:

Implementation of Comments of swc_common