-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
83 lines (70 loc) · 2.55 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
[package]
name = "keyhunter"
version = "0.2.0"
description = "Check for leaked API keys and secrets on public websites"
license = "GPL-3.0"
repository = "https://github.com/DonIsaac/keyhunter"
keywords = ["security", "api-keys", "secrets", "scraping", "web"]
categories = ["command-line-utilities", "development-tools"]
edition = "2021"
exclude = ["/assets", "/benches/fixtures"]
[features]
default = ["build-binary"]
report = ["dep:owo-colors", "dep:serde_json"]
build-binary = ["report", "dep:clap", "dep:clap-verbosity-flag", "dep:pretty_env_logger"]
[lib]
name = "keyhunter"
[[bin]]
name = "keyhunter"
required-features = ["build-binary", "report"]
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(codspeed)', 'cfg(tarpaulin_include)'] }
[dependencies]
dashmap = { version = "6.0.1" }
ego-tree = { version = "0.6.2" }
index_vec = { version = "0.1.4" }
log = { version = "0.4.22", features = ["kv"] }
miette = { version = "7.2.0", features = ["fancy", "syntect-highlighter"] }
owo-colors = { version = "4.0.0", optional = true }
oxc = { version = "0.27.0" }
rand = { version = "0.8.5" }
rayon = { version = "1.10.0" }
regex = { version = "1.10.6", features = ["perf-dfa-full"] }
rustc-hash = { version = "2.0.0" }
scraper = { version = "0.20.0" }
serde = { version = "1.0.210", features = ["derive"] }
thiserror = { version = "1.0.63" }
tinyvec = { version = "1.8.0", features = ["alloc", "serde", "rustc_1_40"] }
toml = { version = "0.8.19" }
ureq = { version = "2.10.1", features = ["cookies"], default-features = true }
url = { version = "2.5.2" }
serde_json = { version = "1.0.128", optional = true }
# Binary dependencies
clap = { version = "4.5.17", features = ["derive", "color"], optional = true }
clap-verbosity-flag = { version = "2.2.1", optional = true }
pretty_env_logger = { version = "0.5.0", optional = true }
[dev-dependencies]
codspeed-criterion-compat = { version = "2.6.0" }
criterion = { version = "0.5.1" }
csv = { version = "1.3.0" }
# https://doc.rust-lang.org/cargo/reference/profiles.html
[profile.dev.package]
oxc.opt-level = 2
scraper.opt-level = 1
regex.opt-level = 3
[profile.dev-fast]
inherits = "dev"
opt-level = 1
[profile.release]
lto = "fat"
codegen-units = 1
[profile.bench]
lto = "thin"
codegen-units = 8
strip = "debuginfo"
[[bench]]
name = "key_extraction"
harness = false
[[bench]]
name = "walking"
harness = false