-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
106 lines (78 loc) · 2.41 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
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
[package]
name = "pwned-check"
version = "0.1.0"
description = "Check an exported list of passwords against the offline password hash database of haveibeenpwned"
authors = ["games647 <[email protected]>"]
license = "Unlicense"
repository = "https://github.com/games647/pwned_check/"
keywords = ["pwned", "password"]
edition = "2018"
readme = "README.md"
[dependencies]
# Logging API - in this case used for macro verbose logging
log = { version = "0.4", features = ["std"] }
# Support for SIMD instructions
packed_simd_2 = "0.3"
# Platform features
libc = "0.2"
# Safe wrapper for memory mapping
memmap = "0.7"
# Progressbar
pbr = "1.0"
# Clear memory of clear text credentials
secstr = { version = "0.4", features = ["serde"] }
# Crypto-library
ring = "0.16"
# CSV file reading
csv = "1.1"
# Thread communication by channel - supports more things than std
crossbeam-channel = "0.5"
crossbeam-utils = "0.8"
# Get the number of logical CPU
num_cpus = "1.13"
# Serialization and deserialization library
serde = { version = "1", features = ["derive"] }
# Much faster implementation for converting byte to hex instead of using `.map(|x| format!("{:02x}", x))`
data-encoding = "2.3"
# Line reading in bytes
[dependencies.bstr]
version = "0.2"
# Disable unicode
default-features = false
features = ["std"]
# CLI argument parsing with custom selection of features similar to serde
[dependencies.clap]
version = "3.0.0-beta.2"
# Disable suggestions feature
default-features = false
features = ["color", "derive", "std", "cargo"]
# Dependencies for dev environments like tests and benchmarks
[dev-dependencies]
# Benchmarking tool, because #[bench] is a nightly only feature at the moment
# Source: https://doc.rust-lang.org/cargo/commands/cargo-bench.html
criterion = "0.3"
# Random generator
rand = "0.8"
# Parallel iterator
rayon = "1.5"
# Custom hasher implementation - This has the possible to hash multiple bytes at the same time, but doesn't provide
# DoS protection
fxhash = "0.2"
# Alternative to hashset/map for more memory local indicies
indexmap = "1.6"
# Benchmark names
# Name refer to the file name - the group inside them indicate the command parameter name
# cargo bench NAME - for example cargo bench SIMD
[[bench]]
name = "hashing"
# Use criterion harness instead of our own
harness = false
[[bench]]
name = "simd"
harness = false
[[bench]]
name = "find"
harness = false
[[bench]]
name = "memory"
harness = false