Cargo Features

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

[dependencies]
ohos-ime-sys = { version = "0.1.3", features = ["api-12", "api-13", "document-features"] }
api-12 api-13?

OpenHarmony API level

The inputmethod API 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.

Affects attach_options_ffi::OH_AttachOptions_Create, attach_options_ffi::OH_AttachOptions_Destroy, attach_options_ffi::OH_AttachOptions_IsShowKeyboard, controller_ffi::OH_InputMethodController_Attach, controller_ffi::OH_InputMethodController_Detach, cursor_info_ffi::OH_CursorInfo_Create, cursor_info_ffi::OH_CursorInfo_Destroy, cursor_info_ffi::OH_CursorInfo_SetRect, cursor_info_ffi::OH_CursorInfo_GetRect, inputmethod_proxy_ffi::OH_InputMethodProxy_ShowKeyboard, inputmethod_proxy_ffi::OH_InputMethodProxy_HideKeyboard, inputmethod_proxy_ffi::OH_InputMethodProxy_NotifySelectionChange, inputmethod_proxy_ffi::OH_InputMethodProxy_NotifyConfigurationChange, inputmethod_proxy_ffi::OH_InputMethodProxy_NotifyCursorUpdate, inputmethod_proxy_ffi::OH_InputMethodProxy_SendPrivateCommand, private_command_ffi::OH_PrivateCommand_Create, private_command_ffi::OH_PrivateCommand_Destroy, private_command_ffi::OH_PrivateCommand_SetKey, private_command_ffi::OH_PrivateCommand_SetBoolValue, private_command_ffi::OH_PrivateCommand_SetIntValue

api-13 = api-12

Enables bindings for OpenHarmony API-level 13 (No changes)

document-features

Document available features when building the documentation

Enables document-features