# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2018"
name = "adblock"
version = "0.6.0"
authors = [
    "Andrius Aucinas <aaucinas@brave.com>",
    "Anton Lazarev <alazarev@brave.com>",
]
exclude = [
    "*.md",
    ".github/",
    ".gitignore",
    ".npmignore",
    "benches/",
    "data/",
    "examples/",
    "native/",
    "package-lock.json",
    "package.json",
    "tests/",
]
description = "Native Rust module for Adblock Plus syntax (e.g. EasyList, EasyPrivacy) filter parsing and matching."
readme = "README.md"
license = "MPL-2.0"
repository = "https://github.com/brave/adblock-rust/"

[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

[dependencies.addr]
version = "0.14"
features = ["psl"]
optional = true
default-features = false

[dependencies.base64]
version = "0.13"

[dependencies.bitflags]
version = "1.2"

[dependencies.cssparser]
version = "0.28"
optional = true

[dependencies.flate2]
version = "1.0"
features = ["rust_backend"]
default-features = false

[dependencies.idna]
version = "0.2"

[dependencies.itertools]
version = "0.10"

[dependencies.lifeguard]
version = "^ 0.6.1"
optional = true

[dependencies.once_cell]
version = "1.8"

[dependencies.percent-encoding]
version = "2.1"

[dependencies.regex]
version = "1.5"

[dependencies.rmp-serde]
version = "0.15"

[dependencies.rmp-serde-legacy]
version = "0.13.7"
package = "rmp-serde"

[dependencies.seahash]
version = "3"

[dependencies.selectors]
version = "0.23"
optional = true

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "rc",
]

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.twoway]
version = "0.2"

[dependencies.url]
version = "2.2"

[dev-dependencies.criterion]
version = "0.3"

[dev-dependencies.csv]
version = "1"

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.reqwest]
version = "0.11"
features = ["rustls-tls"]
default-features = false

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.sha2]
version = "0.9"

[dev-dependencies.tokio]
version = "1.8"
features = ["rt-multi-thread"]

[features]
content-blocking = ["serde_json"]
css-validation = [
    "cssparser",
    "selectors",
]
default = [
    "embedded-domain-resolver",
    "full-regex-handling",
    "object-pooling",
    "unsync-regex-caching",
]
embedded-domain-resolver = ["addr"]
full-regex-handling = []
metrics = []
object-pooling = ["lifeguard"]
resource-assembler = ["serde_json"]
unsync-regex-caching = []
