Cargo Features

geekorm-core has no features set by default.

[dependencies]
geekorm-core = { version = "0.9.0", features = ["utils", "uuid", "chrono", "semver", "pagination", "tfa", "two-factor-auth", "two-factor-auth-qr", "rand", "log", "hash", "hash-all", "hash-pbkdf2", "hash-argon2", "hash-sha512", "backends", "backends-tokio", "search", "libsql", "rusqlite", "migrations"] }
utils

Enables anyhow, figment, log, serde_yaml, and toml

uuid

Enables uuid

Affects foreign::ForeignKeyUuid, primary::PrimaryKeyUuid

chrono

Enables chrono

semver

Enables semver

pagination

Affects backends::GeekConnector.page, backends::GeekConnector.paginate, backends::GeekConnector.filter_page, queries::pages, queries::pagination

tfa = two-factor-auth, two-factor-auth-qr

TFA (Two Factor Authentication)

two-factor-auth tfa? two-factor-auth-qr?

Enables totp-rs

Two Factor Authentication

Affects utils::tfa

two-factor-auth-qr tfa? = two-factor-auth

Enables qr of totp-rs

rand

Random string / number generation

Enables rand

Random number generation

Affects crypto::rand

log

Logging

Enables log

hash = hash-pbkdf2

Hashing algorithms

Affects hashing::verify_hash, crypto::hashing

hash-all = hash-argon2, hash-pbkdf2, hash-sha512
hash-pbkdf2 hash? hash-all?

Enables password-hash, pbkdf2, and rand_core

password-hash:

For hashing data

hash-argon2 hash-all?

Enables argon2, password-hash, and rand_core

hash-sha512 hash-all?

Enables rand_core and sha-crypt

backends libsql? rusqlite? = search

Backends

Enables url

backends-tokio

Enables tokio

Affects backends::GeekConnector.search

libsql = backends

Enables libsql and tokio

libsql:

Backends

Affects backends::libsql

rusqlite = backends

Enables rusqlite and serde_rusqlite

Affects backends::rusqlite

migrations

Enables proc-macro2, quote, and syn

quote:

Tokenization

Affects backends::GeekConnection.table_names, backends::GeekConnection.pragma_info, builder::alter, error::MigrationError, geekorm-core::migrations, geekorm-core::ToSqlite.on_alter