-
Notifications
You must be signed in to change notification settings - Fork 124
/
Cargo.toml
95 lines (83 loc) · 2.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[package]
name = "adblock"
version = "0.9.2"
authors = ["Anton Lazarev <[email protected]>", "Andrius Aucinas"]
edition = "2021"
description = "Native Rust module for Adblock Plus syntax (e.g. EasyList, EasyPrivacy) filter parsing and matching."
repository = "https://github.com/brave/adblock-rust/"
license = "MPL-2.0"
readme = "README.md"
exclude = [
"*.md",
".github/",
".gitignore",
".npmignore",
"data/",
"examples/",
"js/",
"package-lock.json",
"package.json",
"tests/",
]
[dependencies]
addr = { version = "0.15", default-features = false, features = ["psl"], optional = true }
url = "2.2"
percent-encoding = "2.1"
once_cell = "1.8"
regex = "1.5"
bitflags = "1.3"
itertools = "0.10"
idna = "0.2"
serde = { version = "1.0", features = ["derive", "rc"] }
seahash = "3" # seahash 4 introduces a breaking hash algorithm change
memchr = "2.4"
base64 = "0.13"
rmp-serde = "0.15"
lifeguard = { version = "^ 0.6.1", optional = true }
cssparser = { version = "0.28", optional = true }
selectors = { version = "0.23", optional = true }
serde_json = "1.0"
thiserror = "1.0"
[dev-dependencies]
criterion = "0.5"
csv = "1"
mock_instant = { version = "0.5" }
# By default, reqwest builds openssl from source, which fails on missing/incompatible system dependencies
reqwest = { version = "0.11", features = ["rustls-tls"], default-features = false }
futures = "0.3"
tokio = { version = "1.24", features = ["rt-multi-thread"] }
sha2 = "0.9"
[lib]
bench = false
[[bench]]
name = "bench_regex"
harness = false
[[bench]]
name = "bench_matching"
harness = false
[[bench]]
name = "bench_url"
harness = false
[[bench]]
name = "bench_rules"
harness = false
[[bench]]
name = "bench_redirect_performance"
harness = false
# Currently disabled, as cosmetic filter internals
# are no longer part of the crate's public API
#[[bench]]
#name = "bench_cosmetic_matching"
#harness = false
[features]
# If disabling default features, consider explicitly re-enabling the
# "embedded-domain-resolver" feature.
default = ["embedded-domain-resolver", "full-regex-handling", "object-pooling", "unsync-regex-caching"]
full-regex-handling = []
object-pooling = ["lifeguard"] # disables `Send` and `Sync` on `Engine`.
unsync-regex-caching = [] # disables `Send` and `Sync` on `Engine`.
regex-debug-info = []
css-validation = ["cssparser", "selectors"]
content-blocking = []
embedded-domain-resolver = ["addr"] # Requires setting an external domain resolver if disabled.
resource-assembler = []