Cargo Features

salak_factory has no features set by default.

[dependencies]
salak_factory = { version = "0.10.0", features = ["logger", "metric", "pool", "postgresql", "redis_cluster", "redis_default"] }
logger = env_logger, log

Enables log of salak

Affects salak_factory::env_log

metric = metrics, metrics-exporter-prometheus, sysinfo

Enables ipnet of salak

Affects salak_factory::metric

pool postgresql? redis_cluster? redis_default? = r2d2, scheduled-thread-pool

Affects salak_factory::pool

postgresql = native-tls, pool, postgres, postgres-native-tls

Affects salak_factory::postgresql

redis_cluster = pool

Enables cluster of redis ^0.21

Affects salak_factory::redis_cluster

redis_default = pool

Enables redis ^0.21

Affects salak_factory::redis_default

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.

env_logger logger?

Enables env_logger ^0.9

log logger?
metrics metric?

Enables metrics ^0.17

metrics-exporter-prometheus metric?

Enables metrics-exporter-prometheus ^0.6

native-tls postgresql?
postgres postgresql?
postgres-native-tls postgresql?
r2d2 pool?
redis redis_cluster? redis_default?

Enables redis ^0.21

scheduled-thread-pool pool?
sysinfo metric?

Enables sysinfo ^0.19