-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
49 lines (43 loc) · 1.26 KB
/
Cargo.toml
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
[package]
name = "file_rw"
version = "0.6.6"
edition = "2021"
description = "A library for high-performance, memory-mapped file I/O utilities."
categories = ["filesystem", "rust-patterns"]
authors = ["Adam Killam <[email protected]>"]
license = "GPL-3.0-or-later"
readme = "README.md"
repository = "https://github.com/amkillam/file_rw"
[features]
default = ["search", "filepath", "sha3_256", "std", "alloc"]
hash = ["dep:digest"]
sha3_256 = ["dep:sha3", "hash"]
search = ["dep:memchr"]
filepath = ["dep:filepath"]
std = [
"memchr/std",
"digest/std",
"sha3/std",
] #Crate is not currently no_std compatible!
alloc = ["memchr/alloc", "digest/alloc"] #Crate itself uses alloc regardless!
[dependencies]
digest = { version = "0.10.7", features = [
"core-api",
], optional = true, default-features = false }
filepath = { version = "0.1.2", optional = true }
memchr = { version = "2.7.4", optional = true, default-features = false }
memmap2 = "0.9.4"
sha3 = { version = "0.10.8", optional = true, default-features = false, features = [
"oid",
] }
[dev-dependencies]
criterion = "0.5.1"
rand = "0.8.5"
tempfile = "3.10.1"
sha3 = "0.10.8"
hex-literal = "0.4.1"
[lib]
bench = false #disable libtest benchmarking, use Criterion instead
[[bench]]
name = "subset_search"
harness = false