# 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" name = "pre-commit-rs" version = "0.0.5" authors = ["j178 "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "pre-commit implemeneted in Rust" homepage = "https://github.com/j178/pre-commit-rs" readme = "README.md" license-file = "LICENSE" repository = "https://github.com/j178/pre-commit-rs" [package.metadata.dist] dist = true [profile.bench] opt-level = 3 debug = 2 strip = false [profile.dist] lto = "thin" inherits = "release" [[bin]] name = "pre-commit" path = "src/main.rs" [[test]] name = "clean" path = "tests/clean.rs" [[test]] name = "hook_impl" path = "tests/hook_impl.rs" [[test]] name = "install" path = "tests/install.rs" [[test]] name = "languages" path = "tests/languages/main.rs" [[test]] name = "run" path = "tests/run.rs" [[test]] name = "sample_config" path = "tests/sample_config.rs" [[test]] name = "validate" path = "tests/validate.rs" [dependencies.anstream] version = "0.6.15" [dependencies.anyhow] version = "1.0.86" [dependencies.assert_cmd] version = "2.0.16" features = ["color"] [dependencies.axoupdater] version = "0.8.1" features = ["github_releases"] default-features = false [dependencies.clap] version = "4.5.16" features = [ "derive", "env", ] [dependencies.clap_complete] version = "4.5.37" [dependencies.ctrlc] version = "3.4.5" [dependencies.dunce] version = "1.0.5" [dependencies.fancy-regex] version = "0.14.0" [dependencies.fs-err] version = "2.11.0" [dependencies.fs2] version = "0.4.3" [dependencies.futures] version = "0.3.31" [dependencies.home] version = "0.5.9" [dependencies.http] version = "1.1.0" [dependencies.indicatif] version = "0.17.8" [dependencies.indoc] version = "2.0.5" [dependencies.itertools] version = "0.13.0" [dependencies.md5] version = "0.7.0" [dependencies.miette] version = "7.2.0" features = [ "owo-colors", "textwrap", ] [dependencies.owo-colors] version = "4.1.0" [dependencies.rand] version = "0.8.5" [dependencies.rayon] version = "1.10.0" [dependencies.rusqlite] version = "0.32.1" features = ["bundled"] [dependencies.serde] version = "1.0.210" features = ["derive"] [dependencies.serde_json] version = "1.0.132" [dependencies.serde_yaml] version = "0.9.34" [dependencies.shlex] version = "1.3.0" [dependencies.tempfile] version = "3.13.0" [dependencies.textwrap] version = "0.16.1" [dependencies.thiserror] version = "1.0.64" [dependencies.tokio] version = "1.40.0" features = [ "process", "rt", "sync", ] [dependencies.tracing] version = "0.1.40" [dependencies.tracing-subscriber] version = "0.3.18" features = ["env-filter"] [dependencies.unicode-width] version = "0.2.0" [dependencies.url] version = "2.5.2" features = ["serde"] [dependencies.which] version = "6.0.3" [dev-dependencies.assert_fs] version = "1.1.2" [dev-dependencies.etcetera] version = "0.8.0" [dev-dependencies.insta] version = "1.40.0" features = ["filters"] [dev-dependencies.insta-cmd] version = "0.6.0" [dev-dependencies.predicates] version = "3.1.2" [dev-dependencies.regex] version = "1.11.0" [features] default = ["docker"] docker = [] profiler = [ "dep:pprof", "profiler-flamegraph", ] profiler-flamegraph = ["pprof/flamegraph"] [target."cfg(unix)".dependencies.libc] version = "0.2.164" [target."cfg(unix)".dependencies.pprof] version = "0.14.0" optional = true [lints.clippy] char_lit_as_u8 = "allow" collapsible_else_if = "allow" collapsible_if = "allow" dbg_macro = "warn" empty_drop = "warn" empty_structs_with_brackets = "warn" exit = "warn" get_unwrap = "warn" implicit_hasher = "allow" map_unwrap_or = "allow" match_same_arms = "allow" missing_errors_doc = "allow" missing_panics_doc = "allow" module_name_repetitions = "allow" must_use_candidate = "allow" print_stderr = "warn" print_stdout = "warn" rc_buffer = "warn" rc_mutex = "warn" rest_pat_in_fully_bound_structs = "warn" similar_names = "allow" too_many_arguments = "allow" too_many_lines = "allow" used_underscore_binding = "allow" [lints.clippy.pedantic] level = "warn" priority = -2 [lints.rust] dead_code = "allow"