Cargo Features
[dependencies]
url-cleaner = { version = "0.5.0", default-features = false, features = ["default-config", "minify-included-strings", "regex", "glob", "commands", "http", "advanced-requests", "cache", "cache-redirects", "base64", "debug"] }
- default = advanced-requests, base64, cache-redirects, commands, default-config, glob, http, minify-included-strings, regex
-
These default features are set whenever
url-cleaner
is added without
somewhere in the dependency tree.default-features = false - default-config default
-
Include default-config.json in the binary.
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.
Enables const-str
Affects
config::DEFAULT_CONFIG_STR
… - 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.
Enables reqwest
Affects
glue::proxy
,params::Params.http_client_config
,params::ParamsDiff.http_client_config_diff
… - advanced-requests default = http
-
Enables
types::RequestConfig
. - cache cache-redirects
-
Enables caching various operations.
Enables diesel
Affects
url-cleaner::clean_url_with_cache_handler
,params::Params.read_cache
,params::Params.write_cache
,params::ParamsDiff.read_cache
,params::ParamsDiff.write_cache
,config::Config.cache_path
,job::Job.cache_handler
,job_state::JobState.cache_handler
,jobs::Jobs.cache_handler
… - cache-redirects default = cache
-
Read and write the result of
url_cleaner::types::Mapper::ExpandShortLink
from and to redirect-cache.txt. - base64 default
-
Enables base64
- 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.