Cargo Features

arkui-sys has no features set by default.

[dependencies]
arkui-sys = { version = "0.2.3", features = ["api-12", "api-13", "drawing", "document-features"] }
api-12

OpenHarmony API level

The arkUI native module was added in API-level 12. Defaults to no bindings at all, to maintain feature composability in ohos-sys. Optionally enable one of the api-* features to get access to bindings for newer OpenHarmony versions.

Enables bindings for OpenHarmony API-level 12.

Enables api-12 of optional ohos-drawing-sys

Affects drag_and_drop_ffi::ArkUI_DragResult, drag_and_drop_ffi::ArkUI_DropOperation, drag_and_drop_ffi::ArkUI_PreDragStatus, drag_and_drop_ffi::ArkUI_DragPreviewScaleMode, drag_and_drop_ffi::ArkUI_DragStatus, drag_and_drop_ffi::OH_ArkUI_NodeEvent_GetDragEvent, drag_and_drop_ffi::OH_ArkUI_NodeEvent_GetPreDragStatus, drag_and_drop_ffi::OH_ArkUI_DragEvent_DisableDefaultDropAnimation, drag_and_drop_ffi::OH_ArkUI_DragEvent_SetSuggestedDropOperation, drag_and_drop_ffi::OH_ArkUI_DragEvent_SetDragResult, drag_and_drop_ffi::OH_ArkUI_DragEvent_GetDataTypeCount, drag_and_drop_ffi::OH_ArkUI_DragEvent_GetDataTypes, drag_and_drop_ffi::OH_ArkUI_DragEvent_GetDragResult, drag_and_drop_ffi::OH_ArkUI_DragEvent_GetDropOperation, drag_and_drop_ffi::OH_ArkUI_DragEvent_GetPreviewTouchPointX, drag_and_drop_ffi::OH_ArkUI_DragEvent_GetPreviewTouchPointY, drawable_descriptor_ffi::OH_PixelmapNativeHandle, drawable_descriptor_ffi::OH_ArkUI_DrawableDescriptor_CreateFromPixelMap, drawable_descriptor_ffi::OH_ArkUI_DrawableDescriptor_CreateFromAnimatedPixelMap, drawable_descriptor_ffi::OH_ArkUI_DrawableDescriptor_Dispose

api-13

Enables bindings for OpenHarmony API-level 13.

Affects arkui-sys::native_interface_accessibility, native_interface_accessibility_ffi::ArkUI_Accessibility_ActionType, native_interface_accessibility_ffi::ArkUI_AccessibilityEventType, native_interface_accessibility_ffi::ArkUI_AccessibleAction, native_interface_accessibility_ffi::ArkUI_AccessibleRect, native_interface_accessibility_ffi::ArkUI_AccessibleRangeInfo, native_interface_accessibility_ffi::ArkUI_AccessibleGridInfo, native_interface_accessibility_ffi::ArkUI_AccessibleGridItemInfo, native_interface_accessibility_ffi::ArkUI_AcessbilityErrorCode, native_interface_accessibility_ffi::ArkUI_AccessibilitySearchMode, native_interface_accessibility_ffi::ArkUI_AccessibilityFocusType, native_interface_accessibility_ffi::ArkUI_AccessibilityFocusMoveDirection, native_interface_accessibility_ffi::ArkUI_AccessibilityProviderCallbacks, native_interface_accessibility_ffi::OH_ArkUI_AccessibilityProviderRegisterCallback, native_interface_accessibility_ffi::OH_ArkUI_SendAccessibilityAsyncEvent, native_interface_accessibility_ffi::OH_ArkUI_AddAndGetAccessibilityElementInfo, native_interface_accessibility_ffi::OH_ArkUI_AccessibilityElementInfoSetElementId, native_node_ffi::OH_ArkUI_NodeUtils_AddCustomProperty, native_node_ffi::OH_ArkUI_NodeUtils_RemoveCustomProperty

drawing

Enables bindings for Functions that interact with the drawing module

Enables ohos-drawing-sys

document-features

Document available features when building the documentation

Enables document-features