Cargo Features

[dependencies]
common_uu = { version = "1.7.1", default-features = false, features = ["use_restart", "use_async", "use_tcp", "use_req", "use_req_async", "use_blocking", "use_toml", "use_mail", "req_timeout_60", "use_csv"] }
default = use_mail, use_req, use_req_async, use_tcp, use_toml

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

use_restart = ctor, encoding_rs, memchr, os_pipe, shared_child, tokio

Affects common_uu::restart

use_async = tokio

Affects run_time::retry_async

use_tcp default = async-trait, bytes, futures-util, tokio, tokio-util

Affects common_uu::tcp_mod, common_uu::tcp_mod2, common_uu::tcp_mod3

use_req default req_timeout_30? req_timeout_60? use_mail = isahc, percent-encoding

Affects common_uu::req, common_uu::send_feishu_msg

use_req_async default = percent-encoding, reqwest

Affects common_uu::req_async

use_blocking

Enables blocking of reqwest ^0.11

Affects req_async::form

use_toml default = crossbeam, toml

Affects common_uu::toml_read

use_mail default = lettre, use_req

Affects common_uu::mail, common_uu::send_dingding_msg

req_timeout_30 req_timeout_60 = use_req
use_csv = csv

Affects common_uu::csv_util

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

reqwest use_blocking? use_req_async

Enables reqwest ^0.11

isahc use_req
percent-encoding use_req use_req_async
tokio use_async? use_restart? use_tcp

Affects run_time::call_async_by_tokio

async-trait use_tcp
csv use_csv?
os_pipe use_restart?
shared_child use_restart?
encoding_rs use_restart?
memchr use_restart?
ctor use_restart?
futures-util use_tcp
tokio-util use_tcp
bytes use_tcp
lettre use_mail

Enables lettre ^0.10

crossbeam use_toml
toml use_toml

Enables toml ^0.7