# Laravel for Rust

Source: https://keyringauth.com/docs/0.x/laravel-rust

Keyring has an early implementation for [Laravel for Rust](https://crates.io/crates/laravel-rust): the `laravel-keyring` crate in [`rust/`](https://github.com/keyringauth/keyring/blob/main/rust/laravel-keyring/README.md). It shares no code with the PHP package, but it shares a database and the [HTTP contract suite](https://github.com/keyringauth/keyring/blob/main/contract/README.md), so the routes, JSON and status codes are the same.

Its documentation is its own set of pages, one for each of these: start at [Keyring for Rust](https://keyringauth.com/docs/0.x/rust/). [Differences From PHP](https://keyringauth.com/docs/0.x/rust/differences) lists everything the crate does differently, or doesn't do yet.

The sections this page used to hold have moved:

## Introduction

See [Keyring for Rust](https://keyringauth.com/docs/0.x/rust/).

## Status

See [Installation](https://keyringauth.com/docs/0.x/rust/installation#introduction).

## What's Supported

See [Differences From PHP](https://keyringauth.com/docs/0.x/rust/differences) and the [crate's README](https://github.com/keyringauth/keyring/blob/main/rust/laravel-keyring/README.md#whats-ported).

## Installing It

See [Installation](https://keyringauth.com/docs/0.x/rust/installation#installing-keyring).

## Registering It

See [Installation](https://keyringauth.com/docs/0.x/rust/installation#installing-keyring) and [Preparing Your User Model](https://keyringauth.com/docs/0.x/rust/installation#preparing-your-user-model).

### Registration, Resets and Password Changes

See [Registration](https://keyringauth.com/docs/0.x/rust/sign-in-flow#registration), [Changing the Password](https://keyringauth.com/docs/0.x/rust/protected-changes#changing-the-password) and [Password Rules](https://keyringauth.com/docs/0.x/rust/protected-changes#password-rules).

### Email Changes

See [Changing the Email Address](https://keyringauth.com/docs/0.x/rust/protected-changes#changing-the-email-address).

### Email Codes and Code Factors of Your Own

See [Email Codes](https://keyringauth.com/docs/0.x/rust/factors#email-codes) and [Writing a Code Factor](https://keyringauth.com/docs/0.x/rust/factors#writing-a-code-factor).

### Flow Emails

See [Emails a Flow Needs](https://keyringauth.com/docs/0.x/rust/security-log-and-emails#emails-a-flow-needs).

### Single Sign-On

See [Single Sign-On](https://keyringauth.com/docs/0.x/rust/sso).

#### Building on Keyring's Drivers

See [Building on Keyring's Drivers](https://keyringauth.com/docs/0.x/rust/sso#building-on-keyrings-drivers).

#### Your Own Routes for Single Sign-On

See [Signing Up With a Provider](https://keyringauth.com/docs/0.x/rust/sso#signing-up-with-a-provider).

### Impersonation

See [Impersonation](https://keyringauth.com/docs/0.x/rust/impersonation).

### Risk Signals

See [Risk](https://keyringauth.com/docs/0.x/rust/risk).

### Policies and the Pipeline

See [Deciding Per User and Attempt](https://keyringauth.com/docs/0.x/rust/policies#deciding-per-user-and-attempt) and [The Verification Pipeline](https://keyringauth.com/docs/0.x/rust/sign-in-flow#the-verification-pipeline).

### The Two User Types

See [The Two User Types](https://keyringauth.com/docs/0.x/rust/installation#the-two-user-types).

### Middleware

See [The Session Middleware](https://keyringauth.com/docs/0.x/rust/devices-and-sessions#the-session-middleware).

### Your Own Routes

See [Step-Up](https://keyringauth.com/docs/0.x/rust/step-up).

### A Settings Page

See [Your Settings Page](https://keyringauth.com/docs/0.x/rust/quick-start#your-settings-page).

### Requiring a Second Factor

See [Requiring a Second Factor](https://keyringauth.com/docs/0.x/rust/policies#requiring-a-second-factor).

### Events

See [Events](https://keyringauth.com/docs/0.x/rust/events).

### Console Commands

See [For Administrators](https://keyringauth.com/docs/0.x/rust/devices-and-sessions#for-administrators), [Pruning](https://keyringauth.com/docs/0.x/rust/devices-and-sessions#pruning), [Sweeping Ended Sessions](https://keyringauth.com/docs/0.x/rust/devices-and-sessions#sweeping-ended-sessions) and [Importing Two-Factor Data](https://keyringauth.com/docs/0.x/rust/upgrading-from-fortify#importing-two-factor-data).

## Settings

See [Configuration](https://keyringauth.com/docs/0.x/rust/configuration).

## Routes and JSON

See [Routes](https://keyringauth.com/docs/0.x/rust/sign-in-flow#routes), and each page's own Routes section.

### Pages and Redirects

See [Pages](https://keyringauth.com/docs/0.x/rust/sign-in-flow#pages) and [Responses](https://keyringauth.com/docs/0.x/rust/sign-in-flow#responses).

## Running on More Than One Server

See [A Shared Lock Store](https://keyringauth.com/docs/0.x/rust/security#a-shared-lock-store) and [Trusted Proxies](https://keyringauth.com/docs/0.x/rust/security#trusted-proxies).

## Caveats

See [Differences From PHP](https://keyringauth.com/docs/0.x/rust/differences).
