[package]
name = "patchcov"
version = "0.4.1"
edition = "2021"
authors = ["John Ky <newhoggy@gmail.com>"]
license = "BSD-3-Clause"
description = "Patch coverage for git diffs: attribute lcov, llvm-cov, Cobertura, Go and JaCoCo reports to a diff and gate on it."
repository = "https://github.com/rust-works/patchcov"
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"]
rust-version = "1.88.0"
[dependencies]
anyhow = "1.0"
clap = { version = "4.6", features = ["derive", "color"] }
git2 = "0.21"
globset = "0.4"
quick-xml = "0.41"
regex = "1.12.3"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
yaml-rust-davvid = "0.6"
[dev-dependencies]
pulldown-cmark = { version = "0.13", default-features = false }
tempfile = "3.27"
[lib]
name = "patchcov"
path = "src/lib.rs"
[[bin]]
name = "patchcov"
path = "src/main.rs"
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target }{ archive-suffix }"
bin-dir = "{ name }-v{ version }-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "tgz"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"
[lints.rust]
unsafe_code = "deny"
[lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
must_use_candidate = "allow"
module_name_repetitions = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
doc_markdown = "allow"
unused_self = "allow"
unnecessary_wraps = "allow"
needless_pass_by_value = "allow"
ref_option = "allow"
if_not_else = "allow"
similar_names = "allow"
too_many_lines = "allow"
format_push_string = "allow"
items_after_statements = "allow"
struct_field_names = "allow"
struct_excessive_bools = "allow"
assert_is_empty = "allow"
cast_precision_loss = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_sign_loss = "allow"
case_sensitive_file_extension_comparisons = "allow"
unwrap_used = "warn"
expect_used = "warn"
option_if_let_else = "allow"
redundant_pub_crate = "allow"
missing_const_for_fn = "allow"
or_fun_call = "allow"
significant_drop_tightening = "allow"
large_stack_frames = "allow"
large_stack_arrays = "allow"