Cargo Features

[dependencies]
adblock = { version = "0.9.2", default-features = false, features = ["full-regex-handling", "object-pooling", "unsync-regex-caching", "regex-debug-info", "css-validation", "content-blocking", "embedded-domain-resolver", "resource-assembler"] }

harness = false

default = embedded-domain-resolver, full-regex-handling, object-pooling, unsync-regex-caching

If disabling default features, consider explicitly re-enabling the "embedded-domain-resolver" feature.

full-regex-handling default
object-pooling default = lifeguard

disables Send and Sync on Engine.

unsync-regex-caching default

disables Send and Sync on Engine.

regex-debug-info

Affects regex_manager::RegexDebugInfo, regex_manager::RegexDebugEntry

css-validation = cssparser, selectors
content-blocking

Affects adblock::content_blocking

embedded-domain-resolver default = addr

Requires setting an external domain resolver if disabled.

resource-assembler

Affects resources::resource_assembler

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

addr embedded-domain-resolver
lifeguard object-pooling
cssparser css-validation?

Enables cssparser ^0.28

selectors css-validation?

Enables selectors ^0.23