mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 06:22:28 +03:00
a46de60d10
This is accomplished by settig the test-feature when running `core` tests. There is also a safeguard to help assuring this doesn't land in production.
49 lines
1.1 KiB
TOML
49 lines
1.1 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"] }
|
|
rand = "0.8.5"
|
|
futures = "0.3.30"
|
|
sysinfo = "0.30.5"
|
|
|
|
[target."cfg(unix)".dependencies]
|
|
nix = { version = "0.28.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"
|