Cargo Features

[dependencies]
ayun = { version = "0.18.0", default-features = false, features = ["full", "command-make-migration", "command-make-model", "command-migrate", "command", "console", "error-anyhow", "error-eyre", "auth", "cache-memory", "cache-redis", "cache", "config", "database", "hash", "logger", "logger-console", "logger-env-filter", "logger-tracing", "metrics", "redis", "runtime", "storage", "http1", "http2", "server", "middleware-asset", "middleware-auth", "middleware-catch-panic", "middleware-compression", "middleware-context", "middleware-decompression", "middleware-fallback", "middleware-livereload", "middleware-logger", "middleware-metrics", "middleware-propagate-header", "middleware-rate-limit", "middleware-sensitive-headers", "middleware-timeout", "middleware", "request-auth", "request-context", "request-form", "request-path", "request-query", "request-json", "request-multipart", "request-validate", "request", "response-cookie", "response-json", "response-view", "response", "schedule", "view"] }
default full? = config

The config feature is set by default whenever ayun is added without default-features = false somewhere in the dependency tree.

full = auth, cache, command, console, database, default, hash, http1, logger, redis, schedule, storage
command-make-migration command? = database

console

Enables duct

Affects make::migration

command-make-model command? = database

Enables duct

Affects make::model

command-migrate command? = database

Enables sea-orm-migration

command full? = command-make-migration, command-make-model, command-migrate
console full? = ayun-console

Enables owo-colors, color, help and std of clap

Affects extra::console, ayun::console

error-anyhow

error

Enables anyhow of ayun-core

error-eyre

Enables eyre of ayun-core

auth full? middleware-auth?

facade

Enables jsonwebtoken, auth of ayun-core, now of chrono

Affects config::Config.auth, support::auth

cache-memory cache?

Enables async-trait and future of moka

moka:

Enable this feature to use moka::future::Cache.

Affects facades::cache

cache-redis cache? = redis

Enables async-trait

Affects facades::cache

cache full? = cache-memory, cache-redis

Affects config::Config.cache

config default

Enables serde_variant, config of ayun-core and derive of serde

serde:

Provide derive(Serialize, Deserialize) macros.

Affects ayun::config

database command-make-migration? command-make-model? command-migrate? full? = runtime

Enables sea-orm, database of ayun-core

Affects config::Config.database

hash full?

Enables hash of ayun-core and std of argon2

optional

logger full? = logger-tracing

Enables logger of ayun-core and local-time of tracing-subscriber

tracing-subscriber:

Enables support for local time when using the time crate timestamp formatters.

Affects config::Config.logger

logger-console

Enables console-subscriber

logger-env-filter

Enables env-filter of tracing-subscriber

logger-tracing logger?

Enables tracing-error

metrics

Enables metrics and metrics-exporter-prometheus

redis cache-redis? full? = runtime

Enables bb8-redis ^0.16.0, redis of ayun-core

Affects config::Config.redis

runtime database? redis? schedule? server?

Enables runtime of ayun-core

Affects config::Config.runtime

storage full?

Enables bytes and object_store, storage of ayun-core

Affects config::Config.storage, facades::storage

http1 full? = server

http

Enables http1 of ayun-http

Affects config::Config.app, config::Config.middleware, extra::http, ayun::http

http2 = server

Enables http2 of ayun-http

Affects config::Config.app, config::Config.middleware, extra::http, ayun::http

server http1? http2? = middleware, request, response, runtime
middleware-asset

http:middleware

Enables middleware-asset of ayun-http

Affects config::Config.view

middleware-auth middleware? = auth, request-auth

Affects http::middleware

middleware-catch-panic

Enables middleware-catch-panic of ayun-http

middleware-compression

Enables middleware-compression of ayun-http

middleware-context

Enables middleware-context of ayun-http

middleware-decompression

Enables middleware-decompression of ayun-http

middleware-fallback
middleware-livereload

Enables middleware-livereload of ayun-http

middleware-logger

Enables middleware-logger of ayun-http

middleware-metrics

Enables middleware-metrics of ayun-http

middleware-propagate-header

Enables middleware-propagate-header of ayun-http

middleware-rate-limit

Enables middleware-rate-limit of ayun-http

middleware-sensitive-headers

Enables middleware-sensitive-headers of ayun-http

middleware-timeout

Enables middleware-timeout of ayun-http

middleware server? = middleware-auth

Enables middleware of ayun-http

request-auth middleware-auth?

http:request

Enables axum and axum-extra, request-auth of ayun-http

Affects http::request, request::RequestExtTrait.user, request::RequestExtTrait.token

request-context

Enables request-context of ayun-http

request-form

Enables request-form of ayun-http

request-path

Enables request-path of ayun-http

request-query

Enables request-query of ayun-http

request-json

Enables request-json of ayun-http

request-multipart

Enables request-multipart of ayun-http

request-validate

Enables request-validate of ayun-http

request server?

Enables request of ayun-http

http:response

Enables response-cookie of ayun-http

response-json response?

Enables response-json of ayun-http

response-view response? = view

Enables response-view of ayun-http

Affects http::response, response::ResponseExtTrait.view

response server? = response-cookie, response-json, response-view

Affects config::Config.response

schedule full? = ayun-schedule, runtime

support

Affects ayun::scheduling

view response-view?

Enables serde_json and tera

Affects config::Config.view

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.

argon2 hash?
ayun-http http1? http2? middleware? middleware-asset? middleware-catch-panic? middleware-compression? middleware-context? middleware-decompression? middleware-livereload? middleware-logger? middleware-metrics? middleware-propagate-header? middleware-rate-limit? middleware-sensitive-headers? middleware-timeout? request? request-auth? request-context? request-form? request-json? request-multipart? request-path? request-query? request-validate? response-cookie? response-json? response-view?
ayun-console console?
ayun-schedule schedule?
chrono auth?
clap console?
moka cache-memory?
serde config