Cargo Features

[dependencies]
ktra = { version = "0.7.0", default-features = false, features = ["secure-auth", "crates-io-mirroring", "mirroring-dummy", "openid", "db-sled", "db-redis", "db-mongo"] }
default = crates-io-mirroring, db-sled, secure-auth

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

secure-auth default = rand, rust-argon2
crates-io-mirroring default = reqwest, tokio-util

Affects config::CrateFilesConfig.cache_dir_path, get::apis, utils::with_cache_dir_path, utils::with_http_client

mirroring-dummy
openid = openidconnect, reqwest

Affects traits::DbManager.store_nonce_by_csrf, traits::DbManager.get_nonce_by_csrf, models::CodeQuery, models::Claims

db-sled default = sled

Affects config::DbConfig.db_dir_path

db-redis = redis

Affects config::DbConfig.redis_url

db-mongo = bson, mongodb

Affects config::DbConfig.mongodb_url

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.

reqwest crates-io-mirroring openid?

Enables reqwest ^0.11

tokio-util crates-io-mirroring

Enables tokio-util ^0.6

rand secure-auth
rust-argon2 secure-auth

Enables rust-argon2 ^0.8

sled db-sled
redis db-redis?

Enables redis ^0.19

mongodb db-mongo?

Enables mongodb ^1.1

bson db-mongo?

Enables bson ^1.1

openidconnect openid?

Enables openidconnect ^2.1.1