Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
85 lines (76 loc) · 2.97 KB
/
Copy pathCargo.toml
File metadata and controls
85 lines (76 loc) · 2.97 KB
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
[workspace]
# py/ is the Python extension module, which maturin builds (pyproject.toml); cargo commands
# at the root leave it out
members = [".", "py"]
default-members = ["."]
resolver = "2"
[workspace.package]
version = "6.0.0-alpha.1"
edition = "2021"
license = "MIT AND CC-BY-SA-4.0"
repository = "https://github.com/bee-san/pyWhat"
rust-version = "1.88"
[package]
name = "pywhat"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
authors = ["Bee <github@skerritt.blog>"]
description = "Identify anything: emails, IP addresses, API keys, cryptocurrency wallets, CTF flags and more"
homepage = "https://github.com/bee-san/pyWhat"
documentation = "https://docs.rs/pywhat"
readme = "README.md"
keywords = ["identify", "regex", "ctf", "security", "forensics"]
categories = ["command-line-utilities", "text-processing", "wasm"]
# The data stays where the Python package has it: pywhat/Data is the single
# source of truth for both.
include = ["/src", "/pywhat/Data/*.json", "/pywhat/Data/regexes/*.json", "/LICENSE", "/NOTICE", "/README.md"]
[features]
default = ["parallel", "files", "children", "mac-vendors"]
# Search the regexes of a large text, and compile them, on rayon's thread pool. Not on
# wasm32, which has no threads.
parallel = ["dep:rayon"]
# Files and directories (Identifier::identify_inputs), with the file signatures of
# pywhat/Data/file_signatures.json (CC BY-SA 4.0, see NOTICE). Not for wasm32.
files = ["dep:walkdir"]
# The tables that `Children` read from data files, for more detail in descriptions: the
# locations of phone numbers (phone_codes.json) and, with `mac-vendors`, the vendors of MAC
# addresses. Without it, these matches have the regex's own description.
children = []
# The vendors of MAC address prefixes in the descriptions of EUI-48 matches: 1.6 MB of data,
# which a web build may leave out.
mac-vendors = ["children"]
# The WebAssembly API (src/wasm.rs): cargo build --lib --target wasm32-unknown-unknown
# --no-default-features --features wasm
wasm = ["dep:wasm-bindgen"]
[dependencies]
regex = "1.13.1"
regex-syntax = "0.8.11"
fancy-regex = "0.20.0"
serde_json = { version = "1.0.154", features = ["preserve_order"] }
# Bitcoin's Base58Check checksums
sha2 = "0.11.1"
rayon = { version = "1.12.0", optional = true }
walkdir = { version = "2.5.0", optional = true }
wasm-bindgen = { version = "=0.2.130", optional = true }
[dev-dependencies]
serde_json = { version = "1.0.154", features = ["preserve_order"] }
# Only for benches/whole.rs, which compares the speed with lemmeknow, the crate that Ciphey
# used before.
lemmeknow = { version = "=0.8.0", default-features = false }
# tests/charset_only.rs builds the DFA of every regex
regex-automata = { version = "0.4.18", features = ["dfa-build"] }
[[example]]
name = "bench_file"
required-features = ["files"]
[[bench]]
name = "whole"
harness = false
[[bench]]
name = "false_positives"
harness = false
[profile.release]
lto = "thin"
codegen-units = 4