Cargo Features

[dependencies]
custom-utils = { version = "0.10.16", default-features = false, features = ["dev", "prod", "tls", "tls-util", "logger", "daemon-async", "daemon-sync", "timer", "derive"] }
default = logger

The logger feature is set by default whenever custom-utils is added without default-features = false somewhere in the dependency tree.

dev
prod

Affects async_deamon::daemon, sync_deamon::daemon

tls = rustls, rustls-native-certs, rustls-pemfile

Affects custom-utils::tls

tls-util = chrono, der-parser, picky, rand, rsa, x509-parser

Affects custom-utils::tls_util

logger default = ansi_term, flexi_logger, lazy_static

Affects custom-utils::logger

daemon-async = libsystemd, tokio

Affects custom-utils::daemon

daemon-sync = libsystemd

Affects custom-utils::daemon

timer = timer-util

Affects custom-utils::timer

derive = syn

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.

tokio daemon-async?
flexi_logger logger

Enables flexi_logger ^0.28.5

------------- logger start----------------------

lazy_static logger
ansi_term logger
picky tls-util?

Enables picky

------------- tls_util start----------------------

rsa tls-util?

Enables rsa ^0.6

chrono tls-util?
rand tls-util?
der-parser tls-util?

Enables der-parser ^8

x509-parser tls-util?

Enables x509-parser ^0.13

rustls-pemfile tls?

Enables rustls-pemfile ^1

------------- tls start----------------------

rustls-native-certs tls?

Enables rustls-native-certs ^0.6

rustls tls?

Enables rustls ^0.20

timer-util timer?

Enables timer-util

-----------------------------

syn derive?
libsystemd linux daemon-async? daemon-sync?

Enables libsystemd ^0.5.0