1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
= true
[]
= "gix-features"
= "A crate to integrate various capabilities using compile-time feature flags"
= "https://github.com/GitoxideLabs/gitoxide"
= "0.39.1"
= ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
= "MIT OR Apache-2.0"
= "2021"
= "1.65"
= ["src/**/*", "LICENSE-*"]
[]
= false
= false
[]
= []
## Provide traits and utilities for providing progress information. These can then be rendered
## using facilities of the `prodash` crate.
= ["prodash"]
## Provide human-readable numbers as well as easier to read byte units for progress bars.
= ["prodash?/unit-human"]
## Provide human readable byte units for progress bars.
= ["dep:bytesize", "prodash?/unit-bytes"]
## If set, walkdir iterators will be multi-threaded.
= ["dep:jwalk", "dep:gix-utils"]
## Provide utilities suitable for working with the `std::fs::read_dir()`.
= ["dep:gix-utils"]
## Implement `tracing` with `tracing-core`, which provides applications with valuable performance details if they opt-in to it.
##
## Note that this may have overhead as well, thus instrumentations should be used stategically, only providing coarse tracing by default and adding details
## only where needed while marking them with the appropriate level.
= ["gix-trace/tracing"]
## If enabled, detailed tracing is also emitted, which can greatly increase insights but at a cost.
= ["gix-trace/tracing-detail"]
## Use scoped threads and channels to parallelize common workloads on multiple objects. If enabled, it is used everywhere
## where it makes sense.
## As caches are likely to be used and instantiated per thread, more memory will be used on top of the costs for threads.
## The `threading` module will contain thread-safe primitives for shared ownership and mutation, otherwise these will be their single threaded counterparts.
## This way, single-threaded applications don't have to pay for threaded primitives.
= ["dep:crossbeam-channel",
"dep:parking_lot"]
## If enabled, OnceCell will be made available for interior mutability either in sync or unsync forms.
= ["dep:once_cell"]
## Makes facilities of the `walkdir` crate partially available.
## In conjunction with the **parallel** feature, directory walking will be parallel instead behind a compatible interface.
= ["dep:walkdir", "dep:gix-utils"]
#* an in-memory unidirectional pipe using `bytes` as efficient transfer mechanism.
= ["dep:bytes"]
## provide a proven and fast `crc32` implementation.
= ["dep:crc32fast"]
#! ### Mutually Exclusive ZLIB
## Enable the usage of zlib related utilities to compress or decompress data.
## The base `zlib` feature uses the `flate2` Rust crate; the other mutually exclusive features select the `flate2 backend.
## Note that a competitive Zlib implementation is critical to `gitoxide's` object database performance.
## Enabling this without enabling one of the other features below will use a low-performance pure-Rust backend.
= ["dep:flate2", "flate2?/rust_backend", "dep:thiserror"]
## Use the C-based zlib-ng backend, which can compress and decompress significantly faster.
= ["zlib", "flate2?/zlib-ng"]
## Use zlib-ng via its zlib-compat API. Useful if you already need zlib for C
## code elsewhere in your dependencies. Otherwise, use zlib-ng.
= ["zlib", "flate2?/zlib-ng-compat"]
## Use a slower C-based backend which can compress and decompress significantly faster than the rust version.
## Unlike `zlib-ng-compat`, this allows using dynamic linking with system `zlib` libraries and doesn't require cmake.
= ["zlib", "flate2?/zlib"]
## Pure Rust backend, available for completeness even though it's the default
## if neither of the above options are set. Low performance, but pure Rust, so it
## may build in environments where other backends don't.
= ["zlib", "flate2?/rust_backend"]
#! ### Mutually Exclusive SHA1
## A fast SHA1 implementation is critical to `gitoxide's` object database performance
## A multi-crate implementation that can use hardware acceleration, thus bearing the potential for up to 2Gb/s throughput on
## CPUs that support it, like AMD Ryzen or Intel Core i3, as well as Apple Silicon like M1.
## Takes precedence over `rustsha1` if both are specified.
= ["dep:sha1"]
## A standard and well performing pure Rust implementation of Sha1. Will significantly slow down various git operations.
= ["dep:sha1_smol"]
#! ### Other
## Count cache hits and misses and print that debug information on drop.
## Caches implement this by default, which costs nothing unless this feature is enabled
= []
[[]]
= "hash"
= "tests/hash.rs"
= ["rustsha1"]
[[]]
= "parallel"
= "tests/parallel_threaded.rs"
= ["parallel", "rustsha1"]
[[]]
= "multi-threaded"
= "tests/parallel_shared_threaded.rs"
= ["parallel", "rustsha1"]
[[]]
= "single-threaded"
= "tests/parallel_shared.rs"
= ["rustsha1"]
[[]]
= "pipe"
= "tests/pipe.rs"
= ["io-pipe"]
[]
= { = "^0.15.1", = "../gix-hash" }
= { = "^0.1.11", = "../gix-trace" }
# for walkdir
= { = "^0.1.13", = "../gix-utils", = true }
# 'parallel' feature
= { = "0.5.0", = true }
= { = "0.12.0", = false, = true }
= { = "0.8.1", = true }
= { = "2.3.2", = true } # used when parallel is off
# hashing and 'fast-sha1' feature
= { = "1.0.0", = true }
= { = "1.2.1", = true }
= { = "0.10.0", = true }
# progress
= { = "29.0.0", = true }
= { = "1.0.1", = true }
# pipe
= { = "1.0.0", = true }
# zlib module
= { = "1.0.33", = true, = false }
= { = "2.0.0", = true }
= { = "1.13.0", = true }
= { = "0.2.0", = true }
[]
= { = "0.2.119" }
[]
= { = "1.3.0", = false }
# Assembly doesn't yet compile on MSVC on windows, but does on GNU, see https://github.com/RustCrypto/asm-hashes/issues/17
# At this time, only aarch64, x86 and x86_64 are supported.
[]
= { = "0.10.0", = true, = ["asm"] }
[]
= true
= ["document-features"]