laravel-rust 0.1.0

Laravel for Rust: a full-stack Rust web framework, inspired by PHP Laravel
Documentation
//! Password hashing with bcrypt.
//!
//! Store a hash of each user's password, never the password itself. [`make`] hashes a password
//! with the configured [rounds](crate::config::hashing::Hashing::rounds), [`check`] verifies a
//! password against a stored hash, and [`needs_rehash`] says when to replace a stored hash.
//! Bcrypt is slow on purpose, so `make` and `check` run it on Tokio's blocking pool, and the
//! runtime's worker threads keep serving other requests.
//!
//! ```no_run
//! # async fn example() -> laravel::Result<()> {
//! let hash = laravel::hash::make("correct horse battery staple").await?;
//!
//! assert!(laravel::hash::check("correct horse battery staple", &hash).await);
//! assert!(!laravel::hash::check("wrong password", &hash).await);
//! # Ok(()) }
//! ```
//!
//! Hashes use bcrypt's `$2y$` format, and `check` also verifies `$2a$` and `$2b$` hashes. To learn
//! more, check out the [hashing guide](https://github.com/laravel/rust-framework/blob/0.x/docs/hashing.md).

pub(crate) use laravel_core::hash::*;
#[doc(inline)]
pub use laravel_core::hash::{MAX_PASSWORD_BYTES, Password, PasswordHash, PasswordTooLong, check, make, needs_rehash};