# 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-sys" version = "0.4.0" build = false exclude = [ "src/**/*_api11.rs", "src/**/*_api12.rs", ] autobins = false autoexamples = false autotests = false autobenches = false description = "Bindings to the native API of OpenHarmony OS" readme = "Readme.md" keywords = [ "OpenHarmony", "HarmonyOS", "ffi", ] license = "Apache-2.0" repository = "https://github.com/openharmony-rs/ohos-sys" resolver = "2" [package.metadata.docs.rs] all-features = true features = ["document-features"] targets = [ "aarch64-unknown-linux-ohos", "armv7-unknown-linux-ohos", "x86_64-unknown-linux-ohos", ] [lib] name = "ohos_sys" path = "src/lib.rs" [dependencies.document-features] version = "0.2" optional = true [dependencies.hilog-sys] version = "0.1.2" optional = true [dependencies.hitrace-sys] version = "0.1.2" optional = true [dependencies.ohos-deviceinfo-sys] version = "0.1" optional = true [dependencies.ohos-drawing-sys] version = "0.1.1" optional = true [dependencies.ohos-ime-sys] version = "0.1.1" optional = true [dependencies.xcomponent-sys] version = "0.1.1" optional = true [features] all-components = [ "deviceinfo", "drawing", "hilog", "hitrace", "inputmethod", "napi", "native_buffer", "native_image", "native_window", "xcomponent", "vsync", ] api-10 = [] api-11 = [ "api-10", "ohos-deviceinfo-sys?/api-11", "ohos-drawing-sys?/api-11", "hilog-sys?/api-11", "hitrace-sys?/api-11", "xcomponent-sys?/api-11", ] api-12 = [ "api-11", "ohos-deviceinfo-sys?/api-12", "ohos-drawing-sys?/api-12", "hilog-sys?/api-12", "hitrace-sys?/api-12", "ohos-ime-sys?/api-12", "xcomponent-sys?/api-12", ] default = ["api-10"] deviceinfo = ["dep:ohos-deviceinfo-sys"] document-features = ["dep:document-features"] drawing = ["dep:ohos-drawing-sys"] hilog = ["dep:hilog-sys"] hitrace = ["dep:hitrace-sys"] inputmethod = ["dep:ohos-ime-sys"] napi = [] native_buffer = ["native_window"] native_image = ["native_window"] native_window = ["native_buffer"] vsync = [] xcomponent = ["dep:xcomponent-sys"]