Cargo Features

napi-sys-ohos has no features set by default.

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

Affects napi-sys-ohos::setup

experimental

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

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? ohos? = napi7

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

napi9 ohos = 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?