Cargo Features

[dependencies]
loco-rs = { version = "0.13.2", default-features = false, features = ["auth_jwt", "cli", "with-db", "testing", "all_storage", "storage_aws_s3", "storage_azure", "storage_gcp", "cache_inmem", "bg_redis", "bg_pg", "bg_sqlt"] }
default = auth_jwt, bg_pg, bg_redis, bg_sqlt, 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, doctor::check_db, initializers::extra_db, initializers::multi_db, loco-rs::db, loco-rs::model, loco-rs::schema, prelude::model, testing::seed, tests_cfg::db, validation::into_db_error, middleware::auth

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 ^0.8.1 and rusty-sidekiq

rusty-sidekiq:

bg_redis: redis workers

Affects bgworker::skq

bg_pg default

Enables sqlx and ulid

sqlx:

bg_sqlt: sqlite workers
bg_pg: postgres workers

Affects bgworker::pg

bg_sqlt default

Enables sqlx and ulid

Affects bgworker::sqlt