Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Axum_database_Sessions
Library to Provide a Sqlx Database Session management layer. You must also include Tower_cookies in order to use these Library.
You must choose only one of ['postgres', 'mysql', 'sqlite'] features to use this library.
Install
Axum Database Sessions uses tokio
runtime along with ['sqlx']; it supports native-tls
and rustls
TLS backends. When adding the dependency, you must chose a database feature that is DatabaseType
and a tls
backend. You can only choose one database type and one TLS Backend.
# Cargo.toml
[]
# Postgres + rustls
= { = "0.1", = [ "postgres" ] }
Cargo Feature Flags
sqlite
: Sqlx
support for the self-contained SQLite database engine.
postgres
: Sqlx
support for the Postgres database server.
mysql
: Sqlx
support for the MySQL/MariaDB database server.
native-tls
: Use the tokio
runtime and native-tls
TLS backend.
rustls
: Use the tokio
runtime and rustls
TLS backend.
Example
use ;
use SocketAddr;
use ;
use ;
async
async
async