[package]
edition = "2024"
rust-version = "1.91.0"
name = "boa_cli"
version = "0.22.0"
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_runtime/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.async-channel]
version = "2.5.0"
[dependencies.boa_engine]
version = "~0.22.0"
features = [
"deser",
"float16",
"flowgraph",
"temporal",
"trace",
"xsum",
]
default-features = false
[dependencies.boa_gc]
version = "~0.22.0"
[dependencies.boa_parser]
version = "~0.22.0"
[dependencies.boa_runtime]
version = "~0.22.0"
features = ["test262"]
[dependencies.clap]
version = "4.6.6"
features = ["derive"]
[dependencies.color-eyre]
version = "0.6.5"
[dependencies.colored]
version = "3.1.1"
[dependencies.cow-utils]
version = "0.1.3"
[dependencies.dhat]
version = "0.3.3"
optional = true
[dependencies.futures-concurrency]
version = "7.7.1"
[dependencies.phf]
version = "0.14.0"
features = ["macros"]
default-features = false
[dependencies.regex]
version = "1.13.1"
[dependencies.rustls]
version = "0.23.43"
features = ["ring"]
default-features = false
[dependencies.rustyline]
version = "18.0.1"
features = [
"derive",
"with-file-history",
]
default-features = false
[dependencies.serde_json]
version = "1.0.151"
[dependencies.smol]
version = "2.0.2"
[dependencies.unsend]
version = "0.2.1"
features = ["alloc"]
default-features = false
[target.'cfg(any(target_os = "windows", target_os = "macos"))'.dependencies.mimalloc-safe]
version = "0.1.65"
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"