[[bench]]
harness = false
name = "lexer"
path = "benches/lexer.rs"
[[bench]]
harness = false
name = "parser"
path = "benches/parser.rs"
[[bin]]
name = "tsrun"
path = "src/bin/tsrun.rs"
required-features = ["std"]
[dependencies.fancy-regex]
optional = true
version = "0.17"
[dependencies.hashbrown]
default-features = false
features = ["default-hasher"]
version = "0.15"
[dependencies.indexmap]
default-features = false
features = ["serde"]
version = "2.0"
[dependencies.libm]
version = "0.2"
[dependencies.rustc-hash]
default-features = false
version = "2.1"
[dependencies.serde]
default-features = false
features = ["derive", "alloc"]
version = "1.0"
[dependencies.serde_json]
default-features = false
features = ["alloc"]
version = "1.0"
[[example]]
name = "profile_lexer"
path = "examples/profile_lexer.rs"
required-features = ["dev-tools"]
[[example]]
name = "profile_parser"
path = "examples/profile_parser.rs"
required-features = ["dev-tools"]
[[example]]
name = "test262-runner"
path = "examples/test262-runner.rs"
required-features = ["dev-tools"]
[features]
c-api = []
console = []
default = ["std"]
dev-tools = ["std"]
regex = ["dep:fancy-regex"]
std = ["regex", "console", "serde/std", "serde_json/std", "rustc-hash/std"]
wasm = ["c-api", "console", "dep:dlmalloc"]
[lib]
crate-type = ["rlib", "cdylib", "staticlib"]
name = "tsrun"
path = "src/lib.rs"
[lints.clippy]
expect_used = "deny"
indexing_slicing = "deny"
panic = "deny"
string_slice = "deny"
todo = "deny"
unimplemented = "deny"
unreachable = "deny"
unwrap_used = "deny"
[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["parser-implementations"]
description = "A TypeScript interpreter designed for embedding in applications"
edition = "2024"
keywords = ["typescript", "javascript", "interpreter", "embedding"]
license = "MIT"
name = "tsrun"
readme = "README.md"
version = "0.1.12"
[profile.profiling]
debug = 2
inherits = "release"
strip = false
[profile.release]
codegen-units = 1
lto = true
opt-level = "z"
panic = "abort"
strip = true
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion]
features = ["html_reports"]
version = "0.5"
[target.'cfg(target_arch = "wasm32")'.dependencies.dlmalloc]
features = ["global"]
optional = true
version = "0.2"
[[test]]
name = "compiler"
path = "tests/compiler.rs"
[[test]]
name = "interpreter"
path = "tests/interpreter/main.rs"
[[test]]
name = "lexer"
path = "tests/lexer.rs"
[[test]]
name = "parser"
path = "tests/parser.rs"