Rocket/examples/todo
Daniel Welsh 3a54d079ae
Update pastebin example to avoid new gen reserved keyword; couple of typo fixes (#2975)
Pastebin example uses now deprecated `rand::gen()` which was changed due
to the reserved `gen` keyword in Rust 2024 edition.

Rather than changing dependencies or updating the guide to specify an
older edition, I've updated to use `gen_range` (should be best practice
to avoid an infinitesimal bias anyway). This should work with any
edition.

Also fixed typos I noticed in the CONTRIBUTING doc.

---------

Co-authored-by: Daniel Welsh <danielw2000@gmail.com>
Co-authored-by: Matthew Pomes <matthew.pomes@pm.me>
2025-12-28 12:27:38 -06:00
..
db Add file to preserve empty db directory. 2018-05-29 18:55:25 +02:00
migrations Update docs and examples for diesel 1.0.0-rc1. 2018-01-03 01:38:05 -08:00
src Update pastebin example to avoid new gen reserved keyword; couple of typo fixes (#2975) 2025-12-28 12:27:38 -06:00
static Fix flash message display in todo example. 2022-02-23 13:55:02 -08:00
Cargo.toml Update pastebin example to avoid new gen reserved keyword; couple of typo fixes (#2975) 2025-12-28 12:27:38 -06:00
README.md Embed the diesel database migrations in the todo example. 2018-09-11 12:38:10 -07:00
Rocket.toml Completely revamp, redo examples. 2021-04-07 23:09:05 -07:00

Rocket Todo Example

This example makes use of a SQLite database via diesel to store todo tasks. As a result, you'll need to have sqlite3 and its headers installed:

  • OS X: brew install sqlite
  • Debian/Ubuntu: apt-get install libsqlite3-dev
  • Arch: pacman -S sqlite