# 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_analysis"
version = "0.6.7"
authors = ["Ifiok Jr. <ifiokotung@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Ecosystem-specific semantic change analysis for monochange changesets"
homepage = "https://github.com/monochange/monochange"
readme = "readme.md"
keywords = [
    "analysis",
    "changesets",
    "semantic",
    "diff",
    "monorepo",
]
categories = ["development-tools"]
license = "Unlicense"
repository = "https://github.com/monochange/monochange"
resolver = "2"

[features]
cargo = ["monochange_cargo"]
dart = ["monochange_dart"]
default = [
    "cargo",
    "npm",
    "deno",
    "dart",
]
deno = ["monochange_deno"]
npm = ["monochange_npm"]

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

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

[dependencies.monochange_cargo]
version = "0.6.7"
optional = true

[dependencies.monochange_config]
version = "0.6.7"

[dependencies.monochange_core]
version = "0.6.7"

[dependencies.monochange_dart]
version = "0.6.7"
optional = true

[dependencies.monochange_deno]
version = "0.6.7"
optional = true

[dependencies.monochange_npm]
version = "0.6.7"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]
default-features = true

[dependencies.thiserror]
version = "2.0.18"
default-features = true

[dependencies.tracing]
version = "0.1"
features = ["attributes"]
default-features = true

[dependencies.walkdir]
version = "2"
default-features = true

[dev-dependencies.insta]
version = "1"
features = [
    "filters",
    "json",
]
default-features = true

[dev-dependencies.monochange_test_helpers]
version = "0.6.7"

[dev-dependencies.serde_json]
version = "1"
default-features = true

[dev-dependencies.temp-env]
version = "0.3"
features = ["async_closure"]
default-features = true

[dev-dependencies.tempfile]
version = "3"
default-features = true

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "rt-multi-thread",
    "macros",
    "process",
    "fs",
    "time",
    "sync",
]
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
