[package]name = "git-features"description = "A crate to integrate various capabilities using compile-time feature flags"repository = "https://github.com/Byron/git-oxide"version = "0.4.0"authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]license = "MIT/Apache-2.0"edition = "2018" [lib]doctest = falsetest = false [features]parallel = ["crossbeam-utils", "crossbeam-channel", "num_cpus"]fast-sha1 = ["fastsha1"]interrupt-handler = ["ctrlc"]disable-interrupts = [] [[test]]name = "parallel"path = "tests/parallel.rs"required-features = ["parallel"] [[test]]name = "hash"path = "tests/hash.rs"required-features = ["fast-sha1"] [[test]]name = "slow-hash"path = "tests/hash.rs"required-features = [] [dependencies]# 'parallel' featurecrossbeam-utils = { version = "0.7.2", optional = true }crossbeam-channel = { version = "0.4.2", optional = true }num_cpus = { version = "1.13.0", optional = true } # hashing and 'fast-sha1' featuresha1 = "0.6.0"crc = "1.8.1"fastsha1 = { package = "sha-1", version = "0.9.1", optional = true } # progressprodash = { version = "9.0.0", default-features = false, features = ["unit-bytes", "unit-human"] } # interrupt-handlerctrlc = { version = "3.1.4", optional = true, default-features = false, features = ['termination'] } [package.metadata.docs.rs]all-features = true
[package]
name = "git-features"
description = "A crate to integrate various capabilities using compile-time feature flags"
repository = "https://github.com/Byron/git-oxide"
version = "0.4.0"
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
license = "MIT/Apache-2.0"
edition = "2018"
[lib]
doctest = false
test = false
[features]
parallel = ["crossbeam-utils", "crossbeam-channel", "num_cpus"]
fast-sha1 = ["fastsha1"]
interrupt-handler = ["ctrlc"]
disable-interrupts = []
[[test]]
name = "parallel"
path = "tests/parallel.rs"
required-features = ["parallel"]
[[test]]
name = "hash"
path = "tests/hash.rs"
required-features = ["fast-sha1"]
[[test]]
name = "slow-hash"
path = "tests/hash.rs"
required-features = []
[dependencies]
# 'parallel' feature
crossbeam-utils = { version = "0.7.2", optional = true }
crossbeam-channel = { version = "0.4.2", optional = true }
num_cpus = { version = "1.13.0", optional = true }
# hashing and 'fast-sha1' feature
sha1 = "0.6.0"
crc = "1.8.1"
fastsha1 = { package = "sha-1", version = "0.9.1", optional = true }
# progress
prodash = { version = "9.0.0", default-features = false, features = ["unit-bytes", "unit-human"] }
# interrupt-handler
ctrlc = { version = "3.1.4", optional = true, default-features = false, features = ['termination'] }
[package.metadata.docs.rs]
all-features = true