boa_runtime 0.21.1

Example runtime for the Boa JavaScript engine.
Documentation
# 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"
rust-version = "1.88.0"
name = "boa_runtime"
version = "0.21.1"
authors = ["boa-dev"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Example runtime for the Boa JavaScript engine."
readme = false
keywords = [
    "javascript",
    "js",
    "runtime",
]
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]
all = [
    "default",
    "reqwest-blocking",
]
default = [
    "fetch",
    "url",
]
fetch = [
    "dep:either",
    "dep:http",
    "dep:serde_json",
    "boa_engine/either",
]
reqwest-blocking = [
    "dep:reqwest",
    "reqwest/blocking",
]
url = ["dep:url"]

[lib]
name = "boa_runtime"
path = "src/lib.rs"

[[test]]
name = "clone"
path = "tests/clone.rs"

[dependencies.boa_engine]
version = "~0.21.1"

[dependencies.boa_gc]
version = "~0.21.0"

[dependencies.bytemuck]
version = "1.24.0"
default-features = false

[dependencies.either]
version = "1.15.0"
optional = true

[dependencies.futures]
version = "0.3.31"

[dependencies.futures-lite]
version = "2.6.1"

[dependencies.http]
version = "1.3.1"
optional = true

[dependencies.reqwest]
version = "0.12.20"
optional = true

[dependencies.rustc-hash]
version = "2.1.1"
features = ["std"]
default-features = false

[dependencies.serde_json]
version = "1.0.145"
optional = true

[dependencies.url]
version = "2.5.7"
optional = true

[dev-dependencies.indoc]
version = "2.0.6"

[dev-dependencies.rstest]
version = "0.25.0"

[dev-dependencies.test-case]
version = "3.3.1"

[dev-dependencies.textwrap]
version = "0.16.2"

[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"