File tree Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 1616[ version-badge ] : https://img.shields.io/crates/v/async-sqlx-session.svg?style=flat-square
1717
1818## Installation
19- ``` sh
20- $ cargo add async-sqlx-session
19+ ### sqlite:
20+
21+ ``` toml
22+ async-sqlx-session = { version = " 0.2.0" , features = [" sqlite" ] }
23+ ```
24+
25+ ### postgres:
26+
27+ ``` toml
28+ async-sqlx-session = { version = " 0.2.0" , features = [" pg" ] }
2129```
2230
31+
32+
33+ ## Cargo Features:
34+
2335## Safety
2436This crate uses `` #![deny(unsafe_code)] `` to ensure everything is implemented in
2537100% Safe Rust.
Original file line number Diff line number Diff line change 11//! # async-sqlx-session
22//!
3- //! This crate currently only provides a sqlite session store, but
4- //! will eventually support other databases as well, configurable
5- //! through a feature flag.
6- //!
7- //! For now, see the documentation for
8- //! [`SqliteStore`](crate::SqliteSessionStore)
3+ //! This crate currently provides two session stores: [`PostgresSessionStore`] and [`SqliteSessionStore`], each of which is enabled by a feature flag.
4+ //! To use `SqliteSessionStore`, enable the `sqlite` feature on this crate.
5+ //! To use `PostgresSessionStore`, enable the `pg` feature on this crate.
96#![ forbid( unsafe_code, future_incompatible) ]
107#![ deny(
118 missing_debug_implementations,
You can’t perform that action at this time.
0 commit comments