docs.rs failed to build oh-napi-sys-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
oh-napi-src
在OpenHarmony中,C API中的N-API接口可以实现ArkTS/TS/JS与C/C++之间的交互。本库为其Rust绑定。
安装教程
强行指定使用的NDK路径,若OpenHarmony SDK 非默认安装,则必须设置。
OH_NDK_ROOT={...你的路径}/OpenHarmony/Sdk/10/native
若构建Target为 Android 或 IOS,则自动启用ArkUI-X,
ArkUI_X_ROOT={...你的路径}/ArkUI-X/Sdk/10/arkui-x