Cargo Features

napi-sys has no features set by default.

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

Affects napi-sys::setup

experimental
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 = napi8

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.

libloading dyn-symbols?