# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "ohos-arkui-binding"
version = "0.1.0"
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OpenHarmony's arkui binding for rust"
readme = false
license = "MIT OR Apache-2.0"

[lib]
name = "ohos_arkui_binding"
path = "src/lib.rs"

[dependencies.bitflags]
version = "2.6"

[dependencies.napi-ohos]
version = "1.1.3"
optional = true

[dependencies.napi-sys-ohos]
version = "1.1.3"
features = ["napi8"]
optional = true

[dependencies.ohos-arkui-sys]
version = "0.0.1"

[dependencies.ohos-xcomponent-binding]
version = "0.2.0"
optional = true

[dependencies.ohos-xcomponent-sys]
version = "0.0.2"
optional = true

[dependencies.ohos_enum_macro]
version = "0.0.2"

[features]
default = [
    "napi",
    "xcomponent",
]
napi = [
    "dep:napi-ohos",
    "dep:napi-sys-ohos",
]
xcomponent = [
    "dep:ohos-xcomponent-binding",
    "dep:ohos-xcomponent-sys",
]
xcomponent_multi_mode = ["ohos-xcomponent-binding/multi_mode"]
