Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/gunnar

vendor/gix-parallel/Cargo.toml.orig

lints.workspace = true

[package]
name = "gix-parallel"
description = "Serial and parallel computation helpers and shared ownership primitives for gitoxide"
repository = "https://github.com/GitoxideLabs/gitoxide"
version = "0.50.1"
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
license = "MIT OR Apache-2.0"
edition = "2024"
rust-version = "1.88"
include = ["/src/**/*", "/LICENSE-*"]

[lib]
doctest = false
test = false

[features]
default = []
## Use scoped threads and channels to parallelize computations, and thread-safe primitives for shared ownership and mutation.
## Without this feature, computation helpers run serially and shared ownership uses `Rc` and `RefCell`.
parallel = ["dep:crossbeam-channel", "dep:parking_lot"]
## Provide `OnceCell` in synchronized or unsynchronized form, selected by `parallel`.
## The external crate is needed for `get_or_try_init()` at the minimum supported Rust version.
once_cell = ["dep:once_cell"]

[[test]]
name = "parallel"
path = "tests/parallel_threaded.rs"
required-features = ["parallel"]

[[test]]
name = "multi-threaded"
path = "tests/parallel_shared_threaded.rs"
required-features = ["parallel"]

[[test]]
name = "single-threaded"
path = "tests/parallel_shared.rs"

[dependencies]
gix-trace = { version = "^0.3.1", path = "../gix-trace" }
crossbeam-channel = { version = "0.5.15", optional = true }
parking_lot = { version = "0.12.4", default-features = false, optional = true }
once_cell = { version = "1.21.3", optional = true }
document-features = { version = "0.2.0", optional = true }

[package.metadata.docs.rs]
all-features = true
features = ["document-features"]

[dev-dependencies]
gix-testtools = { path = "../tests/tools", default-features = false, features = ["sha1"] }
gix-trace = { path = "../gix-trace", features = ["tracing"] }
insta = "1.46.3"
tracing-subscriber = { version = "0.3.22", default-features = false, features = ["registry"] }