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.
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.
Along with the online documentation,
you can build a local copy with make doc
.
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
.