]>
Commit | Line | Data |
---|---|---|
0a29b90c FG |
1 | # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
2 | # | |
3 | # When uploading crates to the registry Cargo will automatically | |
4 | # "normalize" Cargo.toml files for maximal compatibility | |
5 | # with all versions of Cargo and also rewrite `path` dependencies | |
6 | # to registry (e.g., crates.io) dependencies. | |
7 | # | |
8 | # If you are reading this file be aware that the original Cargo.toml | |
9 | # will likely look very different (and much more reasonable). | |
10 | # See Cargo.toml.orig for the original contents. | |
11 | ||
12 | [package] | |
fe692bf9 | 13 | edition = "2021" |
781aab86 | 14 | rust-version = "1.65" |
0a29b90c | 15 | name = "gix-features" |
781aab86 | 16 | version = "0.35.0" |
0a29b90c FG |
17 | authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] |
18 | description = "A crate to integrate various capabilities using compile-time feature flags" | |
781aab86 | 19 | license = "MIT OR Apache-2.0" |
0a29b90c | 20 | repository = "https://github.com/Byron/gitoxide" |
0a29b90c FG |
21 | |
22 | [package.metadata.docs.rs] | |
23 | all-features = true | |
24 | features = ["document-features"] | |
25 | rustdoc-args = [ | |
26 | "--cfg", | |
27 | "docsrs", | |
28 | ] | |
29 | ||
30 | [lib] | |
31 | test = false | |
32 | doctest = false | |
33 | ||
34 | [[test]] | |
35 | name = "hash" | |
36 | path = "tests/hash.rs" | |
37 | required-features = ["rustsha1"] | |
38 | ||
39 | [[test]] | |
40 | name = "parallel" | |
41 | path = "tests/parallel_threaded.rs" | |
42 | required-features = [ | |
43 | "parallel", | |
44 | "rustsha1", | |
45 | ] | |
46 | ||
47 | [[test]] | |
48 | name = "multi-threaded" | |
49 | path = "tests/parallel_shared_threaded.rs" | |
50 | required-features = [ | |
51 | "parallel", | |
52 | "rustsha1", | |
53 | ] | |
54 | ||
55 | [[test]] | |
56 | name = "single-threaded" | |
57 | path = "tests/parallel_shared.rs" | |
58 | required-features = ["rustsha1"] | |
59 | ||
60 | [[test]] | |
61 | name = "pipe" | |
62 | path = "tests/pipe.rs" | |
63 | required-features = ["io-pipe"] | |
64 | ||
65 | [dependencies.bytes] | |
66 | version = "1.0.0" | |
67 | optional = true | |
68 | ||
69 | [dependencies.bytesize] | |
70 | version = "1.0.1" | |
71 | optional = true | |
72 | ||
73 | [dependencies.crc32fast] | |
74 | version = "1.2.1" | |
75 | optional = true | |
76 | ||
77 | [dependencies.crossbeam-channel] | |
78 | version = "0.5.0" | |
79 | optional = true | |
80 | ||
81 | [dependencies.document-features] | |
82 | version = "0.2.0" | |
83 | optional = true | |
84 | ||
85 | [dependencies.flate2] | |
49aad941 | 86 | version = "1.0.25" |
0a29b90c FG |
87 | optional = true |
88 | default-features = false | |
89 | ||
90 | [dependencies.gix-hash] | |
781aab86 FG |
91 | version = "^0.13.0" |
92 | ||
93 | [dependencies.gix-trace] | |
94 | version = "^0.1.3" | |
0a29b90c FG |
95 | |
96 | [dependencies.jwalk] | |
97 | version = "0.8.1" | |
98 | optional = true | |
99 | ||
100 | [dependencies.once_cell] | |
101 | version = "1.13.0" | |
102 | optional = true | |
103 | ||
104 | [dependencies.parking_lot] | |
105 | version = "0.12.0" | |
106 | optional = true | |
107 | default-features = false | |
108 | ||
109 | [dependencies.prodash] | |
781aab86 | 110 | version = "26.2.2" |
0a29b90c FG |
111 | optional = true |
112 | default-features = false | |
113 | ||
114 | [dependencies.sha1] | |
115 | version = "0.10.0" | |
116 | optional = true | |
117 | ||
118 | [dependencies.sha1_smol] | |
119 | version = "1.0.0" | |
120 | optional = true | |
121 | ||
122 | [dependencies.thiserror] | |
123 | version = "1.0.38" | |
124 | optional = true | |
125 | ||
126 | [dependencies.walkdir] | |
127 | version = "2.3.2" | |
128 | optional = true | |
129 | ||
130 | [dev-dependencies.bstr] | |
131 | version = "1.3.0" | |
132 | default-features = false | |
133 | ||
134 | [features] | |
135 | cache-efficiency-debug = [] | |
136 | crc32 = ["dep:crc32fast"] | |
137 | default = [] | |
138 | fast-sha1 = ["dep:sha1"] | |
139 | fs-walkdir-parallel = ["dep:jwalk"] | |
140 | io-pipe = ["dep:bytes"] | |
141 | once_cell = ["dep:once_cell"] | |
142 | parallel = [ | |
143 | "dep:crossbeam-channel", | |
144 | "dep:parking_lot", | |
145 | ] | |
781aab86 | 146 | progress = ["prodash"] |
0a29b90c FG |
147 | progress-unit-bytes = [ |
148 | "dep:bytesize", | |
149 | "prodash?/unit-bytes", | |
150 | ] | |
151 | progress-unit-human-numbers = ["prodash?/unit-human"] | |
152 | rustsha1 = ["dep:sha1_smol"] | |
781aab86 FG |
153 | tracing = ["gix-trace/tracing"] |
154 | tracing-detail = ["gix-trace/tracing-detail"] | |
0a29b90c FG |
155 | walkdir = ["dep:walkdir"] |
156 | zlib = [ | |
157 | "dep:flate2", | |
158 | "flate2?/rust_backend", | |
159 | "dep:thiserror", | |
160 | ] | |
161 | zlib-ng = [ | |
162 | "zlib", | |
163 | "flate2?/zlib-ng", | |
164 | ] | |
165 | zlib-ng-compat = [ | |
166 | "zlib", | |
167 | "flate2?/zlib-ng-compat", | |
168 | ] | |
169 | zlib-rust-backend = [ | |
170 | "zlib", | |
171 | "flate2?/rust_backend", | |
172 | ] | |
173 | zlib-stock = [ | |
174 | "zlib", | |
175 | "flate2?/zlib", | |
176 | ] | |
177 | ||
178 | [target."cfg(all(any(target_arch = \"aarch64\", target_arch = \"x86\", target_arch = \"x86_64\"), not(target_env = \"msvc\")))".dependencies.sha1] | |
179 | version = "0.10.0" | |
180 | features = ["asm"] | |
181 | optional = true | |
182 | ||
183 | [target."cfg(unix)".dependencies.libc] | |
184 | version = "0.2.119" |