14 releases

Uses old Rust 2015

0.4.0 Nov 14, 2017
0.3.0 Jan 11, 2017
0.2.1 Oct 30, 2016
0.2.0 Jul 23, 2016
0.0.1 Dec 3, 2014

#614 in HTTP server

Download history 737/week @ 2023-02-06 898/week @ 2023-02-13 1594/week @ 2023-02-20 894/week @ 2023-02-27 1462/week @ 2023-03-06 939/week @ 2023-03-13 1004/week @ 2023-03-20 1085/week @ 2023-03-27 1005/week @ 2023-04-03 614/week @ 2023-04-10 613/week @ 2023-04-17 1016/week @ 2023-04-24 1168/week @ 2023-05-01 571/week @ 2023-05-08 804/week @ 2023-05-15 673/week @ 2023-05-22

3,682 downloads per month
Used in 52 crates (17 directly)

MIT license

12KB
161 lines

persistent Build Status

Persistent storage as middleware for the Iron web framework.

  • Share persistent data across requests
  • Read or modify locally stored data

Use this if you are currently thinking about using std::sync::Arc to share state between request handlers.

Installation

If you're using a Cargo.toml to manage dependencies, just add persistent to the toml:

[dependencies]
persistent = "x.y.z"  # Insert current version here

Otherwise, cargo build, and the rlib will be in your target directory.

Documentation

Along with the online documentation, you can build a local copy with make doc.

Examples

Get Help

One of us (@reem, @zzmp, @theptrk, @mcreinhard) is usually on #iron on the mozilla irc. Come say hi and ask any questions you might have. We are also usually on #rust and #rust-webdev.

Dependencies

~4.5MB
~121K SLoC