hotspots-core 2.0.0

Core library for finding the riskiest code by combining complexity with git change history (Local Risk Score) across TypeScript, JavaScript, Go, Python, Rust, Java, C#, and C
# 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 = "2021"
rust-version = "1.75"
name = "hotspots-core"
version = "2.0.0"
authors = ["Stephen Collins"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core library for finding the riskiest code by combining complexity with git change history (Local Risk Score) across TypeScript, JavaScript, Go, Python, Rust, Java, C#, and C"
homepage = "https://hotspots.dev"
readme = "README.md"
keywords = [
    "polyglot",
    "static-analysis",
    "complexity",
    "code-quality",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/Stephen-Collins-tech/hotspots"

[lib]
name = "hotspots_core"
path = "src/lib.rs"
doctest = false

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.csv]
version = "1.3"

[dependencies.globset]
version = "0.4"

[dependencies.linfa]
version = "0.8.1"

[dependencies.linfa-ensemble]
version = "0.8.1"

[dependencies.linfa-linear]
version = "0.8.1"

[dependencies.linfa-trees]
version = "0.8.1"

[dependencies.ndarray]
version = "0.16"

[dependencies.owo-colors]
version = "4"

[dependencies.proc-macro2]
version = "1.0"
features = ["span-locations"]

[dependencies.quote]
version = "1.0"

[dependencies.rand]
version = "0.8"
features = ["small_rng"]

[dependencies.rayon]
version = "1"

[dependencies.regex]
version = "1.10"

[dependencies.rusqlite]
version = "0.32"
features = ["bundled"]

[dependencies.rust_xlsxwriter]
version = "0.79"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.swc_common]
version = "18.0.1"

[dependencies.swc_ecma_ast]
version = "20.0.0"

[dependencies.swc_ecma_parser]
version = "33.0.0"

[dependencies.swc_ecma_visit]
version = "20.0.0"

[dependencies.syn]
version = "2.0"
features = [
    "full",
    "extra-traits",
]

[dependencies.tree-sitter]
version = "0.25"

[dependencies.tree-sitter-c]
version = "0.24.2"

[dependencies.tree-sitter-c-sharp]
version = "0.23"

[dependencies.tree-sitter-go]
version = "0.25"

[dependencies.tree-sitter-java]
version = "0.23"

[dependencies.tree-sitter-python]
version = "0.23"

[dependencies.zstd]
version = "0.13"

[dev-dependencies.tempfile]
version = "3.8"

[dev-dependencies.walkdir]
version = "2.4"

[lints.clippy]
complexity = "warn"
correctness = "warn"
perf = "warn"
style = "warn"