Cargo Features
[dependencies]
url-cleaner = { 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-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
url-cleaner::Args.config
,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
Affects
glue::regex
… - glob default
-
Enables
url_cleaner::glue::GlobWrapper
.Enables glob
Affects
glue::glob
… - http default advanced-http
-
Enables HTTP stuff.
Enables reqwest
Affects
glue::http_client_config
,glue::proxy
,url-cleaner::Args.proxy
,url-cleaner::Args.no_proxy
,params::Params.http_client_config
,params::ParamsDiff.http_client_config_diff
… - advanced-http default = http
-
Enables
types::RequestConfig
.Enables cookies and json of reqwest
Affects
glue::advanced_http
… - cache cache-redirects
-
Enables caching various operations.
Enables diesel
Affects
glue::caching
,url-cleaner::Args.read_cache
,url-cleaner::Args.write_cache
,params::Params.read_cache
,params::Params.write_cache
,params::ParamsDiff.read_cache
,params::ParamsDiff.write_cache
,config::Config.cache_path
,job::Job.cache
,job_state::JobState.cache
,job_state::JobStateView.cache
,jobs::Jobs.cache
… - 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
Affects
glue::base64
… - custom
-
Adds
Custom
variants to the main tools which allow using function pointers. These cannot be serialized or deserialized and are more powerful than thecommands
feature, so it's also disabled by default.Affects
types::FnWrapper
… - commands default
-
Enables
url_cleaner::glue::CommandWrapper
.Enables which
Affects
glue::command
… - 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. - 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.