mirror of
https://github.com/SergioBenitez/Rocket.git
synced 2026-02-06 10:48:05 +00:00
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> |
||
|---|---|---|
| .. | ||
| db | ||
| migrations | ||
| src | ||
| static | ||
| Cargo.toml | ||
| README.md | ||
| Rocket.toml | ||
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