Cargo Features

[dependencies]
loco-extras = { version = "0.4.0", default-features = false, features = ["full", "initializer-prometheus", "initializer-extra-db", "initializer-multi-db", "initializer-normalize-path", "serde"] }
default = full

The full feature is set by default whenever loco-extras is added without default-features = false somewhere in the dependency tree.

full default = initializer-extra-db, initializer-multi-db, initializer-normalize-path, initializer-prometheus
initializer-prometheus full

Enables axum-prometheus ^0.6.1

initializer

Affects initializers::prometheus

initializer-extra-db full

Affects initializers::extra_db

initializer-multi-db full

Enables serde_json

Affects initializers::multi_db

initializer-normalize-path full

Enables tower ^0.4 and tower-http ^0.5.0

Affects initializers::normalize_path

Features from optional dependencies

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework