Featured Content

Rust Code
  • accept.rs -Determines what compression methods the client accepts
  • xpress.rs - Allows modifying response headers, client side caching, and adding compression.
  • login.rs - An example implementation of using Rocket-auth-login crate to allow an administrator user.
  • Rust Snippets - A collection of helpful Rust code snippets
About This Website
  • Website Details - Libraries and services that power this website
  • Blog Organization - An overview of how the blog works and some of the more interesting modules.
  • Blog GitHub Repo - The GitHub repository. Code licensed under the MIT license. The theme/layout is © 2018 Andrew Prindle, contact me about using it (see email link at bottom of page).
  • Rust-Auth-Login Repo - This crate can be used to help with login and authentication.

All Tutorials & Code

Rust Web Apps

  • Setup VPS - Setup a Virtual Private Server
  • VPS Rust Setup - Install Rust and configure Rocket web apps
  • Rocket Web Apps - Tutorial on web app design and example modules to help you get started with your own Rocket powered web app written in Rust
  • Rust-Auth-Login - Explains how to use the Rocket-auth-login module to create web apps with authentication and multiple user roles
  • Rust-Auth-Login Repo - The GitHub repository for the RocketAuthLogin code. This crate can be used to help with login and authentication.

Rust Code

The following source code files may provide useful inspiration for your own projects.

  • accept.rs - A module to determine what compression methods the client accepts as well as find the preferred compression method to use.
  • xpress.rs - A module providing easy manipulation of response headers (example: adding expiration headers to allow files to be cahced) and compressing output based on the client's accepted compression methods (see accept.rs above).
  • collate.rs - A configurable module for pagination. It allows you to specify how many pages you want shown from the beginning and end as well as how many pages to show before and after the current page.
  • counter.rs - A module demonstrating a possible approach to tracking page hits.
  • database.rs - A module to allow access to an R2D2 connection pool from within route functions.
  • rocket-dbconn-example.rs - An example of using the database.rs module above
  • login.rs - An example implementation of using Rocket-auth-login crate to allow an administrator user.
  • Cargo.toml - An example Cargo.toml file with many wonderful crates that you should check out.

Rust Miscellaneous

Linux And Webservers

  • Setup VPS - Setup a webserver on a Virtual Private Server
  • Linux Tips - Some helpful commands for managing a linux webserver

About Me

  • Sublime Theme - The custom Sublime Text theme I use for Rust programming
  • About Me - A list of programs and tools I use as well as some information about me
  • Website Details - A list of libraries and services that were used to create this website
  • Blog Organization - An overview of how the blog works and some of the more interesting modules. The modules described here may be useful in inspiring code for other projects.
  • Blog GitHub Repo - The GitHub repository. Code licensed under the MIT license. The theme/layout is © 2018 Andrew Prindle, contact me about using it (see email link at bottom of page).