[package]
edition = "2024"
rust-version = "1.88.0"
name = "boa_cli"
version = "0.21.1"
authors = ["boa-dev"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "boa"
description = "Boa is a Javascript lexer, parser and compiler written in Rust. Currently, it has support for some of the language."
readme = "README.md"
keywords = [
"javascript",
"compiler",
"js",
"cli",
]
categories = ["command-line-utilities"]
license = "Unlicense OR MIT"
repository = "https://github.com/boa-dev/boa"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
[features]
default = [
"boa_engine/annex-b",
"boa_engine/experimental",
"boa_engine/intl_bundled",
"boa_engine/native-backtrace",
"fast-allocator",
"fetch",
]
dhat = ["dep:dhat"]
fast-allocator = [
"dep:mimalloc-safe",
"dep:jemallocator",
]
fetch = [
"boa_runtime/fetch",
"boa_runtime/reqwest-blocking",
]
[[bin]]
name = "boa"
path = "src/main.rs"
doc = false
[dependencies.boa_engine]
version = "~0.21.1"
features = [
"deser",
"flowgraph",
"trace",
]
[dependencies.boa_gc]
version = "~0.21.0"
[dependencies.boa_parser]
version = "~0.21.1"
[dependencies.boa_runtime]
version = "~0.21.1"
[dependencies.clap]
version = "4.5.48"
features = ["derive"]
[dependencies.color-eyre]
version = "0.6.3"
[dependencies.colored]
version = "3.0.0"
[dependencies.cow-utils]
version = "0.1.3"
[dependencies.dhat]
version = "0.3.3"
optional = true
[dependencies.futures-concurrency]
version = "7.6.3"
[dependencies.futures-lite]
version = "2.6.1"
[dependencies.phf]
version = "0.13.1"
features = ["macros"]
default-features = false
[dependencies.regex]
version = "1.12.1"
[dependencies.rustyline]
version = "15.0.0"
features = [
"derive",
"with-file-history",
]
default-features = false
[dependencies.serde_json]
version = "1.0.145"
[target.'cfg(target_os = "windows")'.dependencies.mimalloc-safe]
version = "0.1.54"
features = ["skip_collect_on_exit"]
optional = true
[target.x86_64-unknown-linux-gnu.dependencies.jemallocator]
version = "0.5.4"
optional = true
[lints.clippy]
dbg_macro = "warn"
print_stderr = "warn"
print_stdout = "warn"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[lints.rust]
macro_use_extern_crate = "warn"
meta_variable_misuse = "warn"
missing_abi = "warn"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
non_ascii_idents = "warn"
noop_method_call = "warn"
single_use_lifetimes = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_crate_dependencies = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"
warnings = "warn"
[lints.rust.future_incompatible]
level = "warn"
priority = -1
[lints.rust.let_underscore]
level = "warn"
priority = -1
[lints.rust.nonstandard_style]
level = "warn"
priority = -1
[lints.rust.rust_2018_compatibility]
level = "warn"
priority = -1
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
[lints.rust.rust_2021_compatibility]
level = "warn"
priority = -1
[lints.rust.unused]
level = "warn"
priority = -1
[lints.rustdoc]
bare_urls = "warn"
broken_intra_doc_links = "warn"
invalid_codeblock_attributes = "warn"
invalid_rust_codeblocks = "warn"
missing_crate_level_docs = "warn"
private_doc_tests = "warn"
private_intra_doc_links = "warn"