# 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.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ECMAScript runtime: native built-ins (console, Math, JSON, parseInt, isNaN, Promise, ...) that the boa-cat engine exposes to scripts. v0.3.0 adds the `Promise` global with `resolve(v)`, `reject(v)`, `all(arr)`, and `race(arr)` static methods, wrapping the boa-cat 0.6 promise infrastructure (`Heap::alloc_promise`, microtask driver, `.then` / `.catch` dispatch). `Promise.resolve(p)` short-circuits for existing promises per spec; `all` / `race` over fully-settled inputs work synchronously, and the Pending-input orchestration lands once boa-cat ships continuation-passing transforms."
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 = "math"
path = "tests/math.rs"
[[test]]
name = "promise"
path = "tests/promise.rs"
[dependencies.boa-cat]
version = "0.6"
[dependencies.comp-cat-rs]
version = "0.5"
[dependencies.ecma-lex-cat]
version = "0.1"
[dependencies.ecma-parse-cat]
version = "0.2"
[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