Cargo Features

[dependencies]
apalis = { version = "0.5.1", default-features = false, features = ["redis", "postgres", "sqlite", "mysql", "cron", "tracing", "sentry", "prometheus", "retry", "timeout", "limit", "filter", "async-std-comp", "tokio-comp", "layers", "docsrs", "ulid"] }
default = tokio-comp, tracing

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

redis = apalis-redis

Include redis storage

Affects apalis::redis

postgres

Include Postgres storage

Enables postgres of apalis-sql

Affects apalis::postgres

sqlite

Include SQlite storage

Enables sqlite of apalis-sql

Affects apalis::sqlite

mysql

Include MySql storage

Enables mysql of apalis-sql

Affects apalis::mysql

cron = apalis-cron

Include Cron functionality

Affects apalis::cron

tracing default layers?

Support Tracing 👀

Enables tracing and tracing-futures

Affects layers::tracing

sentry layers? = sentry-core, uuid

Support for Sentry exception and performance monitoring

Enables uuid of optional ulid

Affects layers::sentry

prometheus layers? = metrics, metrics-exporter-prometheus

Support Prometheus metrics

Affects layers::prometheus

retry layers?

Support direct retrying jobs

Enables retry of tower

Affects layers::retry

timeout layers?

Support timeouts on jobs

Enables timeout of tower

limit layers?

💪 Limit the amount of jobs

Enables limit of tower

Affects layers::limit

filter layers?

Support filtering jobs based on a predicate

Enables filter of tower

async-std-comp = async-std

Compatibility with async-std and smol runtimes

Enables async-std-comp of optional apalis-cron, optional apalis-redis, and optional apalis-sql

Affects apalis::utils.AsyncStdExecutor

tokio-comp default = tokio

Compatibility with tokio and actix runtimes

Enables tokio-comp of optional apalis-cron, optional apalis-redis, and optional apalis-sql

Affects apalis::utils.TokioExecutor

layers = filter, limit, prometheus, retry, sentry, timeout, tracing
docsrs = document-features

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.

tokio tokio-comp
async-std async-std-comp?
sentry-core sentry?
metrics prometheus?
metrics-exporter-prometheus prometheus?

Enables metrics-exporter-prometheus ^0.13

uuid sentry?

Enables uuid

Needed only for sentry reporting

ulid implicit feature

Enables ulid

ulid:

a Universally Unique Lexicographically Sortable Identifier implementation

apalis-cron cron?
apalis-redis redis?
document-features docsrs?
apalis-sql mysql? postgres? sqlite?