# 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" rust-version = "1.80" name = "napi-ohos" version = "1.0.3" authors = [ "Nathan Sobo ", "Yinan Long ", "southorange0929 ", ] build = "build.rs" autobins = false autoexamples = false autotests = false autobenches = false description = "N-API bindings" readme = "README.md" keywords = [ "NodeJS", "Node", "HarmonyOS", "NAPI", "n-api", ] license = "MIT" repository = "https://github.com/ohos-rs/ohos-rs" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [package.metadata.workspaces] independent = true [lib] name = "napi_ohos" path = "src/lib.rs" doctest = false [dependencies.anyhow] version = "1" optional = true [dependencies.bitflags] version = "2" [dependencies.chrono] version = "0.4" optional = true [dependencies.ctor] version = "0.2" [dependencies.encoding_rs] version = "0.8" optional = true [dependencies.indexmap] version = "2" optional = true [dependencies.napi-sys-ohos] version = "1.0.3" [dependencies.serde] version = "1" optional = true [dependencies.serde_json] version = "1" optional = true [features] async = ["tokio_rt"] chrono_date = [ "chrono", "napi5", ] compat-mode = [] default = [ "napi4", "compat-mode", ] deferred_trace = ["napi4"] dyn-symbols = ["napi-sys-ohos/dyn-symbols"] error_anyhow = ["anyhow"] experimental = ["napi-sys-ohos/experimental"] full = [ "latin1", "async", "serde-json", "chrono_date", ] latin1 = ["encoding_rs"] napi1 = [] napi2 = [ "napi1", "napi-sys-ohos/napi2", ] napi3 = [ "napi2", "napi-sys-ohos/napi3", ] napi4 = [ "napi3", "napi-sys-ohos/napi4", ] napi5 = [ "napi4", "napi-sys-ohos/napi5", ] napi6 = [ "napi5", "napi-sys-ohos/napi6", ] napi7 = [ "napi6", "napi-sys-ohos/napi7", ] napi8 = [ "napi7", "napi-sys-ohos/napi8", ] napi9 = [ "napi8", "napi-sys-ohos/napi9", ] node_version_detect = [] noop = [] object_indexmap = ["indexmap"] serde-json = [ "serde", "serde_json", ] serde-json-ordered = [ "serde-json", "serde_json/preserve_order", ] tokio_fs = ["tokio/fs"] tokio_full = ["tokio/full"] tokio_io_std = ["tokio/io-std"] tokio_io_util = ["tokio/io-util"] tokio_macros = ["tokio/macros"] tokio_net = ["tokio/net"] tokio_process = ["tokio/process"] tokio_rt = [ "tokio", "napi4", ] tokio_signal = ["tokio/signal"] tokio_sync = ["tokio/sync"] tokio_test_util = ["tokio/test-util"] tokio_time = ["tokio/time"] tokio_tracing = ["tokio/tracing"] [target.'cfg(not(target_os = "wasm"))'.dependencies.tokio] version = "1" features = [ "rt", "rt-multi-thread", "sync", ] optional = true