14 个版本
使用旧的 Rust 2015
0.4.0 | 2017年11月14日 |
---|---|
0.3.0 | 2017年1月11日 |
0.2.1 | 2016年10月30日 |
0.2.0 | 2016年7月23日 |
0.0.1 | 2014年12月3日 |
439 在 HTTP 服务器 中
每月下载量 4,349
用于 51 个库(17 个直接使用)
12KB
161 行
persistent 
作为 Iron 网络框架的中间件提供持久存储。
- 在请求之间共享持久数据
- 读取或修改本地存储的数据
如果您目前正在考虑使用 std::sync::Arc
在请求处理器之间共享状态,请使用此中间件。
安装
如果您使用 Cargo.toml
管理依赖项,只需将 persistent 添加到 toml 文件中
[dependencies]
persistent = "x.y.z" # Insert current version here
否则,cargo build
,rlib 将位于您的 target
目录中。
文档
除了在线文档,您还可以使用 make doc
建立本地副本。
示例
寻求帮助
我们中的一位(@reem,@zzmp,@theptrk,@mcreinhard)通常在 mozilla irc 的 #iron
上。过来打个招呼,提出您可能有的任何问题。我们通常也出现在 #rust
和 #rust-webdev
上。
依赖关系
~4.5MB
~113K SLoC