Skip to content

Commit

Permalink
provide deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcountryman committed Oct 13, 2023
1 parent c2ae703 commit c9e6d12
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ impl<Store: SessionStore> SessionLayer<Store> {
/// .with_http_only(true)
/// .with_secure(true);
/// ```
#[deprecated(
since = "0.6.0",
note = "Development of axum-sessions has moved to the tower-sessions crate. Please \
consider migrating."
)]
pub fn new(store: Store, secret: &[u8]) -> Self {
if secret.len() < 64 {
panic!("`secret` must be at least 64 bytes.")
Expand Down

0 comments on commit c9e6d12

Please sign in to comment.