# 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.80.0" name = "srgn" version = "0.13.4" authors = ["Alex Povel "] build = "build.rs" exclude = ["benches/"] 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 OR Apache-2.0" repository = "https://github.com/alexpovel/srgn" [package.metadata.binstall] pkg-url = "{ repo }/releases/download/{ name }-v{ version }/{ name }-{ target }{ archive-suffix }" [profile.dev.package.insta] opt-level = 3 [profile.dev.package.similar] opt-level = 3 [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.92" features = ["backtrace"] [dependencies.cached] version = "0.53.1" features = [ "ahash", "proc_macro", ] optional = true default-features = false [dependencies.clap] version = "4.5.13" features = [ "derive", "env", "string", "wrap_help", ] [dependencies.clap_complete] version = "4.5.13" [dependencies.colored] version = "2.1.0" [dependencies.const_format] version = "0.2.33" [dependencies.decompound] version = "0.3.0" optional = true [dependencies.env_logger] version = "0.11.5" features = [ "auto-color", "humantime", ] default-features = false [dependencies.fancy-regex] version = "0.14.0" [dependencies.fst] version = "0.4.7" optional = true [dependencies.glob] version = "0.3.1" [dependencies.grep-cli] version = "0.1.11" [dependencies.ignore] version = "0.4.23" [dependencies.itertools] version = "0.13.0" [dependencies.log] version = "0.4.22" [dependencies.pathdiff] version = "0.2.1" [dependencies.tempfile] version = "3.13.0" [dependencies.titlecase] version = "3.3.0" [dependencies.tree-sitter] version = "0.23.0" [dependencies.tree-sitter-c] version = "0.23.1" [dependencies.tree-sitter-c-sharp] version = "0.23.0" [dependencies.tree-sitter-go] version = "0.23.1" [dependencies.tree-sitter-python] version = "0.23.2" [dependencies.tree-sitter-rust] version = "0.23.0" [dependencies.tree-sitter-typescript] version = "0.23.0" [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.0.16" [dev-dependencies.comrak] version = "0.28.0" default-features = false [dev-dependencies.enum-iterator] version = "2.1.0" [dev-dependencies.insta] version = "1.41.1" features = ["yaml"] [dev-dependencies.nom] version = "7.1.3" [dev-dependencies.predicates] version = "3.1.2" default-features = false [dev-dependencies.pretty_assertions] version = "1.4.1" [dev-dependencies.proptest] version = "1.5.0" [dev-dependencies.rand] version = "0.8.5" [dev-dependencies.rand_regex] version = "0.17.0" [dev-dependencies.rstest] version = "0.23.0" default-features = false [dev-dependencies.serde] version = "1.0.214" features = ["derive"] default-features = false [build-dependencies.cc] version = "1.1.31" features = ["parallel"] [build-dependencies.decompound] version = "0.3.0" [build-dependencies.fst] version = "0.4.7" [build-dependencies.rayon] version = "1.10.0" [features] all = [ "german", "symbols", ] default = ["all"] german = [ "cached", "decompound", "fst", ] symbols = [] [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