[package]
edition = "2021"
rust-version = "1.88.0"
name = "patchcov"
version = "0.1.1"
authors = ["John Ky <newhoggy@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Patch coverage for git diffs: attribute lcov, llvm-cov, Cobertura, Go and JaCoCo reports to a diff and gate on it."
homepage = "https://github.com/rust-works/patchcov"
documentation = "https://docs.rs/patchcov"
readme = "README.md"
keywords = [
"coverage",
"git",
"diff",
"lcov",
"ci",
]
categories = [
"development-tools",
"command-line-utilities",
]
license = "BSD-3-Clause"
repository = "https://github.com/rust-works/patchcov"
[lib]
name = "patchcov"
path = "src/lib.rs"
[[bin]]
name = "patchcov"
path = "src/main.rs"
[[test]]
name = "diff_test"
path = "tests/diff_test.rs"
[[test]]
name = "lint_markers_test"
path = "tests/lint_markers_test.rs"
[dependencies.anyhow]
version = "1.0"
[dependencies.clap]
version = "4.6"
features = [
"derive",
"color",
]
[dependencies.git2]
version = "0.21"
[dependencies.globset]
version = "0.4"
[dependencies.quick-xml]
version = "0.41"
[dependencies.regex]
version = "1.12.3"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.serde_yaml]
version = "0.9"
[dependencies.yaml-rust-davvid]
version = "0.6"
[dev-dependencies.tempfile]
version = "3.27"
[lints.clippy]
assert_is_empty = "allow"
case_sensitive_file_extension_comparisons = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
expect_used = "warn"
format_push_string = "allow"
if_not_else = "allow"
items_after_statements = "allow"
large_stack_arrays = "allow"
large_stack_frames = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
option_if_let_else = "allow"
or_fun_call = "allow"
redundant_pub_crate = "allow"
ref_option = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
too_many_lines = "allow"
unnecessary_wraps = "allow"
unused_self = "allow"
unwrap_used = "warn"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "deny"