-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
72 lines (63 loc) · 1.46 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
[package]
name = "dom-content-extraction"
version = "0.3.9"
description = "Rust implementation of Content extraction via text density paper"
license = "MPL-2.0"
documentation = "https://docs.rs/dom-content-extraction/latest/dom_content_extraction/"
homepage = "https://github.com/oiwn/dom-content-extraction"
repository = "https://github.com/oiwn/dom-content-extraction"
readme = "README.md"
keywords = ["dom-text-density"]
categories = ["data-structures", "web-programming", "text-processing"]
exclude = [
"tmp/*",
"benches/*",
"html/*",
".github/*",
".gitignore",
".tmuxp.yaml",
"notes.org"
]
edition = "2021"
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
strip = true
panic = "abort"
[dependencies]
# library
ego-tree = "0.10"
scraper = "0.22"
thiserror = "2"
# binary
clap = { version = "4.5", features = ["derive"], optional = true }
reqwest = { version = "0.12", features = ["blocking"], optional = true }
tempfile = { version = "3.16", optional = true }
url = { version = "2.5", optional = true }
anyhow = { version = "1.0", optional = true }
[dev-dependencies]
criterion = "0.5"
zip = "2.2"
clap = { version = "4.5", features = ["derive"] }
anyhow = "1"
regex = "1"
rayon = "1"
[[bench]]
name = "simple"
harness = false
[lib]
doctest = false
[[bin]]
name = "dce"
path = "src/main.rs"
required-features = ["cli"]
[features]
default = ["cli"]
cli = [
"dep:clap",
"dep:reqwest",
"dep:tempfile",
"dep:url",
"dep:anyhow"
]