forked from brave/adblock-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
84 lines (70 loc) · 1.81 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
[package]
name = "adblock"
version = "0.2.6"
authors = ["Andrius Aucinas <aaucinas@brave.com>"]
edition = "2018"
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 = [
"data/requests.json",
"data/matching-tests-requests.json",
"data/ublock-matches.tsv",
"data/easylist-parse-errors.log",
]
[dependencies]
addr = "0.2"
url = "2.1"
percent-encoding = "2.1"
matches = "0.1"
lazy_static = "1.4"
once_cell = "1.2"
regex = "1"
bitflags = "1.2"
itertools = "0.8"
idna = "0.2"
serde = { version = "1.0.101", features = ["derive", "rc"] }
flate2 = { version = "1.0.12", features = ["rust_backend"], default-features = false }
seahash = "3"
twoway = "0.2"
base64 = "0.10"
rmp-serde = "0.13.7" # rmp-serde 0.14.0 breaks deserialization by changing how enums are deserialized
hashbrown = { version = "0.6", features = ["serde"] }
lifeguard = { version = "0.6", optional = true }
cssparser = { version = "0.25", optional = true }
selectors = { version = "0.21", optional = true }
psl = "0.4.1"
[dev-dependencies]
criterion = "0.2"
csv = "1"
serde_json = "1.0"
reqwest = "0.9"
psl = "0.4.1"
[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
[[bench]]
name = "bench_cosmetic_matching"
harness = false
[features]
default = ["full-regex-handling", "object-pooling"]
full-domain-matching = [] # feature has no explicit dependencies
metrics = []
full-regex-handling = []
object-pooling = ["lifeguard"]
css-validation = ["cssparser", "selectors"]