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
somewhere in the dependency tree.default-features = false - 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
Affects
layers::sentry
… - prometheus layers? = metrics, metrics-exporter-prometheus
-
Support Prometheus metrics
Affects
layers::prometheus
… - retry layers?
-
Support direct retrying jobs
Affects
layers::retry
… - timeout layers?
-
Support timeouts on jobs
- limit layers?
-
💪 Limit the amount of jobs
Affects
layers::limit
… - filter layers?
-
Support filtering jobs based on a predicate
- 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?
- 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?