[package] name = "gitbutler-git" version = "0.0.0" edition = "2021" [lib] path = "src/lib.rs" [[bin]] name = "gitbutler-git-askpass" path = "src/backend/cli/bin/askpass.rs" required-features = ["cli"] [[bin]] name = "gitbutler-git-setsid" path = "src/backend/cli/bin/setsid.rs" required-features = ["cli"] [features] default = ["git2", "cli", "serde", "tokio"] cli = ["std", "dep:nix", "dep:rand", "dep:futures", "dep:sysinfo"] git2 = ["dep:git2", "std"] serde = ["dep:serde"] std = ["dep:thiserror"] tokio = ["dep:tokio"] [dependencies] git2 = { workspace = true, optional = true } thiserror = { workspace = true, optional = true } serde = { workspace = true, optional = true } tokio = { workspace = true, optional = true, features = ["process", "rt", "process", "time", "io-util", "net", "fs"]} rand = { version = "0.8.5", optional = true } futures = { version = "0.3.30", optional = true } sysinfo = { version = "0.30.5", optional = true } [dev-dependencies] tokio = { workspace = true, features = ["rt-multi-thread"]} [target."cfg(unix)".dependencies] nix = { version = "0.27.1", optional = true, features = ["process", "socket", "user"] }