Cargo Features

[dependencies]
url-cleaner-site = { version = "0.6.2", default-features = false, features = ["default-config", "minify-included-strings", "regex", "glob", "http", "advanced-http", "cache", "cache-redirects", "base64", "custom", "commands", "debug", "debug-time"] }
default = advanced-http, base64, cache, cache-redirects, commands, default-config, glob, http, minify-included-strings, regex

These default features are set whenever url-cleaner-site is added without default-features = false somewhere in the dependency tree.

default-config default

Include default-config.json in the binary.

Enables default-config of url-cleaner

minify-included-strings default

Replace all whitepace in the default config with just one space.

Enables minify-included-strings of url-cleaner

regex default

Enables url_cleaner::glue::RegexWrapper.

Enables regex of url-cleaner

glob default

Enables url_cleaner::glue::GlobWrapper.

Enables glob of url-cleaner

http default

Enables HTTP stuff.

Enables http of url-cleaner

advanced-http default

Enables types::RequestConfig.

Enables advanced-http of url-cleaner

cache default

Enables caching various operations.

Enables cache of url-cleaner

cache-redirects default

Read and write the result of url_cleaner::types::Mapper::ExpandShortLink from and to redirect-cache.txt.

Enables cache-redirects of url-cleaner

base64 default

Enables base64 of url-cleaner

custom

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

Enables custom of url-cleaner

commands default

Enables url_cleaner::glue::CommandWrapper.

Enables commands of url-cleaner

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.

Enables debug of url-cleaner

debug-time

Print various timing info.
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.

Enables debug-time of url-cleaner