Cargo Features

[dependencies]
actix-cloud = { version = "0.4.10", default-features = false, features = ["all", "utils", "rustls", "macros", "config-json", "config-yaml", "config-toml", "logger", "i18n", "redis", "request", "traceid", "state", "session", "csrf", "security", "response-build", "response-json", "seaorm", "serde", "response", "router", "memorydb", "config", "serde_dep", "anyhow", "async-trait", "chrono", "tokio", "actix-web"] }
default = config-yaml, csrf, i18n, logger, macros, redis, request, response-json, rustls, seaorm, security, session, state, traceid, utils

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

all = config-json, config-toml, config-yaml, csrf, i18n, logger, macros, redis, request, response-json, rustls, seaorm, security, session, state, traceid, utils
utils default all? = anyhow

Enables hex and rand

Affects actix-cloud::utils

rustls default all?

Enables rustls and rustls-pemfile and rustls-0_23 of actix-web

actix-web:

TLS via Rustls v0.23

Affects utils::load_rustls_config

macros default all?

Enables actix-cloud-codegen

Affects actix-cloud::macros

config-json all? = config

Enables json of config

config-yaml default all? = config

Enables yaml of config

config-toml all? = config

Enables toml of config

logger default all? = anyhow, chrono, serde_dep, tokio

Enables colored, futures, tracing, and tracing-subscriber

Affects actix-cloud::logger, state::GlobalState.logger

i18n default all?

Enables i18n of actix-cloud-codegen

macros

Affects actix-cloud::i18n, request::Extension.lang, response::Response.translate, state::GlobalState.locale

redis default all? = memorydb

Enables redis

Affects memorydb::redis

request default all? = actix-web, chrono

Enables futures

Affects actix-cloud::request

traceid default all?

Enables tracing-actix-web

Affects request::Extension.trace_id

state default all? = actix-web, anyhow, chrono

Enables parking_lot

Affects actix-cloud::state

session default all? = actix-web, memorydb, serde_dep

Enables actix-utils and rand

rand:

utils

Affects actix-cloud::session

csrf default all? = actix-web, router

Enables enum-as-inner, futures, and qstring

Affects actix-cloud::csrf, router::build_router, router::CSRFType, router::Router.csrf

security default all? = actix-web

Affects actix-cloud::security

response-build = anyhow

Enables prettyplease, quote, syn, thiserror ^1.0, walkdir, and yaml-rust2

walkdir:

build

Affects actix-cloud::response_build

response-json default all? = response, serde_dep

Affects response::JsonResponse

seaorm default all?

Enables seaorm of actix-cloud-codegen

serde
response response-json = actix-web, anyhow

Enables futures

Affects actix-cloud::response

router csrf = actix-web, anyhow, async-trait

Enables futures

Affects actix-cloud::router

memorydb redis session = anyhow, async-trait, chrono

Enables glob and parking_lot

Affects actix-cloud::memorydb, state::GlobalState.memorydb

config config-json? config-toml? config-yaml

Enables config

Affects state::GlobalState.config

serde_dep logger response-json session

Enables serde, serde_json, and serde_with

anyhow logger memorydb? response? response-build? router? state utils

Enables anyhow

async-trait memorydb? router?

Enables async-trait

chrono logger memorydb? request state

Enables chrono

tokio logger

Enables tokio

actix-web csrf request response? router? rustls security session state

Enables actix-web