# 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.2"
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.2 adds `JSON.parse(source)` alongside the existing `JSON.stringify`: a hand-rolled recursive-descent JSON parser that handles null / booleans / numbers (including scientific notation) / strings (with `\"` / `\\` / control-character / `\uXXXX` escapes) / arrays / objects and rebuilds them as boa-cat `Value`s on the heap. Throws `SyntaxError` on malformed input; the heap is snapshotted and restored on the error path so partial allocations don't leak.'''
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 = "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