# 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 = "ecma-runtime-cat"
version = "0.3.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ECMAScript runtime: native built-ins (console, Math, JSON, parseInt, isNaN, Promise, Object, Array, ...) that the boa-cat engine exposes to scripts. v0.3.4 adds `Promise.allSettled(arr)` and `Promise.any(arr)`. `allSettled` resolves with a per-input `{ status, value }` / `{ status, reason }` record, never short-circuiting. `any` resolves with the first fulfilled input and rejects with an `AggregateError`-shaped object carrying every rejection reason when all inputs reject. Both throw `TypeError` on Pending inputs for the same reason as `all` / `race`."
readme = "README.md"
keywords = [
"ecmascript",
"javascript",
"runtime",
"builtin",
"boa",
]
categories = ["development-tools"]
license = "MIT OR Apache-2.0"
[lib]
name = "ecma_runtime_cat"
path = "src/lib.rs"
[[test]]
name = "globals"
path = "tests/globals.rs"
[[test]]
name = "json_parse"
path = "tests/json_parse.rs"
[[test]]
name = "math"
path = "tests/math.rs"
[[test]]
name = "object_array"
path = "tests/object_array.rs"
[[test]]
name = "promise"
path = "tests/promise.rs"
[dependencies.boa-cat]
version = "0.7"
[dependencies.comp-cat-rs]
version = "0.5"
[dependencies.ecma-lex-cat]
version = "0.1"
[dependencies.ecma-parse-cat]
version = "0.3"
[dependencies.ecma-syntax-cat]
version = "0.1"
[dev-dependencies.proptest]
version = "1"
[lints.clippy]
manual_map = "warn"
needless_pass_by_value = "warn"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1