Cargo Features

[dependencies]
url-cleaner = { version = "0.9.0", default-features = false, features = ["default-config", "regex", "glob", "http", "cache", "base64", "commands", "custom", "debug"] }
default = default-config

The default-config feature is set by default whenever url-cleaner is added without default-features = false somewhere in the dependency tree.

default-config default = base64, cache, glob, http, regex

Include default-config.json in the binary and enable all features it requires.

Affects url-cleaner::Args.config, config::DEFAULT_CONFIG_STR, config::DEFAULT_CONFIG

regex default-config

Enables url_cleaner::glue::RegexWrapper.

Enables regex

Affects glue::regex

glob default-config

Enables url_cleaner::glue::GlobWrapper.

Enables glob

Affects glue::glob

http default-config

Enables HTTP stuff.

Enables reqwest

Affects glue::http_client_config, glue::proxy, glue::http, glue::json, params::Params.http_client_config, params::ParamsDiff.http_client_config_diff, params::ParamsDiffArgParser.proxy, params::ParamsDiffArgParser.no_proxy

cache default-config

Enables caching various operations.

Enables diesel

Affects glue::caching, url-cleaner::Args.cache_path, params::Params.read_cache, params::Params.write_cache, params::ParamsDiff.read_cache, params::ParamsDiff.write_cache, params::ParamsDiffArgParser.read_cache, params::ParamsDiffArgParser.write_cache, config::Config.cache_path, job::Job.cache, lazy_task::LazyTask.cache, task::Task.cache, task_state::TaskState.cache, task_state::TaskStateView.cache

base64 default-config

Enables converting to and from base64.

Enables base64

Affects glue::base64

commands

Enables url_cleaner::glue::CommandWrapper.

Enables which

Affects glue::command

custom

Adds Custom variants to the main tools which allow using function pointers. These cannot be serialized or deserialized and are far more powerful than the commands feature, so it's also disabled by default.

debug

Print debug info at various points.
Wrapping specific items in their own Debug variants gives much more detail, but this can show you where to wrap stuff.
The exact effects of this feature are currently unspecified, not covered in any stability guarantees, and should not be parsed unless you're willing to rewrite the parser at stupid times for stupider reasons.