gitbutler/crates/gitbutler-git/Cargo.toml
Sebastian Thiel cd20bbb859
Use gitoxide to more reliably find the Git executable on Windows. (#1419)
Previously, Windows installations that didn't put git.exe into their PATH
were unable to have their executable found.

`gitoxide` has the same problem to solve and can now 'find harder' in
known installation locations.

This capability is now used here, instead of hard-coding `git.exe` or `git`.
2024-06-24 16:03:15 +02:00

57 lines
1.2 KiB
TOML

[package]
name = "gitbutler-git"
version = "0.0.0"
edition = "2021"
publish = false
[lib]
path = "src/lib.rs"
doctest = false
[[bin]]
name = "gitbutler-git-askpass"
path = "src/bin/askpass.rs"
test = false
[[bin]]
name = "gitbutler-git-setsid"
path = "src/bin/setsid.rs"
test = false
[features]
default = ["serde", "tokio"]
serde = ["dep:serde"]
tokio = ["dep:tokio"]
## a flag that is needed for integration tests that run this code to work.
test-askpass-path = []
[dependencies]
thiserror.workspace = true
serde = { workspace = true, optional = true }
tokio = { workspace = true, optional = true, features = [
"process",
"time",
"io-util",
"net",
"fs",
] }
uuid = { workspace = true, features = ["v4", "fast-rng"] }
rand = "0.8.5"
futures = "0.3.30"
sysinfo = "0.30.12"
gix-path = "0.10.7"
[target."cfg(unix)".dependencies]
nix = { version = "0.29.0", features = ["process", "socket", "user"] }
[target."cfg(windows)".dependencies]
winapi = { version = "0.3.9", features = ["winbase", "namedpipeapi"] }
tokio = { workspace = true, optional = true, features = ["sync"] }
# synchronous named pipes for the askpass utility
windows-named-pipe = "0.1.0"
[lints.clippy]
all = "deny"
perf = "deny"
correctness = "deny"