Cargo Features

[dependencies]
loco-rs = { version = "0.12.0", default-features = false, features = ["auth_jwt", "cli", "with-db", "channels", "testing", "all_storage", "storage_aws_s3", "storage_azure", "storage_gcp", "cache_inmem", "bg_redis", "bg_pg"] }
default = auth_jwt, bg_pg, bg_redis, cache_inmem, cli, with-db

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

auth_jwt default

Enables jsonwebtoken

Affects auth::jwt, middleware::auth

cli default

Enables clap

Affects loco-rs::cli

with-db default

Enables sea-orm and sea-orm-migration, with-db of loco-gen

Affects app::AppContext.db, app::Hooks.truncate, app::Hooks.seed, boot::run_db, boot::create_app, cli::playground, cli::main, config::Config.database, views::pagination, initializers::extra_db, initializers::multi_db, loco-rs::doctor, loco-rs::db, loco-rs::model, loco-rs::schema, prelude::model, testing::seed, tests_cfg::db, validation::into_db_error, middleware::auth

channels

Enables socketioxide ^0.14.0

A socket.io server implementation

Affects app::Hooks.register_channels, controller::channels

testing

Enables axum-test

Affects loco-rs::testing, loco-rs::tests_cfg, email_sender::Deliveries

all_storage = storage_aws_s3, storage_azure, storage_gcp

Storage features

storage_aws_s3 all_storage?

Enables aws of object_store

File Upload

Affects drivers::aws

storage_azure all_storage?

Enables azure of object_store

Affects drivers::azure

storage_gcp all_storage?

Enables gcp of object_store

Affects drivers::gcp

cache_inmem default

Cache feature

Enables moka

cache

Affects drivers::inmem

bg_redis default

Enables bb8 and rusty-sidekiq

rusty-sidekiq:

bg_redis: redis workers

Affects bgworker::skq

bg_pg default

Enables sqlx and ulid

sqlx:

bg_pg: postgres workers

Affects bgworker::pg