Cargo Features
[dependencies]
url-cleaner = { version = "0.7.1", default-features = false, features = ["default-config", "regex", "glob", "http", "cache", "base64", "commands", "custom", "debug"] }
- default = base64, cache, commands, default-config, glob, http, 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
… - 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
-
Enables HTTP stuff.
Enables reqwest
Affects
glue::http_client_config
,glue::proxy
,glue::advanced_http
,params::Params.http_client_config
,params::ParamsDiff.http_client_config_diff
,params::ParamsDiffArgParser.proxy
,params::ParamsDiffArgParser.no_proxy
… - cache default
-
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
,job_state::JobState.cache
,job_state::JobStateView.cache
,jobs::JobsConfig.cache
… - base64 default
-
Enables converting to and from base64.
Enables base64
Affects
glue::base64
… - commands default
-
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 thecommands
feature, so it's also disabled by default.Affects
types::FnWrapper
… - 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.