Rocket/examples/pastebin/Cargo.toml
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

11 lines
163 B
TOML

[package]
name = "pastebin"
version = "0.0.0"
workspace = "../"
edition = "2021"
publish = false
[dependencies]
rocket = { path = "../../core/lib" }
rand = "0.9"