sarah 0.1.8

Count tokens, lines and function sizes per file to help AI agents decide what to refactor
# 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.97.1"
name = "sarah"
version = "0.1.8"
build = false
include = [
    "src/**/*.rs",
    "src/**/*.html",
    "Cargo.toml",
    "Cargo.lock",
    "README.md",
    "LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Count tokens, lines and function sizes per file to help AI agents decide what to refactor"
readme = "README.md"
keywords = [
    "tokens",
    "refactoring",
    "ai",
    "cli",
    "code-metrics",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/aiman2039/sarah"

[[bin]]
name = "sarah"
path = "src/main.rs"

[dependencies.anyhow]
version = "1.0.104"

[dependencies.bpe-openai]
version = "0.3.2"

[dependencies.clap]
version = "4.6.7"
features = ["derive"]

[dependencies.comfy-table]
version = "8.0.1"

[dependencies.derive_more]
version = "2"
features = [
    "display",
    "from_str",
]

[dependencies.dunce]
version = "1.0.5"

[dependencies.globset]
version = "0.4.20"

[dependencies.ignore]
version = "0.4.33"

[dependencies.rayon]
version = "1.12.0"

[dependencies.regex-automata]
version = "0.4.18"

[dependencies.rmcp]
version = "3.8.0"
features = [
    "server",
    "transport-io",
    "macros",
]

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

[dependencies.serde_json]
version = "1.0.154"

[dependencies.tokei]
version = "15.0.0"
default-features = false

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "io-std",
]

[dependencies.toml]
version = "0.9.12"

[dependencies.toml_edit]
version = "0.23.10"

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

[dependencies.tree-sitter-bash]
version = "0.25.1"

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

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

[dependencies.tree-sitter-cpp]
version = "0.23.4"

[dependencies.tree-sitter-elixir]
version = "0.3.5"

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

[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-lua]
version = "0.5.0"

[dependencies.tree-sitter-php]
version = "0.25.1"

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

[dependencies.tree-sitter-ruby]
version = "0.23.1"

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

[dependencies.tree-sitter-scala]
version = "0.26.3"

[dependencies.tree-sitter-swift]
version = "0.7.4"

[dependencies.tree-sitter-tags]
version = "0.27.1"

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

[dependencies.tree-sitter-zig]
version = "1.1.2"

[dev-dependencies.assert_cmd]
version = "2.2.2"

[dev-dependencies.cargo-husky]
version = "1.5.0"
features = ["user-hooks"]
default-features = false

[dev-dependencies.insta]
version = "1.49.0"
features = ["filters"]

[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
arithmetic_side_effects = "deny"
case_sensitive_file_extension_comparisons = "allow"
cast_precision_loss = "allow"
clone_on_ref_ptr = "deny"
dbg_macro = "deny"
default_trait_access = "allow"
doc_markdown = "allow"
expect_used = "deny"
fn_params_excessive_bools = "allow"
format_push_string = "allow"
indexing_slicing = "deny"
items_after_statements = "allow"
manual_let_else = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
no_effect_underscore_binding = "allow"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
redundant_closure_for_method_calls = "allow"
ref_option = "allow"
ref_option_ref = "allow"
result_large_err = "allow"
return_self_not_must_use = "allow"
self_named_module_files = "deny"
similar_names = "allow"
string_slice = "deny"
struct_excessive_bools = "allow"
todo = "deny"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
unimplemented = "deny"
uninlined_format_args = "deny"
unnecessary_wraps = "allow"
unused_async = "allow"
unwrap_used = "deny"
used_underscore_binding = "allow"
wildcard_imports = "allow"

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

[profile.release]
lto = "thin"
codegen-units = 1
strip = true