[package]
edition = "2024"
rust-version = "1.94"
name = "big-code-analysis"
version = "2.4.0"
authors = [
"Calixte Denizet <cdenizet@mozilla.com>",
"Elijah Zupancic <elijah@zupancic.name>",
]
build = false
include = [
"/src/**/*",
"/Cargo.toml",
"/README.md",
"/LICENSE",
"/CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tool to compute and export code metrics"
documentation = "https://docs.rs/big-code-analysis/"
readme = "README.md"
keywords = ["metrics"]
license = "MPL-2.0"
repository = "https://github.com/dekobon/big-code-analysis"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
all-languages = [
"big-code-analysis-ast/all-languages",
"bash",
"c",
"cpp",
"csharp",
"elixir",
"go",
"groovy",
"irules",
"java",
"javascript",
"kotlin",
"lua",
"mozcpp",
"mozjs",
"objc",
"perl",
"php",
"python",
"ruby",
"rust",
"tcl",
"typescript",
]
bash = ["big-code-analysis-ast/bash"]
c = ["big-code-analysis-ast/c"]
c-family-helpers = ["big-code-analysis-ast/c-family-helpers"]
cpp = ["big-code-analysis-ast/cpp"]
csharp = ["big-code-analysis-ast/csharp"]
default = ["all-languages"]
elixir = ["big-code-analysis-ast/elixir"]
go = ["big-code-analysis-ast/go"]
groovy = ["big-code-analysis-ast/groovy"]
irules = ["big-code-analysis-ast/irules"]
java = ["big-code-analysis-ast/java"]
javascript = ["big-code-analysis-ast/javascript"]
kotlin = ["big-code-analysis-ast/kotlin"]
lua = ["big-code-analysis-ast/lua"]
mozcpp = ["big-code-analysis-ast/mozcpp"]
mozjs = ["big-code-analysis-ast/mozjs"]
objc = ["big-code-analysis-ast/objc"]
perl = ["big-code-analysis-ast/perl"]
php = ["big-code-analysis-ast/php"]
python = ["big-code-analysis-ast/python"]
ruby = ["big-code-analysis-ast/ruby"]
rust = ["big-code-analysis-ast/rust"]
tcl = ["big-code-analysis-ast/tcl"]
typescript = ["big-code-analysis-ast/typescript"]
vcs = ["vcs-git"]
vcs-git = [
"dep:gix",
"dep:bstr",
]
[lib]
name = "big_code_analysis"
path = "src/lib.rs"
[dependencies.big-code-analysis-ast]
version = "=2.4.0"
default-features = false
[dependencies.bstr]
version = "^1.12"
optional = true
[dependencies.crossbeam]
version = "^0.8"
features = ["crossbeam-channel"]
[dependencies.csv]
version = "=1.4.0"
[dependencies.gix]
version = "^0.89"
features = [
"max-performance-safe",
"blob-diff",
"mailmap",
"revision",
"blame",
"index",
"sha1",
]
optional = true
default-features = false
[dependencies.hmac]
version = "=0.13.0"
[dependencies.regex]
version = "^1.7"
[dependencies.serde]
version = "^1.0"
features = ["derive"]
[dependencies.serde_json]
version = "^1.0"
features = ["float_roundtrip"]
[dependencies.sha2]
version = "=0.11.1"
[dependencies.termcolor]
version = "^1.2"
[dependencies.tree-sitter]
version = "=0.26.13"
[dev-dependencies.big-code-analysis-ast]
version = "=2.4.0"
features = ["test-support"]
default-features = false
[dev-dependencies.ciborium]
version = "^0.2"
[dev-dependencies.globset]
version = "^0.4"
[dev-dependencies.insta]
version = "1.49.0"
features = [
"yaml",
"json",
"redactions",
]
[dev-dependencies.jsonschema]
version = "^0.59"
[dev-dependencies.quick-xml]
version = "^0.42"
[dev-dependencies.serde-saphyr]
version = "^2.0"
features = [
"serialize",
"deserialize",
]
default-features = false
[dev-dependencies.tempfile]
version = "^3.0"
[dev-dependencies.toml]
version = "^1.1"
[dev-dependencies.walkdir]
version = "^2.3"
[lints.clippy]
module_name_repetitions = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(chain_audit)"]
[profile.dev]
debug = "line-tables-only"
[profile.dev.package.insta]
opt-level = 3
[profile.dev.package.similar]
opt-level = 3
[profile.dev.package."*"]
opt-level = 1
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
debug = "line-tables-only"
debug-assertions = false
rpath = false
panic = "unwind"
overflow-checks = false
incremental = false