laravel-rust 0.1.0

Laravel for Rust: a full-stack Rust web framework, inspired by PHP Laravel
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Odds of something happening, such as cleaning up expired sessions on 2 requests in 100, or
//! giving a user a feature during a gradual rollout.
//!
//! ```
//! use laravel::lottery::Lottery;
//!
//! if Lottery::odds(1, 100).draw() {
//!     // One draw in a hundred gets here...
//! }
//! ```
//!
//! Tests decide the results for their application with [`Lottery::always_win`],
//! [`Lottery::always_lose`], and [`Lottery::fix`]. See
//! [Lottery](https://github.com/laravel/rust-framework/blob/0.x/docs/lottery.md).

#[doc(inline)]
pub use laravel_core::lottery::Lottery;
pub(crate) use laravel_core::lottery::*;