Cargo Features

sentinel-core has no features set by default.

[dependencies]
sentinel-core = { version = "0.1.3", features = ["full", "async", "macros", "exporter", "logger_env", "logger_log4rs", "metric_log", "ds_etcdv3", "ds_consul", "ds_k8s"] }
full = macros
async

If the sentinel is not utilized in asynchronous scenarios, the Sentinel entry is not necessary to use Arc with Send trait

macros full? = sentinel-macros
exporter = prometheus_exporter
logger_env = env_logger
logger_log4rs = log4rs
metric_log = directories, regex

Affects log::metric

ds_etcdv3 = etcd-rs, futures

datasources
todo: maybe they should be separated into individual crates

Affects datasource::ds_etcdv3

ds_consul = base64, consul

Affects datasource::ds_consul

ds_k8s = futures, k8s-openapi, kube, schemars

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.

sentinel-macros macros?
directories metric_log?

Enables directories ^4.0.1

logging

env_logger logger_env?

Enables env_logger ^0.9.0

Affects config::init_log

log4rs logger_log4rs?

Affects config::init_log

regex metric_log?
prometheus_exporter exporter?
etcd-rs ds_etcdv3?

Enables etcd-rs ^0.6

consul ds_consul?
futures ds_etcdv3? ds_k8s?
base64 ds_consul?

Enables base64 ^0.13

kube ds_k8s?

Enables kube ^0.76

k8s-openapi ds_k8s?

Enables k8s-openapi ^0.16.0

schemars ds_k8s?