rust-code-analysis-code-split 0.0.26-cs.0

Fork of mozilla/rust-code-analysis bumped to tree-sitter 0.26 for use by code-split. Computes complexity metrics (cyclomatic, cognitive, Halstead, MI, LOC).
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"
name = "rust-code-analysis-code-split"
version = "0.0.26-cs.0"
authors = [
    "Calixte Denizet <cdenizet@mozilla.com>",
    "Roman Fedorov <Roman.Fedorov@constructor.tech>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fork of mozilla/rust-code-analysis bumped to tree-sitter 0.26 for use by code-split. Computes complexity metrics (cyclomatic, cognitive, Halstead, MI, LOC)."
documentation = "https://docs.rs/rust-code-analysis-code-split/"
readme = "README.md"
keywords = ["metrics"]
license = "MPL-2.0"
repository = "https://github.com/ffedoroff/rust-code-analysis-code-split"

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

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

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

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

[dependencies.aho-corasick]
version = "^1.1"

[dependencies.crossbeam]
version = "^0.8"
features = ["crossbeam-channel"]

[dependencies.globset]
version = "^0.4"

[dependencies.num]
version = "^0.4"

[dependencies.num-derive]
version = "^0.4"

[dependencies.num-format]
version = "^0.4"

[dependencies.num-traits]
version = "^0.2"

[dependencies.petgraph]
version = "^0.8"

[dependencies.regex]
version = "^1.12"

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

[dependencies.termcolor]
version = "^1.4"

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

[dependencies.tree-sitter-ccomment]
version = "=0.20.3"
package = "tree-sitter-ccomment-code-split"

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

[dependencies.tree-sitter-javascript]
version = "=0.25.0"

[dependencies.tree-sitter-kotlin-ng]
version = "1.1.0"

[dependencies.tree-sitter-mozcpp]
version = "=0.20.4"
package = "tree-sitter-mozcpp-code-split"

[dependencies.tree-sitter-mozjs]
version = "=0.20.3"
package = "tree-sitter-mozjs-code-split"

[dependencies.tree-sitter-preproc]
version = "=0.20.3"
package = "tree-sitter-preproc-code-split"

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

[dependencies.tree-sitter-rust]
version = "=0.23.2"

[dependencies.tree-sitter-typescript]
version = "=0.23.2"

[dependencies.walkdir]
version = "^2.5"

[dev-dependencies.insta]
version = "1.47.2"
features = [
    "yaml",
    "json",
    "redactions",
]

[dev-dependencies.pretty_assertions]
version = "^1.4"

[profile.dev.package.insta]
opt-level = 3

[profile.dev.package.similar]
opt-level = 3

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
debug = 0
debug-assertions = false
rpath = false
panic = "unwind"
overflow-checks = false
incremental = false
strip = "debuginfo"