[package]
edition = "2021"
name = "mantle-git"
version = "0.1.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CoW-accelerated git worktree hydration"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/pieter-ouwerkerk/mantle"
[features]
default = []
uniffi = ["dep:uniffi"]
[lib]
name = "mantle_git"
crate-type = [
"lib",
"staticlib",
"cdylib",
]
path = "src/lib.rs"
[[bin]]
name = "uniffi-bindgen"
path = "src/bin/uniffi-bindgen.rs"
required-features = ["uniffi"]
[[test]]
name = "branch_tests"
path = "tests/branch_tests.rs"
[[test]]
name = "cow_integration_tests"
path = "tests/cow_integration_tests.rs"
[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"
[[test]]
name = "remote_tests"
path = "tests/remote_tests.rs"
[[test]]
name = "rewrite_tests"
path = "tests/rewrite_tests.rs"
[[test]]
name = "write_tests"
path = "tests/write_tests.rs"
[dependencies.bstr]
version = "1.12"
[dependencies.chrono]
version = "0.4"
features = [
"std",
"clock",
]
default-features = false
[dependencies.git2]
version = "0.20"
features = [
"vendored-libgit2",
"ssh",
"vendored-openssl",
]
default-features = false
[dependencies.gix]
version = "0.79"
features = [
"max-performance-safe",
"revision",
"status",
"dirwalk",
"worktree-mutation",
"blob-diff",
"blame",
]
default-features = false
[dependencies.gix-ignore]
version = "0.19"
[dependencies.imara-diff]
version = "0.1"
[dependencies.libc]
version = "0.2"
[dependencies.parking_lot]
version = "0.12"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.uniffi]
version = "0.29"
features = ["cli"]
optional = true
[dev-dependencies.tempfile]
version = "3"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.missing_errors_doc]
level = "allow"
priority = 0
[lints.clippy.missing_panics_doc]
level = "allow"
priority = 0
[lints.clippy.module_name_repetitions]
level = "allow"
priority = 0
[lints.clippy.must_use_candidate]
level = "allow"
priority = 0
[lints.clippy.needless_pass_by_value]
level = "allow"
priority = 0
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "deny"