A high-level basic access authentication request guard for Rocket.rs
```rust
use rocket_basicauth::BasicAuth;
/// Hello route with auth
request guard, containing a name
and password
fn hello(auth: BasicAuth, age: u8) -> String { format!("Hello, {} year old named {}!", age, auth.name) }
fn main() { rocket::ignite().mount("/", routes![hello]).launch(); } ```
Simply add the following to your Cargo.toml
file:
toml
[dependencies]
rocket-basicauth = "1"