Cargo Features

[dependencies]
url-cleaner = { version = "0.1.0", default-features = false, features = ["default-config", "minify-included-strings", "stdin", "string-location", "string-matcher", "string-modification", "string-source", "regex", "glob", "commands", "http", "advanced-requests", "cache", "cache-redirects", "debug"] }
default = advanced-requests, cache-redirects, commands, default-config, glob, http, minify-included-strings, regex, stdin, string-location, string-matcher, string-modification, string-source

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

default-config default

Include default-config.json in the binary.

Enables const-str

Affects config::DEFAULT_CONFIG_STR, config::DEFAULT_CONFIG, config::DEFAULT_CONFIG_STR

minify-included-strings default

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

Affects config::DEFAULT_CONFIG_STR

stdin default

Allow reading URLs from STDIN.

Enables atty

string-location default

Enables types::StringLocation.

string-matcher default

Enables types::StringMatcher.

string-modification default

Enables types::StringModification.

Enables percent-encoding

Affects url_part::UrlPartModifyError

string-source default

Enables types::StringSource.

Affects advanced_requests::RequestConfig.url

regex default

Enables url_cleaner::glue::RegexWrapper.

Enables regex and regex-syntax

glob default

Enables url_cleaner::glue::GlobWrapper.

Enables glob

commands default

Enables url_cleaner::glue::CommandWrapper.

Enables which

http default advanced-requests

Enables HTTP stuff. DOES NOT WORK ON WASM.

Enables reqwest

Affects glue::proxy, params::Params.http_client_config, params::ParamsDiff.http_client_config_diff

advanced-requests default = http

Enables types::RequestConfig.

Enables cookies and json of reqwest

cache cache-redirects

Enables caching various operations.

Affects params::Params.read_cache, params::Params.write_cache, params::ReadCacheError, params::WriteCacheError, params::ParamsDiff.read_cache, params::ParamsDiff.write_cache

cache-redirects default = cache

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

debug

Print debug info at various points.