srgn 0.14.2

A grep-like tool which understands source code syntax and allows for manipulation in addition to search
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"
rust-version = "1.85.0"
name = "srgn"
version = "0.14.2"
authors = ["Alex Povel <rust@alexpovel.de>"]
build = "build.rs"
exclude = [
    "benches/",
    ".vscode/",
    ".github/",
    "release-please-config.json",
    "flake.nix",
    "flake.lock",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A grep-like tool which understands source code syntax and allows for manipulation in addition to search"
documentation = "https://docs.rs/srgn"
readme = "README.md"
keywords = [
    "grep",
    "grammars",
    "languages",
    "search",
    "manipulation",
]
categories = [
    "command-line-utilities",
    "development-tools",
    "localization",
    "text-editors",
    "text-processing",
]
license = "MIT"
repository = "https://github.com/alexpovel/srgn"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/{ name }-v{ version }/{ name }-{ target }{ archive-suffix }"

[features]
all = [
    "german",
    "symbols",
]
default = ["all"]
german = [
    "cached",
    "decompound",
    "fst",
]
symbols = []

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0.100"
features = ["backtrace"]

[dependencies.cached]
version = "0.56.0"
features = [
    "ahash",
    "proc_macro",
]
optional = true
default-features = false

[dependencies.clap]
version = "4.5.13"
features = [
    "derive",
    "env",
    "error-context",
    "string",
    "wrap_help",
]

[dependencies.clap_complete]
version = "4.5.13"

[dependencies.colored]
version = "3.0.0"

[dependencies.const_format]
version = "0.2.35"

[dependencies.decompound]
version = "0.3.0"
optional = true

[dependencies.env_logger]
version = "0.11.6"
features = [
    "auto-color",
    "humantime",
]
default-features = false

[dependencies.fancy-regex]
version = "0.16.2"

[dependencies.fst]
version = "0.4.7"
optional = true

[dependencies.glob]
version = "0.3.3"

[dependencies.grep-cli]
version = "0.1.12"

[dependencies.ignore]
version = "0.4.24"

[dependencies.itertools]
version = "0.14.0"

[dependencies.log]
version = "0.4.28"

[dependencies.pathdiff]
version = "0.2.3"

[dependencies.regex]
version = "1.12.2"

[dependencies.streaming-iterator]
version = "0.1.9"

[dependencies.tempfile]
version = "3.23.0"

[dependencies.titlecase]
version = "3.6.0"

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

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

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

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

[dependencies.tree-sitter-hcl]
version = "1.1.0"

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

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

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

[dependencies.unescape]
version = "0.1.0"

[dependencies.unicode-normalization]
version = "0.1.24"

[dependencies.unicode_categories]
version = "0.1.1"

[dependencies.unicode_titlecase]
version = "2.4.0"

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

[dev-dependencies.comrak]
version = "0.47.0"
default-features = false

[dev-dependencies.enum-iterator]
version = "2.3.0"

[dev-dependencies.insta]
version = "1.41.1"
features = ["yaml"]

[dev-dependencies.nom]
version = "8.0.0"

[dev-dependencies.predicates]
version = "3.1.3"
default-features = false

[dev-dependencies.pretty_assertions]
version = "1.4.1"

[dev-dependencies.proptest]
version = "1.9.0"

[dev-dependencies.rand]
version = "0.9.2"

[dev-dependencies.rand_regex]
version = "0.18.1"

[dev-dependencies.rstest]
version = "0.26.1"
default-features = false

[dev-dependencies.serde]
version = "1.0.228"
features = ["derive"]
default-features = false

[build-dependencies.decompound]
version = "0.3.0"

[build-dependencies.fst]
version = "0.4.7"

[build-dependencies.rayon]
version = "1.11.0"

[lints.clippy]
cargo = "warn"
complexity = "warn"
correctness = "warn"
nursery = "warn"
pedantic = "warn"
perf = "warn"
style = "warn"
suspicious = "warn"

[lints.clippy.module_name_repetitions]
level = "allow"
priority = 1

[lints.clippy.multiple_crate_versions]
level = "allow"
priority = 1

[lints.rust]
absolute_paths_not_starting_with_crate = "warn"
elided_lifetimes_in_paths = "warn"
explicit_outlives_requirements = "warn"
ffi_unwind_calls = "warn"
keyword-idents = "warn"
keyword_idents_2018 = "warn"
keyword_idents_2024 = "warn"
let_underscore_drop = "warn"
macro_use_extern_crate = "warn"
meta_variable_misuse = "warn"
missing_abi = "warn"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
missing_unsafe_on_extern = "allow"
non_ascii_idents = "warn"
non_local_definitions = "warn"
redundant_lifetimes = "warn"
rust_2021_incompatible_closure_captures = "warn"
rust_2021_incompatible_or_patterns = "warn"
rust_2021_prefixes_incompatible_syntax = "warn"
rust_2021_prelude_collisions = "warn"
single_use_lifetimes = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unit_bindings = "warn"
unnameable_types = "warn"
unreachable_pub = "allow"
unsafe_code = "warn"
unsafe_op_in_unsafe_fn = "warn"
unstable_features = "warn"
unused_crate_dependencies = "allow"
unused_extern_crates = "allow"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"
unused_results = "allow"
variant_size_differences = "warn"

[lints.rust.deprecated_safe]
level = "warn"
priority = -1

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

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