arkui-sys 0.2.2

Bindings to the native ArkUI API of OpenHarmony
Documentation
[package]
name = "arkui-sys"
version = "0.2.2"
edition = "2021"
description = "Bindings to the native ArkUI API of OpenHarmony"
license = "Apache-2.0"
repository = "https://github.com/openharmony-rs/ohos-sys"
keywords = ["OpenHarmony", "HarmonyOS", "ArkUI", "UI"]
exclude = ["src/**/*_nopublish.rs"]
readme = "README.md"

[dependencies]
document-features = { version = "0.2", optional = true }
ohos-drawing-sys = { version = "0.2", optional = true, path = "../drawing" }
ohos-sys-opaque-types = { workspace = true }

[features]
default = []

#! ### 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.
api-12 = ["ohos-drawing-sys?/api-12"]
## Enables bindings for OpenHarmony API-level 13.
api-13 = []
## Enables bindings for Functions that interact with the `drawing` module
drawing = ["dep:ohos-drawing-sys"]


## Document available features when building the documentation
document-features = ["dep:document-features"]

[package.metadata.docs.rs]
features = ["document-features"]
targets = ["aarch64-unknown-linux-ohos", "armv7-unknown-linux-ohos", "x86_64-unknown-linux-ohos"]
all-features = true