Cargo Features

Foxtive has no features set by default.

[dependencies]
foxtive = { version = "0.13.0", features = ["database", "rabbitmq", "redis", "base64", "hmac", "reqwest", "crypto", "jwt", "regex", "templating", "strum", "html-sanitizer", "cache", "cache-redis", "cache-filesystem", "cache-in-memory"] }
database = diesel

Affects once_lock::OnceLockHelper.db_pool, once_lock::OnceLockHelper.db_conn, foxtive::database, results::AppPaginationResult, setup::FoxtiveSetup.db_config

rabbitmq = deadpool, deadpool-lapin, lapin

Affects once_lock::OnceLockHelper.rabbitmq_pool, once_lock::OnceLockHelper.rabbitmq, foxtive::rabbitmq, setup::FoxtiveSetup.rmq_config, state::FoxtiveState.rabbitmq_pool, state::FoxtiveState.rabbitmq

redis cache-redis? = deadpool, deadpool-redis

Enables redis

Redis

Affects once_lock::OnceLockHelper.redis_pool, once_lock::OnceLockHelper.redis, foxtive::redis, results::redis_result, results::RedisResult, setup::FoxtiveSetup.redis_config

base64

Enables base64

Affects helpers::base64

hmac = hex, sha2

Enables hmac

Affects helpers::hmac

reqwest

Enables reqwest

Affects helpers::reqwest

crypto = rust-argon2

Affects helpers::password, state::FoxtiveHelpers.password

jwt = jsonwebtoken

Affects helpers::jwt, setup::FoxtiveSetup.jwt_iss_public_key, setup::FoxtiveSetup.jwt_token_lifetime, state::FoxtiveState.jwt_iss_public_key, state::FoxtiveState.jwt_token_lifetime, state::FoxtiveHelpers.jwt

regex cache-filesystem? = fancy-regex

Affects string::StringExt.is_username_valid

templating = tera

Affects setup::FoxtiveSetup.template_directory

strum

Enables strum

html-sanitizer

Enables ammonia

cache cache-filesystem? cache-in-memory? cache-redis?

Affects once_lock::OnceLockHelper.cache, foxtive::cache, setup::CacheDriverSetup, setup::FoxtiveSetup.cache_driver_setup, state::FoxtiveState.cache

cache-redis = cache, redis
cache-filesystem = cache, regex

Enables fs of tokio

cache-in-memory = cache

Enables dashmap

Dashmap

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.

deadpool rabbitmq? redis?
lapin rabbitmq?

Enables lapin

RabbitMQ

deadpool-lapin rabbitmq?
deadpool-redis redis?
hex hmac?
sha2 hmac?
fancy-regex regex?
tera templating?
diesel database?
jsonwebtoken jwt?
rust-argon2 crypto?