# 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 = "2021" name = "adblock" version = "0.9.2" authors = [ "Anton Lazarev ", "Andrius Aucinas", ] exclude = [ "*.md", ".github/", ".gitignore", ".npmignore", "data/", "examples/", "js/", "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.15" features = ["psl"] optional = true default-features = false [dependencies.base64] version = "0.13" [dependencies.bitflags] version = "1.3" [dependencies.cssparser] version = "0.28" optional = true [dependencies.idna] version = "0.2" [dependencies.itertools] version = "0.10" [dependencies.lifeguard] version = "^ 0.6.1" optional = true [dependencies.memchr] version = "2.4" [dependencies.once_cell] version = "1.8" [dependencies.percent-encoding] version = "2.1" [dependencies.regex] version = "1.5" [dependencies.rmp-serde] version = "0.15" [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" [dependencies.thiserror] version = "1.0" [dependencies.url] version = "2.2" [dev-dependencies.criterion] version = "0.5" [dev-dependencies.csv] version = "1" [dev-dependencies.futures] version = "0.3" [dev-dependencies.mock_instant] version = "0.5" [dev-dependencies.reqwest] version = "0.11" features = ["rustls-tls"] default-features = false [dev-dependencies.sha2] version = "0.9" [dev-dependencies.tokio] version = "1.24" features = ["rt-multi-thread"] [features] content-blocking = [] css-validation = [ "cssparser", "selectors", ] default = [ "embedded-domain-resolver", "full-regex-handling", "object-pooling", "unsync-regex-caching", ] embedded-domain-resolver = ["addr"] full-regex-handling = [] object-pooling = ["lifeguard"] regex-debug-info = [] resource-assembler = [] unsync-regex-caching = []