Skip to content

Commit

Permalink
added examples to cargo.toml list
Browse files Browse the repository at this point in the history
  • Loading branch information
genusistimelord committed Apr 12, 2024
1 parent 8aef9d8 commit dc14996
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 6 deletions.
34 changes: 34 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@ resolver = "2"
members = [
".",
"databases/sqlx",
"databases/mongo",
"databases/redispool",
"databases/surreal",
"examples/any",
"examples/postgres",
"examples/sqlite",
"examples/redis",
"examples/surrealdb",
"examples/middleware_layer",
"examples/rest_test",
"databases/mongo",
"databases/redispool",
"databases/surreal",
"examples/enable_signed_cookies_headers",
"examples/session_mode",
"examples/session_null_pool",
]

[package]
Expand Down
2 changes: 1 addition & 1 deletion examples/enable_signed_cookies_headers/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use axum::{routing::get, Router};
use axum_session::{SessionConfig, SessionLayer};
use axum_session::{Key, SessionConfig, SessionLayer};
use axum_session_sqlx::{SessionPgSession, SessionPgSessionStore};
use sqlx::postgres::{PgConnectOptions, PgPool, PgPoolOptions};
use tokio::net::TcpListener;
Expand Down
3 changes: 2 additions & 1 deletion examples/session_mode/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use axum::{routing::get, Router};
use axum_session::{SessionConfig, SessionLayer, SessionPgSession, SessionPgSessionStore};
use axum_session::{SessionConfig, SessionLayer, SessionMode};
use axum_session_sqlx::{SessionPgSession, SessionPgSessionStore};
use sqlx::postgres::{PgConnectOptions, PgPool, PgPoolOptions};
use tokio::net::TcpListener;

Expand Down
1 change: 0 additions & 1 deletion examples/session_null_pool/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use axum::{routing::get, Router};
use axum_session::{Session, SessionConfig, SessionLayer, SessionNullPool, SessionStore};
use std::net::SocketAddr;
use tokio::net::TcpListener;

#[tokio::main]
Expand Down

0 comments on commit dc14996

Please sign in to comment.