Cargo Features

[dependencies]
serwus = { version = "0.1.2", default-features = false, features = ["auth", "actix_validation", "rs256_jwks", "pgsql", "multidb", "swagger", "rabbit", "prometheus", "tracing", "actix-multipart"] }
default = auth, pgsql, tracing

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

auth default = jsonwebtoken, quick-error, rand, rust-argon2

Affects auth::jwt, utils::hash_password

actix_validation

Affects validation::render_single_validation_error

rs256_jwks = alcoholic_jwt, awc

Affects auth::rs256_jwks

pgsql default multidb? = diesel, diesel-derive-newtype, r2d2

Affects containers::as_map, serwus::db_pool, serwus::pagination, app_data::DefaultAppData.db_pool, app_data::default_app_data

multidb = pgsql, weighted-rs

Affects async_queries::async_read_query, async_queries::async_write_query, async_queries::async_read_transaction, async_queries::async_write_transaction, db_pool::multi

swagger = paperclip
rabbit = amiquip, crossbeam-channel

Affects utils::rabbit

prometheus

Affects server::prometheus, stats::StatsPresenter.get_prometheus, stats::AppDataWrapper

tracing default = tracing-actix-web, tracing-subscriber

Enables tracing

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.

actix-multipart implicit feature

Enables actix-multipart

actix-multipart:

Multipart form support for Actix Web

Affects utils::read_bytes

amiquip rabbit?
awc rs256_jwks?
alcoholic_jwt rs256_jwks?

Enables alcoholic_jwt ^1.0

crossbeam-channel rabbit?
diesel pgsql
diesel-derive-newtype pgsql
jsonwebtoken auth
paperclip swagger?
quick-error auth
r2d2 pgsql
rand auth
rust-argon2 auth
weighted-rs multidb?
tracing-actix-web tracing
tracing-subscriber tracing