Cargo Features

[dependencies]
nodex-api = { version = "0.2.4", default-features = false, features = ["gen-api", "v1", "v2", "v3", "v4", "v5", "v6", "v7", "v8"] }
default = v1

The v1 feature is set by default whenever nodex-api is added without default-features = false somewhere in the dependency tree.

gen-api = bindgen, cc
v1 default v2? v3? v4? v5? v6? v7? v8?
v2 v3? v4? v5? v6? v7? v8? = v1
v3 v4? v5? v6? v7? v8? = v1, v2

Affects env::CleanupHookHandler

v4 v5? v6? v7? v8? = v1, v2, v3

Affects api::napi_threadsafe_function__, api::napi_threadsafe_function, api::napi_threadsafe_function_release_mode_napi_tsfn_release, api::napi_threadsafe_function_release_mode_napi_tsfn_abort, api::napi_threadsafe_function_release_mode, api::napi_threadsafe_function_call_mode_napi_tsfn_nonblocking, api::napi_threadsafe_function_call_mode_napi_tsfn_blocking, api::napi_threadsafe_function_call_mode, api::napi_threadsafe_function_call_js, nodex-api::NapiThreadsafeFunctionReleaseMode, nodex-api::NapiThreadsafeFunctionCallMode, nodex-api::tsfn, nodex-api::prelude.NapiTsfnMode, nodex-api::prelude.NapiTsfnReleaseMode

v5 v6? v7? v8? = v1, v2, v3, v4

Affects value::NapiValueT.finalizer

v6 v7? v8? = v1, v2, v3, v4, v5
v7 v8? = v1, v2, v3, v4, v5, v6
v8 = v1, v2, v3, v4, v5, v6, v7

Affects api::napi_async_cleanup_hook_handle__, api::napi_async_cleanup_hook_handle, api::napi_async_cleanup_hook, env::AsyncCleanupHookHandler, value::NapiValueT.type_tag_object, value::NapiValueT.check_object_type_tag

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.

bindgen build gen-api?
cc build gen-api?