Cargo Features
[dependencies]
dg_xch_core = { version = "2.0.3", default-features = false, features = ["mysql", "postgres", "metrics", "paperclip"] }
- default = postgres, sqlx
-
These default features are set whenever
dg_xch_core
is added without
somewhere in the dependency tree.default-features = false - mysql
-
Enables mysql of sqlx ^0.7.3
- postgres default
-
Enables postgres of sqlx ^0.7.3
- metrics
-
Enables prometheus
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.
- paperclip implicit feature
-
Enables paperclip ^0.8.2
paperclip:
OpenAPI tooling library for type-safe compile-time checked HTTP APIs
- sqlx default mysql? postgres
-
Enables sqlx ^0.7.3