Cargo Features

[dependencies]
napi-sys = { version = "3.2.1", default-features = false, features = ["dyn-symbols", "experimental", "napi1", "napi2", "napi3", "napi4", "napi5", "napi6", "napi7", "napi8", "napi9", "napi10"] }
default = dyn-symbols

The dyn-symbols feature is set by default whenever napi-sys is added without default-features = false somewhere in the dependency tree.

dyn-symbols default

Affects napi-sys::setup

experimental

Affects types::node_api_basic_env__, types::node_api_basic_env

napi1 napi2?
napi2 napi3? = napi1
napi3 napi4? = napi2
napi4 napi5? = napi3

Affects types::napi_threadsafe_function__, types::napi_threadsafe_function, types::napi_threadsafe_function_release_mode, types::ThreadsafeFunctionReleaseMode, types::napi_threadsafe_function_call_mode, types::ThreadsafeFunctionCallMode, types::napi_threadsafe_function_call_js

napi5 napi6? = napi4
napi6 napi7? = napi5

Affects types::ValueType.napi_bigint, types::TypedarrayType.bigint64_array, types::TypedarrayType.biguint64_array, types::napi_key_collection_mode, types::KeyCollectionMode, types::napi_key_filter, types::KeyFilter, types::napi_key_conversion, types::KeyConversion

napi7 napi8? = napi6
napi8 napi9? = napi7

Affects types::napi_async_cleanup_hook_handle__, types::napi_async_cleanup_hook_handle, types::napi_async_cleanup_hook

napi9 napi10? = napi8
napi10 = napi9

Affects types::node_api_basic_finalize, types::node_api_basic_env__, types::node_api_basic_env