Cargo Features

[dependencies]
ohos-xcomponent-binding = { version = "0.0.1", default-features = false, features = ["log", "single_mode", "multi_mode", "callbacks"] }
log

allow print log with hilog

Enables ohos-hilog-binding ^0.0.3

single_mode default

init with single xcomponent instance mode

multi_mode

init with muilt xcomponent instance mode

callbacks default

allow use closure to define callbacks

default = callbacks, single_mode

These default features are set whenever ohos-xcomponent-binding is added without default-features = false somewhere in the dependency tree.