# 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 = "2024"
name = "rong"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "RongJS runtime and embedding API"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/LingXia-Dev/Rong"

[features]
arkjs = []
default = ["quickjs"]
jscore = ["dep:rong_jscore"]
quickjs = ["dep:rong_quickjs"]

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

[[test]]
name = "array"
path = "tests/array.rs"

[[test]]
name = "array_buffer"
path = "tests/array_buffer.rs"

[[test]]
name = "class"
path = "tests/class.rs"

[[test]]
name = "context_service"
path = "tests/context_service.rs"

[[test]]
name = "convert"
path = "tests/convert.rs"

[[test]]
name = "date"
path = "tests/date.rs"

[[test]]
name = "error"
path = "tests/error.rs"

[[test]]
name = "eval"
path = "tests/eval.rs"

[[test]]
name = "function"
path = "tests/function.rs"

[[test]]
name = "iterator"
path = "tests/iterator.rs"

[[test]]
name = "macro"
path = "tests/macro.rs"

[[test]]
name = "object"
path = "tests/object.rs"

[[test]]
name = "promise"
path = "tests/promise.rs"

[[test]]
name = "rong"
path = "tests/rong.rs"

[[test]]
name = "symbol"
path = "tests/symbol.rs"

[[test]]
name = "typed_array"
path = "tests/typed_array.rs"

[dependencies.futures]
version = "0.3.31"

[dependencies.rong_core]
version = "0.2.0"

[dependencies.rong_jscore]
version = "0.2.0"
optional = true

[dependencies.rong_macro]
version = "0.2.0"

[dependencies.rong_quickjs]
version = "0.2.0"
optional = true

[dependencies.tokio]
version = "1.49"
features = [
    "rt",
    "rt-multi-thread",
    "time",
    "macros",
    "sync",
    "fs",
    "io-util",
    "process",
    "io-std",
]

[dev-dependencies]

[profile.test]
debug = 2
