Cargo Features

lexa-framework has no features set by default.

[dependencies]
lexa-framework = { version = "0.2.8", features = ["auth", "cookies", "cors", "database", "database-postgres", "encryption-argon2", "time", "ulid", "uuid"] }
auth = bitflags, cookies, database-postgres, time

Enables auth of tower-http ^0.4

Affects lexa-framework::auth

cookies auth? = axum-sessions, tower-cookies

Affects context::HttpContext.cookies, context::HttpContext.session, http::cookies, http::session, state::State.cookie_key

cors

Enables cors of tower-http ^0.4

Affects http::cors

database database-postgres?
database-postgres auth? = database, sqlb

Enables postgres-sgbd of lexa-database, postgres of sqlx ^0.7

Affects database::services.postgres, state::State.database_postgres

encryption-argon2 = rust-argon2

Affects password::argon2

time auth? = chrono

Enables time

Affects types::time

ulid

Enables ulid

uuid

Enables uuid

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.

axum-sessions cookies?

Enables axum-sessions ^0.5

bitflags auth?
chrono time?
rust-argon2 encryption-argon2?

Enables rust-argon2 ^1.0

sqlb database-postgres?

Enables sqlb ^0.3

tower-cookies cookies?

Enables tower-cookies ^0.9