[package]
edition = "2024"
rust-version = "1.96.0"
name = "vcs-modify-guard"
version = "0.1.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A library for checking whether it is safe to modify files in a VCS worktree."
readme = "README.md"
keywords = [
"dirty",
"git",
"source-control",
"vcs",
"version-control",
]
categories = ["command-line-interface"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/gifnksm/vcs-modify-guard"
[package.metadata.cargo-sync-rdme.badge]
style = "flat-square"
[package.metadata.cargo-sync-rdme.badge.badges]
maintenance = true
crates-io = true
docs-rs = true
rust-version = true
codecov = true
[package.metadata.cargo-sync-rdme.badge.badges.license]
link = "#license"
[package.metadata.cargo-sync-rdme.badge.badges.github-actions]
workflows = "ci.yml"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
cargo-args = [
"-Zunstable-options",
"-Zrustdoc-scrape-examples",
]
[badges.maintenance]
status = "actively-developed"
[features]
default = ["git-default"]
git-cli = []
git-default = ["git-gix"]
git-gix = ["dep:gix"]
git-libgit2 = ["dep:git2"]
vendored-libgit2 = ["git2?/vendored-libgit2"]
[lib]
name = "vcs_modify_guard"
path = "src/lib.rs"
[[example]]
name = "allow_options"
path = "examples/allow_options.rs"
[[example]]
name = "repository"
path = "examples/repository.rs"
[dependencies.dunce]
version = "1.0.5"
[dependencies.git2]
version = "0.21.0"
optional = true
[dependencies.gix]
version = "0.86.0"
features = [
"sha1",
"status",
]
optional = true
default-features = false
[dependencies.snafu]
version = "0.9.2"
[dev-dependencies.assert_cmd]
version = "2.2.2"
features = ["color"]
[dev-dependencies.assert_fs]
version = "1.1.4"
features = ["color"]
[dev-dependencies.clap]
version = "4.6.5"
features = ["derive"]
[dev-dependencies.rstest]
version = "0.26.1"
default-features = false
[dev-dependencies.rstest_reuse]
version = "0.7.0"
[lints.clippy]
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
assertions_on_result_states = "warn"
clone_on_ref_ptr = "warn"
doc_paragraphs_missing_punctuation = "warn"
empty_drop = "warn"
empty_enum_variants_with_brackets = "warn"
empty_structs_with_brackets = "warn"
error_impl_error = "warn"
exhaustive_enums = "warn"
exhaustive_structs = "warn"
exit = "warn"
expect_used = "warn"
filetype_is_file = "warn"
get_unwrap = "warn"
if_then_some_else_none = "warn"
impl_trait_in_params = "warn"
map_err_ignore = "warn"
map_with_unused_argument_over_ranges = "warn"
missing_assert_message = "warn"
missing_inline_in_public_items = "warn"
multiple_crate_versions = "allow"
mutex_atomic = "warn"
mutex_integer = "warn"
needless_raw_strings = "warn"
non_zero_suggestions = "warn"
panic = "warn"
pathbuf_init_then_push = "warn"
pointer_format = "warn"
pub_without_shorthand = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_test_prefix = "warn"
redundant_type_annotations = "warn"
renamed_function_params = "warn"
rest_pat_in_fully_bound_structs = "warn"
return_and_then = "warn"
self_named_module_files = "warn"
str_to_string = "warn"
string_add = "warn"
string_lit_chars_any = "warn"
string_slice = "warn"
suspicious_xor_used_as_pow = "warn"
tests_outside_test_module = "warn"
todo = "warn"
try_err = "warn"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unnecessary_self_imports = "warn"
unseparated_literal_suffix = "warn"
unused_result_ok = "warn"
unused_trait_names = "warn"
unwrap_used = "warn"
verbose_file_reads = "warn"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
elided_lifetimes_in_paths = "warn"
explicit_outlives_requirements = "warn"
keyword_idents = "warn"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
missing_unsafe_on_extern = "warn"
redundant_imports = "warn"
single_use_lifetimes = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "warn"
unsafe_attr_outside_unsafe = "warn"
unused_lifetimes = "warn"
unused_qualifications = "warn"
[lints.rustdoc]
missing_crate_level_docs = "warn"
private_doc_tests = "warn"
unescaped_backticks = "warn"