#iron #web #persistence #sharing #global

persistent

A set of middleware for sharing server-global data in Iron

15 releases

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

#25 in HTTP server

Download history 1207/week @ 2019-01-22 1156/week @ 2019-01-29 1168/week @ 2019-02-05 1184/week @ 2019-02-12 1235/week @ 2019-02-19 1075/week @ 2019-02-26 1525/week @ 2019-03-05 883/week @ 2019-03-12 908/week @ 2019-03-19 1207/week @ 2019-03-26 1282/week @ 2019-04-02 1212/week @ 2019-04-09 962/week @ 2019-04-16 1102/week @ 2019-04-23 1612/week @ 2019-04-30

7,354 downloads per month
Used in 46 crates (15 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

~3.5MB
~68K SLoC