2024-01-17 18:21:21 +03:00
|
|
|
[package]
|
|
|
|
name = "gitbutler-git"
|
|
|
|
version = "0.0.0"
|
|
|
|
edition = "2021"
|
2024-03-27 19:35:41 +03:00
|
|
|
publish = false
|
2024-01-17 18:21:21 +03:00
|
|
|
|
2024-01-24 04:54:17 +03:00
|
|
|
[lib]
|
|
|
|
path = "src/lib.rs"
|
2024-03-27 19:49:51 +03:00
|
|
|
doctest = false
|
2024-01-24 04:54:17 +03:00
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "gitbutler-git-askpass"
|
2024-03-21 21:22:26 +03:00
|
|
|
path = "src/bin/askpass.rs"
|
2024-03-27 19:49:51 +03:00
|
|
|
test = false
|
2024-01-24 04:54:17 +03:00
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "gitbutler-git-setsid"
|
2024-03-21 21:22:26 +03:00
|
|
|
path = "src/bin/setsid.rs"
|
2024-03-27 19:49:51 +03:00
|
|
|
test = false
|
2024-01-24 04:54:17 +03:00
|
|
|
|
2024-01-17 18:21:21 +03:00
|
|
|
[features]
|
2024-03-19 10:25:57 +03:00
|
|
|
default = ["serde", "tokio"]
|
2024-01-17 18:21:21 +03:00
|
|
|
serde = ["dep:serde"]
|
2024-01-18 00:31:51 +03:00
|
|
|
tokio = ["dep:tokio"]
|
2024-04-23 19:34:07 +03:00
|
|
|
## a flag that is needed for integration tests that run this code to work.
|
2024-04-23 18:24:59 +03:00
|
|
|
test-askpass-path = []
|
|
|
|
|
2024-01-17 18:21:21 +03:00
|
|
|
[dependencies]
|
2024-02-07 14:55:23 +03:00
|
|
|
thiserror.workspace = true
|
2024-01-18 00:31:51 +03:00
|
|
|
serde = { workspace = true, optional = true }
|
2024-05-11 12:43:06 +03:00
|
|
|
tokio = { workspace = true, optional = true, features = [
|
|
|
|
"process",
|
|
|
|
"time",
|
|
|
|
"io-util",
|
|
|
|
"net",
|
|
|
|
"fs",
|
|
|
|
] }
|
|
|
|
uuid = { workspace = true, features = ["v4", "fast-rng"] }
|
2024-03-19 10:25:57 +03:00
|
|
|
rand = "0.8.5"
|
|
|
|
futures = "0.3.30"
|
2024-07-16 18:22:10 +03:00
|
|
|
sysinfo = "0.30.13"
|
2024-06-24 16:14:10 +03:00
|
|
|
gix-path = "0.10.7"
|
2024-01-24 04:54:17 +03:00
|
|
|
|
|
|
|
[target."cfg(unix)".dependencies]
|
2024-06-01 18:38:43 +03:00
|
|
|
nix = { version = "0.29.0", features = ["process", "socket", "user"] }
|
2024-03-21 21:22:26 +03:00
|
|
|
|
|
|
|
[target."cfg(windows)".dependencies]
|
2024-07-16 17:48:42 +03:00
|
|
|
windows = { version = "0.58.0", features = [
|
2024-06-19 15:08:10 +03:00
|
|
|
"Win32",
|
|
|
|
"Win32_System",
|
|
|
|
"Win32_System_Pipes",
|
|
|
|
"Win32_Storage",
|
|
|
|
"Win32_Storage_FileSystem",
|
|
|
|
"Win32_Security",
|
|
|
|
"Win32_System_IO",
|
2024-06-20 17:43:25 +03:00
|
|
|
"Win32_System_Threading",
|
2024-06-19 15:08:10 +03:00
|
|
|
] }
|
2024-04-18 14:39:32 +03:00
|
|
|
tokio = { workspace = true, optional = true, features = ["sync"] }
|
2024-03-25 20:01:43 +03:00
|
|
|
|
2024-06-21 23:49:19 +03:00
|
|
|
[dev-dependencies]
|
|
|
|
assert_cmd = "2.0.14"
|
|
|
|
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
|
|
|
|
|
2024-03-25 20:01:43 +03:00
|
|
|
[lints.clippy]
|
|
|
|
all = "deny"
|
|
|
|
perf = "deny"
|
|
|
|
correctness = "deny"
|