# 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 = "2024"
name = "gwt-worktree"
version = "0.1.3"
authors = ["Allison Durham"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Programmatic gwt-compatible git worktree management library"
homepage = "https://github.com/allisoneer/agentic_auxilary"
readme = "README.md"
keywords = [
    "git",
    "worktree",
    "gwt",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/allisoneer/agentic_auxilary"
resolver = "2"

[package.metadata.repo]
role = "lib"
family = "infra"

[package.metadata.repo.integrations]
mcp = false
logging = false
napi = false

[lib]
name = "gwt_worktree"
path = "src/lib.rs"

[[test]]
name = "gc"
path = "tests/gc.rs"

[[test]]
name = "remove"
path = "tests/remove.rs"

[[test]]
name = "repo_resolution"
path = "tests/repo_resolution.rs"

[[test]]
name = "smoke"
path = "tests/smoke.rs"

[[test]]
name = "switch_create"
path = "tests/switch_create.rs"

[[test]]
name = "worktree_list"
path = "tests/worktree_list.rs"

[dependencies.dirs]
version = "6"

[dependencies.git2]
version = "0.21"
features = [
    "vendored-openssl",
    "ssh",
    "https",
]

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.thiserror]
version = "2.0"

[dependencies.toml]
version = "0.8"

[dev-dependencies.filetime]
version = "0.2"

[dev-dependencies.tempfile]
version = "3"

[lints.clippy]
allow_attributes = "warn"
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clone_on_ref_ptr = "warn"
create_dir = "warn"
dbg_macro = "warn"
default_trait_access = "allow"
exit = "warn"
expect_used = "warn"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
option_if_let_else = "allow"
rest_pat_in_fully_bound_structs = "warn"
self_named_module_files = "warn"
significant_drop_tightening = "allow"
struct_excessive_bools = "allow"
suboptimal_flops = "allow"
too_many_lines = "allow"
undocumented_unsafe_blocks = "warn"
unused_result_ok = "warn"
unwrap_used = "warn"
wildcard_dependencies = "warn"

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
