Cargo Features

[dependencies]
dg_xch_core = { version = "2.1.4", default-features = false, features = ["mysql", "postgres", "metrics"] }
default = postgres, sqlx

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

mysql

Enables mysql of sqlx

postgres default

Enables postgres of sqlx

metrics

Enables prometheus ^0.13.4

Affects farmer::FarmerSharedState.metrics, farmer::FarmerMetrics, harvester::HarvesterState.metrics, harvester::HarvesterMetrics

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.

sqlx default mysql? postgres