# 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.90.0"
name = "monochange_ecmascript"
version = "0.6.6"
build = false
include = [
    "src/**/*.rs",
    "Cargo.toml",
    "readme.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared ECMAScript semantic analysis helpers for monochange adapters"
documentation = "https://docs.rs/monochange_ecmascript"
readme = "readme.md"
keywords = [
    "javascript",
    "typescript",
    "ecmascript",
    "analysis",
    "monorepo",
]
categories = ["development-tools"]
license = "Unlicense"
repository = "https://github.com/monochange/monochange"
resolver = "2"

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

[dependencies.monochange_core]
version = "0.6.6"

[dependencies.oxc_allocator]
version = "0.131.0"
default-features = true

[dependencies.oxc_ast]
version = "0.131.0"
default-features = true

[dependencies.oxc_parser]
version = "0.131.0"
default-features = true

[dependencies.oxc_span]
version = "0.131.0"
default-features = true

[lints.clippy]
blocks_in_conditions = "allow"
cargo_common_metadata = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
expl_impl_clone_on_copy = "allow"
indexing_slicing = "deny"
items_after_statements = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
no_effect_underscore_binding = "allow"
tabs-in-doc-comments = "allow"
too_many_lines = "allow"
wildcard_dependencies = "deny"
wildcard_imports = "allow"

[lints.clippy.complexity]
level = "warn"
priority = -1

[lints.clippy.correctness]
level = "deny"
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]
edition_2024_expr_fragment_specifier = "allow"
unsafe_code = "deny"
unstable_features = "deny"
unused_extern_crates = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"

[lints.rust.rust_2021_compatibility]
level = "warn"
priority = -1

[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1
