Cargo Features

[dependencies]
tetrio-api = { version = "0.5.0", default-features = false, features = ["in_memory_cache", "reqwest_http_client", "redis_cache"] }
default = in_memory_cache, redis_cache, reqwest_http_client

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

in_memory_cache default = moka

Affects caches::moka, reqwest_client::InMemoryReqwestClient, reqwest_client::InMemoryReqwestError

reqwest_http_client default = reqwest
redis_cache default = redis

Affects caches::redis_cache, reqwest_client::RedisReqwestClient, reqwest_client::RedisReqwestError

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.

moka in_memory_cache
redis redis_cache

Enables redis ^0.26.1

reqwest reqwest_http_client